recap
Skill2 starsChanged 4 months agoMITView on GitHub
Write a session recap — an episodic record of what a work session was about, what was investigated, learned, completed, and what's next; Learned items can be promoted to memories via /capture. Use on /recap, \"wrap up\" / \"write session notes\" / \"recap this session\", or session-closure signals (\"done for today\", PR merged, deliberate pause). Mode A — never auto-fires.
24 other projects use a version of this.
Adopted by
Most recently taken up by
- Integralist/agent-skillstheir own version, first seen Oct 4, 2026
- joncoronel/skillbundletheir own version, first seen Oct 3, 2026
- delorenj/skillstheir own version, first seen Oct 2, 2026
- DoKu67/claude-code-skilstheir own version, first seen Sep 29, 2026
- braincandy-parallel/tamarindos-workflow-kittheir own version, first seen Sep 18, 2026
- farukzahra/agent-skillstheir own version, first seen Sep 6, 2026
Used with
Projects with it also use trace.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
ahilarionSkilltrace
Evidence-driven debugging with parallel hypothesis testing
Also in 3 projects that use this
Other versions24 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 24
- benoror/obsidianos_work★ 165same name
- Soul-Brews-Studio/arra-oracle-skills-cli★ 121same name
- backnotprop/bro★ 112same name
- mbwsims/claude-universe★ 72same name
- noluyorAbi/claude-code-recap★ 30same name
- AndreAlbuquerque/claude-config★ 17same name
- delorenj/skills★ 15same name
- ivklgn/bag-of-skills★ 12same name
- PanPanFR/oh-my-openkilo★ 9same name
- DoKu67/claude-code-skils★ 4same name
14 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository44 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .github/copilot-instructions.mdCopilot instructions
- autonomizeSkill
- blueprintSkill
- brainstormSkill
- captureSkill
- checkpointSkill
- close-outSkill
- coordinateSkill
- deliverSkill
- discoverSkill
- dispatchSkill
- draft-planSkill
- envisionSkill
- executeSkill
- extract-conventionsSkill
- glossarySkill
- humanizeSkill
- human-viewSkill
- improve-promptSkill
- memory-auditSkill
- new-agentSkill
- new-agents-mdSkill
- new-hookSkill
- new-mcpSkill
- orchestrateSkill
- pr-authorSkill
- prepSkill
- pre-pushSkill
- pr-reviewSkill
- pr-triageSkill
- retrospect-coreSkill
- reviewSkill
- rulesSkill
- specSkill
- systematic-debuggingSkill
- test-driven-developmentSkill
- update-changelogSkill
- update-codemapSkill
- using-git-worktreesSkill
- visualise-codemapSkill
- work-stateSkill
- wrapSkill
- write-testsSkill
The file
We split this skill into the rules it gives an agent
9 rules. 0 are common, 4 are distinctive, and 5 are very specific to this project.
0
Common
Most of the 20 edited versions we read keep these.
4
Distinctive
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 39
Commits produced: If the project is a git repo, run git log --oneline <base>..HEAD (base = main or the branch's merge-base) to enumerate …
- Distinctive: line 41
Pending work: If the session ended mid-task (explicit user pause, unresolved blocker, unfinished todo list), note what resumes next.
- Very specific: line 56
Ask the user: *"There's a recap at <path> from earlier today covering <its-goal>.
- Very specific: line 57
Default on silence: new file with a disambiguating suffix (e.g.
- Distinctive: line 93
Ask: *accept / edit / reject*.
- Very specific: line 98
Create sessions/ folder if absent.
- Distinctive: line 99
Write the file (new) or append a dated section (if the user chose "append" in step 4).
- Very specific: line 114
If the committed recap has a non-empty Learned section:
- Distinctive: line 149
Does not manage recap retention: Keep recaps indefinitely; discovery ages auto-surfacing at 30 days.
“Common” is measured: kept by at least 6 in 10 of the 20 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
recap
Session recaps are the second memory tier — episodic, per-session, structured. Rules (existing tier) answer how should I work; recaps answer what happened and where did I leave off. Format follows claude-md/memory-capture.md §"Folder layout" — type: session-recap, lands under memory/sessions/.
When to run
- User types
/recap [title](explicit trigger; title is optional). - User says "wrap up", "write session notes", "recap this session", "document what we did".
- Claude proposes a recap when the user signals session closure — e.g. "done for today", "that's it for now", a PR merge, a deliberate pause after a non-trivial chunk of work. Propose, don't write. User confirms before anything lands.
- Never fires automatically on time, event, or tool-use boundary. Mode B stays parked.
- The
clear-context-decision-guardhook may surface a recovery nudge at the start of a new session if the previous one was cleared/compacted while decisions sat unrecapped. That nudge routes here — propose a recap reconstructing the prior session's decisions from its on-disk transcript. A recap that writes asessions/*.mdfile is the guard's "persisted" watermark; once it runs, the guard goes quiet.
Inputs
- Session context. The current in-conversation transcript — what the user asked for, what Claude investigated / touched / shipped, what was learned that's worth future recall.
- Arguments after
/recap— optional short title for the recap. When omitted, Claude infers from the session's primary goal. - Working directory —
$CLAUDE_PROJECT_DIRorcwd. Determines which project's memory tree receives the recap. - The
--under-wrapsignal (set only whenwrapinvokes recap as part of the session-terminus ceremony). When present, recap suppresses its own §7.4 close/changelog doorways —/wrapowns those offers (its steps 4–5), so recap offering them too would double-offer. Everything else (gather, draft, write, §8 promotion, §9 bloat check) runs unchanged. Absent the signal (a standalone/recap), §7.4 fires as normal.
Procedure
1. Resolve project memory directory
Same as discover §1: Glob for ~/.claude/projects/*/memory/MEMORY.md, pick the match whose path contains the project root directory name. If no match, the tree does not exist yet — creation (including slug derivation) is defined once, in capture § Failure modes, the organ that owns memory writes. Follow it there rather than restating it.
The recaps folder is <memory-root>/sessions/. Create if absent.
2. Gather session content
Inventory what happened in the session:
- Primary request. Top of session, or the last major pivot. Quote in user's words where possible.
- Files touched. Walk the tool-use history — Edit / Write / Read targets on files (not ephemeral reads). List unique paths.
- Commits produced. If the project is a git repo, run
git log --oneline <base>..HEAD(base =mainor the branch's merge-base) to enumerate commits made during the session. If not on a feature branch,git log --oneline -Nfor the N most recent commits that match the session window. - Findings / corrections / decisions. Scan for user corrections, design decisions made, surprises, non-obvious behaviours that were resolved. These are Learned candidates.
- Pending work. If the session ended mid-task (explicit user pause, unresolved blocker, unfinished todo list), note what resumes next.
3. Classify recap metadata
date— today (ISOYYYY-MM-DD).branch— current git branch if in a repo, else omit.scope—[<project-slug>]plus up to two keyword tags from the session's primary theme (e.g.[<project-slug>, feature-x, module-y]).name— short title, kebab-case or plain prose. Matches the user's argument if given; else inferred from primary goal.description— one line, specific enough for future discovery to rank relevance.- Target path —
<memory-root>/sessions/<YYYY-MM-DD>-<slug>.md. Slug is a short kebab-case rendering ofname.
4. Check for existing same-day recap
Scan sessions/ for files matching today's date. If one exists with an overlapping primary goal:
- Ask the user: "There's a recap at
<path>from earlier today covering<its-goal>. Append a new section to that file, or create a new recap?" - Default on silence: new file with a disambiguating suffix (e.g.
2026-04-21-context-build-2.md).
5. Draft the recap
Frontmatter per memory-capture.md:
---
name: <title>
description: <one-line>
type: session-recap
scope: [<project-slug>, <theme-tags>]
date: <YYYY-MM-DD>
branch: <git branch or omit>
---Body sections, all optional (omit when empty — no ceremony):
- Request — user's words where possible. One paragraph max.
- Investigated — terse list: files read, questions explored, dead ends. Bullets, not narrative.
- Reality check — the honest counterweight to the progress sections: what was tried and abandoned, what is unverified / still shaky, where the work assumed or guessed. Symmetric to
/review's "things that look bad but are actually fine" — its job is to stop the recap reading as a success-narrative. Prefer one honest line to omitting it; an empty reality-check is itself a signal worth seeing. - Learned — non-obvious findings worth future recall. Each item one line. Promotion candidates. If empty, omit the section entirely.
- Completed — commits (with short SHAs if available), files modified, PRs opened/merged. Bullets.
- Next steps — only if session ended mid-task. Each item carries its real status so the list doesn't manufacture false momentum:
[ready](teed up, pick up as-is),[blocked: <on what>](needs a decision/dependency first),[maybe](aspirational — explicitly not a committed next action). A bare wishlist with everything looking equally ready is the anti-pattern. - References — external links, commit SHAs, PR/issue numbers. Only when non-trivially useful.
Compression discipline applies: rule + why + scope style extends to recap bodies — terse, factual, no summarising prose.
6. Propose
Show the user:
- Target path — absolute or
~/-relative. - Full frontmatter + body — no placeholders.
- Promotion preview — if
Learnedsection has items, list them separately with a note: "After commit, offer to promote these as rule-tier memories."
Ask: accept / edit / reject.
7. Commit
On accept:
- Create
sessions/folder if absent. - Write the file (new) or append a dated section (if the user chose "append" in step 4).
- Report the written path.
Offer the close for any shipped unit. Skipped entirely when invoked with
--under-wrap(Inputs §4) —/wrapowns the close/changelog offers, so recap stays a silent doorway in that path to avoid a double-offer. Absent the signal (standalone/recap), offer as normal: if this session'sCompletedsection records a shipped unit of work (a proposal landed, a feature/organ shipped — not mere in-progress edits), offer the close at the depth that fits the unit:- A shipped feature that has a spec/plan under
.claude/(a closeable slug) → offer the full close: "This session shipped <slug> — run/close-out <slug>to reconcile its spec, file the plan, and log the ship line in one pass? (y/N)". Ony, invokeskills/close-out/SKILL.md— it contains the changelog write, so it is the superset, not a second offer. - A shipped unit with no spec/plan to reconcile (a doc change, a one-off) → offer just the changelog line: "This session shipped <unit> — log it to CHANGELOG? (y/N)". On
y, invokeskills/update-changelog/SKILL.md.
recap is a doorway, not the writer — it never writes the changelog or reconciles a spec itself; both
/close-outand/update-changelogrun behind their own accept/edit/reject gates. Skip silently when nothing shipped (sessions that only investigated/planned produce no offer).- A shipped feature that has a spec/plan under
- Proceed to step 8 (promotion pass).
On edit: take the user's edit as the new draft; loop to step 6.
On reject: discard silently. Acknowledge and move on.
8. Promotion pass
If the committed recap has a non-empty Learned section:
- For each
Learneditem, ask whether to promote it to a rule-tier memory. - Present the three options per item: promote (invoke capture with this item as candidate content), skip, skip all remaining.
- On promote, invoke
skills/capture/SKILL.mdprogrammatically with the item text. Capture classifies kind / scope / relevance, drafts the memory, and user confirms per capture's own flow. - Track accepted / skipped counts; report after the pass.
Promotion is opt-in per item. Do not batch without asking — the collaborator principle extends here.
9. Bloat check (session-close forcing function)
Recap is the one organ that runs at every deliberate session close, so it is the natural recurring guard against corpus bloat (no separate scheduler needed). After the promotion pass, do a cheap read of MEMORY.md's budget scoreboard (the <!-- BUDGET: ... --> header — see claude-md/memory-capture.md):
- If this session added memories, recompute and update the scoreboard counts (
memories, andalways-on/always-bytesif any new entry isrelevance: always) in the same recap commit. Keeping the scoreboard live is recap's job because recap is the reliable session-close hook — capture does not update it per-write, so recap is the only organ that reconciles it. - If a soft ceiling is crossed —
always-on > ~20 filesoralways-bytes > ~60 KBormemoriesgrew a lot sincelast-audit— surface a one-line nudge: "Memory floor is at<A>always-on files /<B>KB (ceiling ~20/~60). Want to run/memory-audit --check 10to prune?" Do not run it unprompted — just surface the signal at the moment the user is already wrapping up. - If nothing crossed, say nothing. The check is invisible when the corpus is healthy.
This closes the loop: capture guards entry (§6b), the scoreboard makes growth visible every session, and recap turns "wrapping up anyway" into the recurring moment the floor gets checked.
Failure modes
- Ambiguous primary goal (session covered multiple unrelated threads). Ask one clarifying question: "This session touched X, Y, and Z. Which is the primary focus of the recap, or would you prefer three separate recaps?" Do not guess.
- No session content to recap (fresh session with no tool use, no commits). Decline gracefully: "Nothing substantial to recap yet — ask again once the session has produced work."
- Git not available or not a repo. Omit the
branchfield andCompletedcommit list; still write the recap. - User-supplied title conflicts with an existing file. Propose a disambiguating slug; do not silently overwrite.
sessions/folder owned by another process (unlikely but possible with multiple Claude sessions). Re-check before write; if the file appeared mid-draft, prompt the user.
What recap does NOT do
- Does not auto-fire. Ever. Mode B parked.
- Does not do cross-session consolidation. Recap is strictly micro/episodic — one session, what happened today, what's next tomorrow. Stepping back over the body of many sessions/ships to ask "what still coheres, what's drifted" is the corpus checkpoint's job (checkpoint --scope corpus). Recap feeds it (recaps are an input corpus, swept by the uncaptured-lessons pass); it does not aggregate across sessions itself.
- Does not summarise each tool call. That's claude-mem's granularity; recap rejects it as too noisy. Recap is session-level, not tool-level.
- Does not sync across machines. Memory is local by design. Each PC has its own session log.
- Does not write directly to rule-tier memory. Promotion flows through capture so classification is consistent.
- Does not update
MEMORY.md's index entries. Recaps are discovered by folder scan, not via the index. (It DOES update the budget scoreboard header — §9 — but never the per-memory index lines.) - Does not manage recap retention. Keep recaps indefinitely; discovery ages auto-surfacing at 30 days; manual pruning only. (It DOES run the corpus bloat check on rule-tier memory — §9 — but only surfaces a nudge, never prunes unprompted.)
Relationship to other organs
- capture — promotion path. Recap's Learned items pass through capture to become rule-tier memories.
- checkpoint (corpus scope) — the macro aggregator above recap. Recap is the per-session feeder; the corpus checkpoint sweeps all recaps since its last run for
Learneditems the per-session promotion pass (§8) missed, and consolidates across the body of work recap only records one slice of. - discover — discovery scans
sessions/as a retrieval source with a 30-day auto-surface cutoff (see discover §8a). - deliver — recaps render as tier
session-recapin delivery's default ordering, between project-facts and codemap. - git log — complementary, not duplicative. Git is authoritative for commits; recaps add the why and what was learned that commit messages don't capture.
- update-changelog — recap offers a changelog ship line for a session's shipped unit (§7.4); update-changelog is the writer. recap = per-session episodic record; changelog = the canonical chronological ship index.
- close-out — when a session shipped a feature (a slug with a spec/plan), recap §7.4 offers
/close-out <slug>(the superset that reconciles the spec + files the plan + logs the ship line) instead of the bare changelog offer. recap is about the session; close-out is about the feature — distinct subjects, so recap is a doorway, not the closer. - wrap — the session-terminus driver invokes recap (with
--under-wrap, Inputs §4) as one step of the closing ceremony. Under that signal recap suppresses its §7.4 offers —/wrapowns the close/changelog doorways, so recap doesn't double-offer. Standalone/recapkeeps §7.4 firing. recap is a step of/wrap, not the other way round.
See docs/recap-organ.md for the two-tier memory model and retention policy.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

