From dstoic
Saves Claude Code session state to CONTEXT-{stream}-llm.md with LLM-optimized summary of next tasks, progress, hot files, focus, and artifacts. Use for checkpointing work or preserving state.
How this skill is triggered — by the user, by Claude, or both
Slash command
/dstoic:save-contexthaikuThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Save current session state to `CONTEXT-{stream}-llm.md` with LLM-optimized format.
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 $THINKING_DIR is set:
Bash: ls -t "$THINKING_DIR"/*/{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 $THINKING_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.
npx claudepluginhub digital-stoic-org/agent-skills --plugin dstoicSaves Claude Code sessions to structured CONTEXT-*.md files via interactive menus, synthesizing next tasks, summaries, hot files, focus, and goals. Auto-archives done/parked streams.
Saves session summaries, decisions, pending tasks, and auto-loads a briefing on the next session for continuity between Claude Code sessions.
Manages session context across long development sessions using tiered summarization and checkpoints. Enables seamless resume after breaks.