Checkpoint the current session to .context/session/CONTEXT-llm.md with a structured LLM-optimised summary.
58
73%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
View guide
Passed
No findings from the security scan
Save current session state to .context/session/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 .context/session/ + rtk ls -t .context/session/CONTEXT-*llm.mdStream resolution: First word of $ARGUMENTS = stream name (^[a-zA-Z0-9_-]{1,50}$), rest = description. Empty → reuse prior /load-context stream or AskUserQuestion.
From conversation (last 15-20 messages):
next/todo/pending/remaining keywords for survival priority)Write CONTEXT file using template, then upsert .context/session/INDEX.md via scripts/upsert-index.sh.
Stream naming: "default" → .context/session/CONTEXT-llm.md, "{name}" → .context/session/CONTEXT-{name}-llm.md
.context/session/done/If status is done or parked → move file to .context/session/done/ subfolder:
Bash: mkdir -p .context/session/done && mv .context/session/CONTEXT-{stream}-llm.md .context/session/done/Report: "Archived to .context/session/done/ (status: {status})"
See reference.md for CONTEXT file template, quality self-check, status mapping, done/ archival rules, and INDEX.md upsert logic.
CONTEXT-llm.md collides across unrelated workstreams and forces manual disambiguation.load-context relies on INDEX.md to discover the latest file; a stale index means the wrong snapshot is loaded.done/ prematurely — Moving an active context to done/ hides it from future loads. Why: Auto-archive is only correct when status is explicitly done or parked; applying it to in-progress work severs continuity.Saving context before ending a long session:
# Invocation (default stream)
/save-context
# Files written to .context/session/
# .context/session/CONTEXT-llm.md ← session snapshot
# .context/session/INDEX.md ← updated index entrySaving context under a named stream:
# Invocation with explicit stream name
/save-context auth-refactor "completed JWT middleware extraction"
# Files written to .context/session/
# .context/session/CONTEXT-auth-refactor-llm.md ← named snapshot
# .context/session/INDEX.md ← updated index entryArchiving a completed stream:
# When status resolves to "done" the skill auto-archives
/save-context auth-refactor "all tests green, PR merged" --status done
# Result
# .context/session/done/CONTEXT-auth-refactor-llm.md ← archived
# .context/session/INDEX.md ← updated with archived status