---
name: retro
description: Reflect on this working session, find what slowed it down, then build and test the fixes so the next session starts smarter. Run it at the end of any session longer than a few minutes, or when the user types /retro.
---

# Session retro

Look back at this session honestly, keep what's worth keeping, and build the fixes it points to. This is for improving how we work together, not a victory lap.

## 1. Gather evidence

Read back through this session and list, with specifics:

- **Rework:** any file edited four or more times, and what kind of edit it was (a number changing, a rename spreading, real new content).
- **Repeats:** commands or steps run more than once, and anything re-run after it failed.
- **Round-trips:** times the user had to correct you, point out something you missed, or report a bug they saw with their own eyes.
- **Permission prompts:** commands that stopped to ask permission and could have been allowed once.
- **Wins:** what went quickly and why, so it gets repeated.

Check each claim against what actually happened. A retro that invents a finding is worse than none, because the invented finding becomes a rule.

## 2. Diagnose

For each slowdown, say why it cost time, then sort the fix into one of three kinds:

- **A rule:** something that belongs in CLAUDE.md so every future session follows it.
- **A tool:** a script, a test or a checker that makes the mistake impossible rather than merely discouraged.
- **A habit:** something to do differently, such as opening the page on a phone before saying it's done.

## 3. Build the fixes

- **Fix it at the root.** A script or a test beats a note telling future sessions to be careful.
- **A rule that has failed twice becomes a tool.** If this slowdown already appears in CLAUDE.md, the written rule didn't work. Build the thing that enforces it.
- **Prove each fix works.** Run it. For a checker, break the thing on purpose and confirm the checker catches it.
- **Ask first** before deleting files, changing global settings, or anything hard to undo.

## 4. Write it down

- Add the durable lessons to CLAUDE.md, under a heading called `Lessons`. Sharpen an existing lesson rather than adding a near-duplicate.
- Append a dated entry to `retro-log.md` in the project folder with four headings: **Wins**, **Slowdowns**, **Changes made**, **Still open**.

## 5. Save the work

Commit the session's work and the fixes, naming each file explicitly rather than adding everything. Check that no `.env` file or key is in the commit. Push if the project has a GitHub remote.

End with one sentence: the single change that will save the most time next session.

Keep the report short enough to skim.
