agentleFS
dennisrongodennisrongo/claude-skills/skills/session-retro/SKILL.md

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

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.
  • AnthropicSkill

    write-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

  • wpankSkill

    session-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

  • GoogleSkill

    tdd

    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

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
  1. Very specific:

    Not for carrying work into a fresh session (handoff).

    line 27
  2. Distinctive:

    Never run it unprompted mid-task.

    line 29
  3. Very specific:

    Close the marker: When the user is finished with an earlier session's retro, run RETRO clear --session <id>.

    line 53
  4. Very specific:

    Run RETRO install-hooks. It is a dry run: it prints the settings file and the entries it would add.

    line 68

“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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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

  1. Pick the session. Same session: RETRO inventory and RETRO digest read the newest transcript for the current directory. Earlier session: RETRO pending lists markers; pass the chosen transcriptPath as --transcript <file>. A command that errored or was not run is reported as inventory: not run, never guessed.
  2. Read the digest, not the transcript. RETRO digest prints 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 .jsonl directly.
  3. 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).
  4. Classify every skill used from the inventory output, one row each:

    kindMeaningWhere an edit goes
    plugin-installedCopy in the plugin cacheThe marketplace source printed for it, then that repo's own update loop. Editing the cache is overwritten on the next update
    junctionedLink to a source directoryThe target path, edited in place, then committed in that repo
    standalone-copyReal directory, no linkFlag 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 cacheBuilt in, removed, or scoped elsewhere. Propose nothing
  5. 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.

    SkillLink typeCited momentProposed editFuture benefit
  6. 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.
  7. 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.
  8. 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.
  9. 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:

  1. Run RETRO install-hooks. It is a dry run: it prints the settings file and the entries it would add. Show that output.
  2. 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.
  3. --scope project targets .claude/settings.local.json in 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 --apply because 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 inventory output, 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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.