From dstoic
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".
npx claudepluginhub digital-stoic-org/agent-skills --plugin dstoicThis skill is limited to using the following tools:
Save current session state to `CONTEXT-{stream}-llm.md` with LLM-optimized format.
Creates isolated Git worktrees for feature branches with prioritized directory selection, gitignore safety checks, auto project setup for Node/Python/Rust/Go, and baseline verification.
Executes implementation plans in current session by dispatching fresh subagents per independent task, with two-stage reviews: spec compliance then code quality.
Dispatches parallel agents to independently tackle 2+ tasks like separate test failures or subsystems without shared state or dependencies.
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.