From daymade-claude-code
Recover actionable context from local `.claude` session artifacts and continue interrupted work without running `claude --resume`. This skill should be used when the user provides a Claude session ID, asks to continue prior work from local history, or wants to inspect `.claude` files before resuming implementation.
How this skill is triggered — by the user, by Claude, or both
Slash command
/daymade-claude-code:continue-claude-workThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Recover actionable context from a prior Claude Code session and continue execution in the current conversation. Use local session files as the source of truth, then continue with concrete edits and checks — not just summarizing.
Recover actionable context from a prior Claude Code session and continue execution in the current conversation. Use local session files as the source of truth, then continue with concrete edits and checks — not just summarizing.
Why this exists instead of claude --resume: claude --resume replays the full session transcript into the context window. For long sessions this wastes tokens on resolved issues and stale state. This skill selectively reconstructs only actionable context — the latest compact summary, pending work, known errors, and current workspace state — giving a fresh start with prior knowledge.
For directory layout, JSONL schemas, and compaction block format, see references/file_structure.md.
Run the bundled extraction script. It handles session discovery, compact-boundary parsing, noise filtering, and workspace state in one call:
# Latest session for current project
python3 scripts/extract_resume_context.py
# Specific session by ID
python3 scripts/extract_resume_context.py --session <SESSION_ID>
# Search by topic
python3 scripts/extract_resume_context.py --query "auth feature"
# List recent sessions
python3 scripts/extract_resume_context.py --list
The script outputs a structured Markdown briefing containing:
sessions-index.jsonThe script automatically skips the currently active session (modified < 60s ago) to avoid self-extraction.
The briefing includes a Session end reason. Use it to choose the right continuation strategy:
| End Reason | Strategy |
|---|---|
| Clean exit | Session completed normally. Read the last user request that was addressed. Continue from pending work if any. |
| Interrupted | Tool calls were dispatched but never got results (likely ctrl-c or timeout). Retry the interrupted tool calls or assess whether they are still needed. |
| Error cascade | Multiple API errors caused the session to fail. Do not retry blindly — diagnose the root cause first. |
| Abandoned | User sent a message but got no response. Treat the last user message as the current request. |
If the briefing has a Subagent Workflow section with interrupted subagents, check what each was doing and whether to retry or skip.
Before making changes:
Then:
Respond concisely:
The script finds the last compact boundary in the session JSONL and extracts its summary. This is the single highest-signal piece of context in any long session -- Claude's own distilled understanding of the entire conversation up to that point. For details on compaction format and JSONL schemas, see references/file_structure.md.
| Session size | Strategy |
|---|---|
| Has compactions | Read last compact summary + all post-compact messages |
| < 500 KB, no compactions | Read last 60% of messages |
| 500 KB - 5 MB | Read last 30% of messages |
| > 5 MB | Read last 15% of messages |
When a session has subagent directories (<session-id>/subagents/), the script parses each subagent's JSONL to extract agent type, completion status, and last text output. This enables recovery of multi-agent workflows -- e.g., if a 32-subagent evaluation pipeline was interrupted, the briefing shows which agents completed and which need retry.
The script classifies how the session ended:
These message types are skipped (37-53% of lines in real sessions):
progress, queue-operation, file-history-snapshot -- operational noiseapi_error, turn_duration, stop_hook_summary -- system subtypes<task-notification>, <system-reminder> -- filtered from user text extractionclaude --resume or claude --continue — this skill provides context recovery within the current session..jsonl files have been deleted from ~/.claude/projects/.claude-code-history-files-finder for full file recovery.sessions-index.json can be stale (entries pointing to deleted files). The script falls back to filesystem-based discovery.abc123-..."Guides completion of development work by verifying tests, detecting environment, and presenting structured options for merge, PR, or cleanup.
Enforces test-driven development: write failing test first, then minimal code to pass. Use when implementing features or bugfixes.
Guides creation and editing of skills using test-driven development with pressure scenarios and subagents to verify agent compliance.
3plugins reuse this skill
First indexed Jul 10, 2026
npx claudepluginhub majuniores/claude-code-skills --plugin daymade-claude-code