From cowork
Saves 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.
How this skill is triggered — by the user, by Claude, or both
Slash command
/cowork: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
Menu-driven session save for non-CLI interfaces (Cowork desktop, Telegram, CC CLI).
Menu-driven session save for non-CLI interfaces (Cowork desktop, Telegram, CC CLI).
Same CONTEXT file format as dstoic:save-context — files are interchangeable.
Target: 1200-1500 tokens MAX for CONTEXT file
Glob: CONTEXT-*-llm.md (current dir, exclude done/)
Read: CLAUDE.md (first 5 lines, for project name from H1 — required)
Identify:
# Project Name as first line)If no CLAUDE.md found in current dir or parents → warn: "⚠️ No project context detected. Use /switch first to select a project."
Before Phase 2: run quality self-check from reference.md — if session is trivial, confirm with user before proceeding.
After EVERY AskUserQuestion call, check if answers are empty/blank. If empty: output "⚠️ Questions didn't display (known bug).", present options as numbered text list, WAIT for user reply.
0-1 existing streams → merge type + stream into 1 question:
💾 Save {stream-name} as:
1. 🔄 Checkpoint — I'll continue later
2. ✅ Done — this work is finished
3. 🅿️ Parking — switching to something else
Which one? (1/2/3)
Where {stream-name} = existing stream name, or auto-generated from project + conversation topic if no streams exist.
2+ existing streams → 2 questions. First ask stream:
📝 Save to which session?
1. 📍 {stream-1} (existing)
2. 📍 {stream-2} (existing)
3. ✨ New session
Which one?
Then ask save type (same 3-choice menu as above).
New stream confirmation (when auto-generated or user picks "New"):
📝 Stream name: {suggested-name}
OK? (yes / type a different name)
Mapping:
buildingdoneparkedStream naming: pattern ^[a-zA-Z0-9_-]{1,50}$. Reserved: default → CONTEXT-llm.md, baseline.
From conversation (last 15-20 messages), synthesize:
next/todo/pending keywords for survival priority)Write CONTEXT file using template from reference.md.
Filename: default → CONTEXT-llm.md, otherwise CONTEXT-{stream}-llm.md
If status is done or parked:
Bash: mkdir -p done && mv CONTEXT-{stream}-llm.md done/
Exceptions — do NOT move:
CONTEXT-llm.md (default stream)CONTEXT-baseline-llm.md💾 Saved: CONTEXT-{stream}-llm.md
📊 Status: {emoji} {status}
📍 Focus: {1-line focus}
📋 Next tasks:
- {task 1}
- {task 2}
- {task 3}
If archived: 📦 Archived to done/ (status: {status})
mkdir -p done && mvnpx claudepluginhub digital-stoic-org/agent-skills --plugin coworkSaves 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.
Presents menu-driven interface to scan, select, and resume saved sessions from CONTEXT files. Extracts headers, summaries next tasks, hot files; supports active/archived.
Saves session state at end of session and resumes it at start of next session. Useful when context is running out, wrapping up, or continuing previous work.