session-retro
Skill1 starsChanged 4 months agoMITView on GitHub
Closes out a session with a sanitized retrospective: a short summary of the thread, an inventory of the skills that were used and how each is installed, and proposed skill improvements that wait for approval before any file is touched. Can also install opt-in session hooks so the next session offers a retro for the last one. Use this skill whenever the user says "/session-retro", "session retro", "wrap up the session", "end of session review", "what did we learn this session", "should any skill be updated", "install the retro hooks", or when a session-start notice says a retro is pending - even if they don't name the skill. Not for saving context to continue in a fresh session (handoff) and not for reviewing code.
17 other projects use a version of this.
Adopted by
Most recently taken up by
- TheAxeC/ordotheir own version, first seen Nov 29, 2026
- anhle9x/ai-workertheir own version, first seen Nov 29, 2026
- Valehead/ccBartheir own version, first seen Nov 16, 2026
- jatinmishra/claude-skills-monorepotheir own version, first seen Nov 8, 2026
- phntm7/skillstheir own version, first seen Nov 1, 2026
- momentmaker/kaijutsutheir own version, first seen Nov 1, 2026
Used with
Projects with it also use write-spec, session-handoff and 1 more.
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.
AnthropicSkillwrite-spec
Write a feature spec or PRD from a problem statement or feature idea. Use when turning a vague idea or user request into a structured document, scoping a feature with goals and non-goals, defining success metrics and acceptance criteria, or breaking a big ask into a phased spec.
Also in 3 projects that use this
wpankSkillsession-handoff
WHAT: Create comprehensive handoff documents that enable fresh AI agents to seamlessly continue work with zero ambiguity. Solves long-running agent context exhaustion problem.
Also in 3 projects that use this
GoogleSkilltdd
Test-driven development. Use when the user wants to build features or fix bugs test-first, mentions "red-green-refactor", or wants integration tests.
Also in 3 projects that use this
Other versions17 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 17
- werf/werf★ 4.7ksame name
- Arman-Kudaibergenov/1c-ai-development-kit★ 163same name
- adeonir/agent-skills★ 9same name
- renzrollon/shippable-skills★ 7same name
- Zejnilovic/agd★ 5same name
- anhle9x/ai-worker★ 4same name
- momentmaker/kaijutsu★ 3same name
- bbeny123/pragma★ 2same name
- Kwangseok-Seo/skills★ 2same name
- nhhthong/skills★ 1same name
7 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 repository39 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- api-contract-reviewSkill
- autopilotSkill
- backlog-plannerSkill
- codebase-explainerSkill
- code-reviewSkill
- context-dietSkill
- conventional-commitsSkill
- create-prSkill
- design-briefSkill
- diagnoseSkill
- dotnet-conventionsSkill
- dotnet-onion-apiSkill
- draw-optionsSkill
- e2e-verifySkill
- githubSkill
- goal-runnerSkill
- grill-with-docsSkill
- handoffSkill
- humanizerSkill
- improve-codebase-architectureSkill
- maestro-mobile-testSkill
- migration-safetySkill
- model-inventorySkill
- nextjs-app-routerSkill
- plan-and-buildSkill
- record-browser-testSkill
- regression-huntSkill
- safe-refactorSkill
- security-reviewSkill
- ship-itSkill
- sql-reviewSkill
- task-executorSkill
- tauri-2-appSkill
- think-like-fableSkill
- upgrade-depsSkill
- worktree-sandboxSkill
- write-a-skillSkill
- write-testsSkill
The file
We split this skill into the rules it gives an agent
4 rules. 0 are common, 1 is distinctive, and 3 are very specific to this project.
0
Common
Most of the 16 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 27
Not for carrying work into a fresh session (handoff).
- Distinctive: line 29
Never run it unprompted mid-task.
- Very specific: line 53
Close the marker: When the user is finished with an earlier session's retro, run RETRO clear --session <id>.
- Very specific: line 68
Run RETRO install-hooks. It is a dry run: it prints the settings file and the entries it would add.
“Common” is measured: kept by at least 6 in 10 of the 16 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
Session Retro
Skills only improve if lessons leave the transcript. This skill turns what a session taught into small, approved skill edits, and keeps anything private out of the text it shows or writes.
RETRO below means node "<base directory>/scripts/retro.mjs" (Node 20+, no packages), where the base directory is the one shown when this skill was loaded. Quote the path. State lives in ~/.claude/session-retro-pending/ (or under CLAUDE_CONFIG_DIR); nothing is written into a repo.
When to use this skill
- "/session-retro", "wrap up the session", "end of session review", "what did we learn", "should any skill be updated"
- A session-start notice says a retro is pending for an earlier session
- "install the retro hooks" or "offer a retro when a session ends" (see Hooks)
- Not for carrying work into a fresh session (
handoff); not for code review
Never run it unprompted mid-task. Never edit a skill before the user approves a row in step 7.
Workflow
- Pick the session. Same session:
RETRO inventoryandRETRO digestread the newest transcript for the current directory. Earlier session:RETRO pendinglists markers; pass the chosentranscriptPathas--transcript <file>. A command that errored or was not run is reported asinventory: not run, never guessed. - Read the digest, not the transcript.
RETRO digestprints user and assistant prose and tool names only, with emails, IPs and the home folder masked. Tool output is where query rows, record contents and credentials live, so never open the.jsonldirectly. - Summarize in at most 8 lines: what was asked, decided, changed, unfinished. Each line is a fact from the digest; anything inferred is marked
(inferred). Classify every skill used from the
inventoryoutput, one row each:kindMeaning Where an edit goes plugin-installedCopy in the plugin cache The marketplace sourceprinted for it, then that repo's own update loop. Editing the cache is overwritten on the next updatejunctionedLink to a source directory The targetpath, edited in place, then committed in that repostandalone-copyReal directory, no link Flag it as drifting from its source and offer to replace it with a link; never edit it as if it were the source not-foundNot in user skills, project skills or the plugin cache Built in, removed, or scoped elsewhere. Propose nothing Reflect, then propose. A proposal exists only if you can cite the digest moment that motivated it. No moment, no proposal. Zero proposals is a valid result: write "No skill changes warranted" and stop. Valid reasons: the skill gave a wrong or stale instruction, lacked a step the session needed, its trigger missed or misfired, or it was skipped when it should have run.
Skill Link type Cited moment Proposed edit Future benefit - Sanitize before anything is shown or written. Cited moments and proposed text are generic: replace person names, ids, ticket and PR numbers, usernames, emails, machine paths, hostnames, IPs, repo and database names, and any data values with placeholders (
<user>,<ticket>,<repo>,<host>). Describe the failure mode, not the incident. Invent the example; a redacted real case still leaks its shape. - Stop and wait. Show the summary, the inventory and the table, and ask which rows to apply. Apply only approved rows. Commit, push or post nowhere unless the user says so.
- Verify each applied edit. Re-read the edited file and quote the changed lines. For a plugin source edit also confirm the version bump and that the new cache directory holds the change. An edit you did not read back is
not done. - Close the marker. When the user is finished with an earlier session's retro, run
RETRO clear --session <id>.
Sanitizing: the same proposal, badly and well
- ❌
Step 4 failed on ticket <ticket> in <repo> when <host> returned rows for <user>.(each placeholder stands for a real identifier that must never be written out) - ✅
Step 4 assumes the database is reachable; when the host is down the skill loops. Add a stop-and-ask after one failed connect.
The ✅ keeps the lesson and drops every identifier. A lesson that cannot be stated without one is not ready for a shared skill.
Hooks (opt-in)
A session cannot ask anything when it ends, so the hooks work in two steps. SessionEnd runs hook-end, which writes a marker (skill names, install types, counts, transcript path, never conversation text) when the session used a skill or had at least 8 of your messages (SESSION_RETRO_MIN_TURNS changes the 8). SessionStart runs hook-start, which tells Claude once, in one line, that a retro is pending; it stays silent after compact. Markers older than 14 days are pruned. Neither hook runs a model or asks anything.
Install only when the user asks:
- Run
RETRO install-hooks. It is a dry run: it prints the settings file and the entries it would add. Show that output. - On the user's yes, run
RETRO install-hooks --apply. It backs up the file, writes it, and reads it back (read-back: verified). Any other read-back result is a failure; say so. --scope projecttargets.claude/settings.local.jsonin the current directory instead of~/.claude/settings.json;--settings <file>targets an explicit file.RETRO uninstall-hooks(also a dry run until--apply) removes only these entries.
- ❌ Running
install-hooks --applybecause the user said "set up the hooks" and the dry run was skipped. - ✅ Dry run first, show it, apply on yes. A settings file that is not valid JSON is refused and left untouched.
The hook commands hold the absolute path of this folder. If the skill folder is moved or reinstalled elsewhere, run install-hooks --apply again; it updates the path in place.
Evidence gates
- Claim a skill was "skipped" only if the digest shows a situation its description covers and no
[tool: Skill <name>]line for it. - Claim a skill was "wrong" only if you can quote the instruction from the skill file you opened and show the digest moment where it failed. A skill you have not opened is a hypothesis; label it one.
- Classification comes from the
inventoryoutput, never from a skill's name.
Example
User: "/session-retro"
Claude: runs RETRO inventory and RETRO digest, then reports a 6-line summary, a 3-row inventory (one junctioned, two plugin-installed), one proposal with its cited moment and benefit, and asks "Apply row 1?". Nothing is edited until the answer.
Anti-patterns
- ❌ Editing a skill inside the plugin cache because that is the path that was loaded. ✅ Edit the marketplace source.
- ❌ Proposing a change because it "might help". ✅ Cite the moment, or drop it.
- ❌ Reading the raw transcript and quoting tool output into the summary. ✅ Use the digest.
- ❌ Padding the table so the retro looks productive. ✅ "No skill changes warranted" is a complete answer.
- ❌ Posting the retro to a tracker or channel. ✅ It stays in chat.
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.

