with one click
save-context
// Save session to CONTEXT-llm.md with conversation summary. Use when saving work, checkpointing progress, preserving session state. Triggers include "save context", "save session", "checkpoint", "save my progress".
// Save session to CONTEXT-llm.md with conversation summary. Use when saving work, checkpointing progress, preserving session state. Triggers include "save context", "save session", "checkpoint", "save my progress".
[HINT] Download the complete skill directory including SKILL.md and all related files
| name | save-context |
| description | Save session to CONTEXT-llm.md with conversation summary. Use when saving work, checkpointing progress, preserving session state. Triggers include "save context", "save session", "checkpoint", "save my progress". |
| argument-hint | [stream-name] [description] |
| allowed-tools | ["Bash","Read","Write","Edit","AskUserQuestion"] |
| model | haiku |
| context | main |
| user-invocable | true |
Save current session state to CONTEXT-{stream}-llm.md with LLM-optimized format.
Target: 1200-1500 tokens MAX | Speed: 3-5 seconds
CRITICAL: After EVERY AskUserQuestion call, check if answers are empty/blank. Known Claude Code bug: outside Plan Mode, AskUserQuestion silently returns empty answers without showing UI.
If answers are empty: DO NOT proceed with assumptions. Instead:
rtk for ALL shell commandsBash: rtk ls openspec/changes/ + rtk ls -t CONTEXT-*llm.md
Stream resolution: First word of $ARGUMENTS = stream name (^[a-zA-Z0-9_-]{1,50}$), rest = description. Empty → reuse prior /load-context stream or AskUserQuestion.
If $PRAXIS_DIR is set:
Bash: ls -t "$PRAXIS_DIR/thinking"/*/{project}/ 2>/dev/null | head -10
Where {project} = current project folder name. Collect recent artifact paths written during this session (match conversation timestamps/topics).
If $PRAXIS_DIR is unset or empty: skip silently — no error, no warning.
From conversation (last 15-20 messages):
next/todo/pending/remaining keywords for survival priority)Write CONTEXT file using template, then upsert INDEX.md via scripts/upsert-index.sh.
Stream naming: "default" → CONTEXT-llm.md, "{name}" → CONTEXT-{name}-llm.md
done/If status is done or parked → move file to done/ subfolder:
Bash: mkdir -p done && mv CONTEXT-{stream}-llm.md done/
Report: "📦 Archived to done/ (status: {status})"
See reference.md for CONTEXT file template, quality self-check, status mapping, done/ archival rules, and INDEX.md upsert logic.