/cc-skills-meta:recapfrom cc-skills-meta
Catch up on all sessions in this terminal via checkpoint chain traversal and surface unresolved assumptions, contract gaps, Contract Authority Packet gaps, and resume risks
Ships in cc-skills-meta. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Problem solved: "I have 10 sessions compaction-deep in this terminal and I need to know what happened."
/recap aggregates context from ALL sessions in this terminal by walking the full session chain (handoff files + mtime-gap fallback) and parsing each transcript. Session boundaries within each transcript are detected via sessionId changes.
/recap uses session_chain.walk_session_chain() to walk the full session chain via handoff files, then parses each transcript in oldest-to-newest order.
LLM Executor: If you are the LLM with full conversation context in memory, skip the transcript search and proceed directly to synthesizing findings from context. Only walk the session chain when resuming a prior session without current context.
CLAUDE_TRANSCRIPT env var (stem of the .jsonl path), or from sessionId field in the transcript file itselfsession_chain.walk_session_chain(session_id) — Strategy 1 uses handoff files (n_1_transcript_path), Strategy 2 uses mtime-gap + semantic fallbacksessionId changes, extract goals/message counts
session_chainmodule:P:/packages/search-research/core/session_chain.py— exportswalk_session_chain()(unified entry),walk_handoff_chain()(Strategy 1),walk_sessions_index_chain()(Strategy 2). All synchronous.
Always parse the transcript. Even when compaction context is available, the transcript contains the authoritative full session chain and detailed working state. Compaction summaries are lossy — they capture goals and outcomes but not the exact sequence of working decisions, errors encountered, or file states mid-edit.
⚠️ Fallback behavior: If
session_chainimport fails, fall back to reading only the current terminal's transcript file directly — it cannot reconstruct the full multi-session terminal history. The synthesis step will have less context to work with.
The script extracts structured data via regex and presents it in a format compatible with handoff best practices.
/handoff template)# Terminal Recap: {terminal_id}
## Session Metadata
- **Total Sessions**: {count}
- **Terminal ID**: {terminal_id}
- **Current Session**: {session_id}
- **Project**: {project_path}
## Session History
[Session 1] {session_id}
- **User messages**: {n} / Assistant messages: {n}
- **Duration**: {duration if available}
### Modified Files
- `{file_path}`
- `{file_path}`
### Original Request
- **User Request**: "{extracted request}"
- **Trigger**: {trigger context}
### Session Objectives
- **Objective 1**: {objective} ({status})
- **Objective 2**: {objective} ({status})
### Final Actions Taken
- **Action A** ({priority})
- **Action B** ({priority})
### Outcomes
- **Outcome 1**: ({status})
- **Outcome 2**: ({status})
### Active Work At Handoff
- **Currently Working On**: {work description}
- **Current Status**: {status}
- Files Modified: {file_list}
- Next: {next_step}
### Working Decisions (Critical for Continuity)
- **Decision**: {decision}
- **Rationale**: {reason}
- **Impact**: {high|medium|low}
### Current Tasks
- **#{id}**: {task description} ({status}, {priority})
### Known Issues
- **ISSUE-1**: {description} ({status}, {priority})
### Open Questions / Parking Lot
- **Question**: {question text}? ({priority}, {type})
- *Urgency*: High/Med/Low — what would need to be true to decide this?
### Knowledge Contributions
- **Insight**: {contribution}
### Next Immediate Action
1. {action_1}
2. {action_2}
### Parking Lot (Inversion)
*What would guarantee this session's work fails?* Surface it here.
- **Failure Mode**: {description} — *Mitigation*: {what would prevent it}
- **Assumption**: {core assumption} — *Invalidates*: D# or Action#
- **External Block**: {dependency} — *Blocks*: Action#
### Recommended Next Steps
RNS|D|{n}|TERMINAL RECAP RNS|A|1|recap|E:~1min|none|no-terminal-recap-RNS-available|{file_path}|owner=/recap|done=0|caused_by=|blocks=|unverified=0 RNS|Z|0|NONE
> **Note:** RNS format is emitted when the recap output includes actionable next steps derived from the session chain analysis. Each RNS|A| line represents one recommended next step with: id, domain tag, estimated time, risk profile, description, file reference, owning skill, done flag, causation, and blocking relationships. When no terminal-recap-specific RNS is available (brief mode, no session chain, or no actionables found), emit `RNS|Z|0|NONE` to indicate no RNS was produced.
### Raw Context
{condensed text for full transcript access}
⚠️ Note: The
### Raw Contextsection is condensed by_condense_transcript()with a 2000-character budget per session. When### Modified Filesis present, AID distillation replaces Raw Context with AST-level code structure. Content beyond that limit is silently dropped — the structured fields above are the primary evidence source. Full transcript access requires reading the raw transcript file directly.
Before synthesizing session narratives, establish project context.
Call mcp__aid__distill_directory on the project root with recursive=false, include_implementation=false. Present the result as a collapsible ## Project Context section at the top of synthesis. Skip this step for /recap brief mode or if the AID MCP tool is unavailable.
When responding to /recap, apply reasoning to the script output plus the raw transcript context. For each session, synthesize:
What happened: Numbered list of issues. Each item starts with an origin tag and a confidence tag, then describes the issue.
Origin tags:
[user-reported] — user explicitly raised this[discovered-during-fix] — surfaced while working on something else[hook-failure] — a hook caught or blocked something[skill-escalated] — a skill routed here from another skill[regression] — something that worked before brokeConfidence tags:
[FACT] — grounded in tool output, file content, or command results visible in the transcript[INFERENCE] — plausible but not directly proven by transcript evidence; state what evidence would confirm or deny[UNKNOWN] — important question that cannot be answered from visible evidenceExample: [user-reported] [FACT] Path refactoring broke imports — sync.py raised ModuleNotFoundError at line 42
What was done: What actually changed (file edits, hooks, skills, configs). Be specific about the actual action.
In hindsight: Was the approach right, given what we know now? Only include this section when the fix was a workaround, a detour was taken, or something was missed. Skip it when the fix was straightforward and correct.
Still pending: Concrete next steps that were identified but not completed. Each item must be actionable — a command to run, a file to check, or a decision to make. If nothing is pending, omit this section entirely.
Assumptions to verify: For each assumption the synthesis relies on, suggest one concrete check — a command to run, a file to inspect, or a question to ask. Each item states the assumption and the check that would confirm or falsify it. If no assumptions are uncertain, omit this section entirely.
Example: "Assumption: sync.py import fix works for all package repos. Check: run python P:/.claude/skills/git/sync.py --health and verify no ImportError."
Present synthesis as a per-session narrative in the response, not replacing the script output but complementing it.
For sessions with ### Modified Files, call mcp__aid__distill_file on up to 5 files with include_implementation=false. The distilled output (function signatures, class hierarchy) serves dual purpose:
### Raw Context with AST-level structure instead of the 2000-char condensed transcriptRegex extraction remains as fallback for sessions without identifiable file changes. Sessions without Modified Files keep the ### Raw Context fallback.
/recap # Show full terminal recap (current + history)
/recap brief # Show brief catch-up summary only
/recap uses intent detection to suggest follow-up commands. Map session patterns to the most relevant skill (max 3 suggestions per recap):
| Intent Detected | Follow-Up Command | When to Suggest |
|---|---|---|
| Navigation / lost context | /gto | Current gaps or stale assumptions are unclear |
| Architecture decisions | /design | Unresolved state or contract decisions in prior sessions |
| Complexity hotspots | /tldr-deep then /refactor | Sessions with many modified files or complex changes |
| Debugging / root cause | /diagnose or /rca | Sessions with unresolved bugs or error patterns |
| Impact verification | /verify | Work discussed or implemented but not actually proven |
| Data flow tracing | /trace | Sessions touching data pipelines or state management |
/pre-mortem remains the escalation path for sessions with unresolved risk or emergent behavior.
/recap should not implement fixes itself.
Before synthesizing a catch-up summary, /recap should run a short internal catch-up integrity check:
/design, /planning, or /verify rather than being presented as a local recap observation?These are internal self-check prompts. They are not default user-facing questions and should only surface to the user when /recap is genuinely blocked and cannot proceed safely without clarification.
session_chain.walk_session_chain() which first tries handoff-file chain (Strategy 1: n_1_transcript_path → prior handoff → ...), then mtime-gap + semantic fallback (Strategy 2)sessionId field changes within each transcriptsessionId is the stem of the transcript filename (e.g., 8a7b83ff-7d98-47e9-b3b5-3ffabc978c40.jsonl)What SKILL.md sets; muted values are Claude Code's defaults
Generated from the plugin's indexed repository (enduser123/cc-skills-meta) — no native marketplace selected
npx claudepluginhub p/enduser123-cc-skills-meta51 skills in this plugin
/behaveStructured behavioral analysis for LLM performance debugging — hypothesis testing for session patterns (loops, context degradation, decision inefficiency, cognitive overload, attention drift)/cksConstitutional Knowledge System - unified command for search, add, and session extraction/concept-mapperUnified concept mapping for learning, system architecture, and text analysis. Creates Mermaid diagrams for mind maps, concept maps, system diagrams, and knowledge structures. Use for studying, documentation, architecture visualization, or converting articles/text into visual maps.