Retro workflow
How the three retro skills fit together: which one to start, what each reads, where its issues go
next, and where its report is saved. It also places ceh-every-session:explain-action, which
answers about one turn before any of them runs.
Per-skill detail lives in each skill’s SKILL.md and its plugin’s README. This guide covers only
what no single skill can document: the routing between them and the files they share.
The split
Section titled “The split”| Skill | Looks back over | Reads | Report kind |
|---|---|---|---|
ceh-git-workflow:write-period-retro |
A period of work in a repo | git log, and merged PRs when gh is set up |
period |
ceh-session-learning:diagnose-session |
One Claude Code session | The session transcript and its subagents’ | session-<id-prefix> |
ceh-every-session:prevent-repeat-mistake |
One mistake that must not come back | The quoted evidence of that mistake | repeat-mistake |
The first two find issues and route them. The third fixes one kind of issue, an agent mistake, and is also a route the first two hand work to. Each retro names the issue and its evidence, not the fix, because the routed skill finds the cause and designs the fix.
explain-action is not a retro. It answers why the agent did or did not do something in one turn
of the current session, saves no report, and asks before prevent-repeat-mistake runs, because
the answer may show there was no error.
Routing: what you say to what runs
Section titled “Routing: what you say to what runs”| Moment | Loads |
|---|---|
| “write a retro”, “what did we ship this week”, “how did the last month go” | write-period-retro, over the period since the last retro |
| “diagnose this session”, “why did that session go wrong” | diagnose-session, which dispatches four transcript-analyst |
| “the agent kept doing X”, with a session to read | diagnose-session |
| “you did X again”, “make sure this never happens again” | prevent-repeat-mistake |
| “why didn’t you use X”, “why did you do that”, about this session | explain-action |
write-period-retro starts the day after the newest .agents_workspace/product/retro/*-period.yaml (or in the older retros/ beside it), or an older *-period.md, when no dates are
given, otherwise the last 14 days. diagnose-session reads ~/.claude/projects/<project>/: “this
session” is the current one, “the last session” the newest other transcript.
Where each issue goes
Section titled “Where each issue goes”write-period-retro and diagnose-session share one route table (registered in
docs/CROSS_REFERENCES.md, “Retro routing and report location”):
| Issue is | Route |
|---|---|
| A bug in this repo’s code or config | ceh-coding-conduct:find-root-cause, writes a fix record |
| A feature or design change in this repo | ceh-build-plan:write-build-plan |
| An agent mistake a check or guidance in this repo should have stopped | ceh-every-session:prevent-repeat-mistake |
| A rule for how work is done in this repo | ceh-every-session:record-project-decisions |
| Anything else in this repo | Fixed directly, with the check that proves it |
| Outside this repo: user settings or memory, an installed plugin, Claude Code itself, another repo | Left in the report for the user |
The agent acts on every in-repo route in the same session. Each issue ends handed off or
dropped with a reason, and stays open only while it waits on a user decision: one outside the
repo, or a route whose plugin is not installed. A row in a backlog file the repo names counts as
handed off. A Claude Code root cause from diagnose-session is
always left for the user, because filing its bug report is outward-facing.
prevent-repeat-mistake has no route table. It climbs its own ladder, strongest rung first: remove
the cause, a Claude Code setting, a check at write time, a check before landing, written guidance.
It builds a check (rungs 3 and 4) that lives in the current repo, and drafts for the user to
approve anything that changes how later sessions behave or rewrites the user’s content: rungs 1
and 2, a hook, and every written-guidance edit (CLAUDE.md, memory, a skill, a plugin).
Where reports are saved
Section titled “Where reports are saved”Every retro saves one report, holding the issues whose fix lands in this repo and those left for the user:
| Report | File |
|---|---|
period, session-<id-prefix>, repeat-mistake, with its .md beside |
.agents_workspace/product/retro/<YYYYMMDD-HHMMSS>-<session-id>-<kind>.yaml |
The routed work and the next retro read it. A repo whose CLAUDE.md names another location saves
there. Each skill fills its own template, period-retro/v3, session-retro/v3, or
repeat-mistake/v2, because the three reports differ. A report saved before 2026-11-14 as a pair,
one file per side linked through other_file, is still read, and so is a period or session
report saved as a .md with no YAML beside it.
The workspace may be pushed to a remote, so a report is cleaned before it is saved:
diagnose-session scrubs and audits its root causes (secrets, home paths, hostnames, personal
data), and prevent-repeat-mistake masks secrets as <secret>.
Scenario A: a period retro
Section titled “Scenario A: a period retro”- Say “write a retro for the last two weeks”.
write-period-retrocollects the history, groups what shipped, reads the flow, and names at most three issues, each with the PRs that show it. - Each in-repo issue goes to its route in the same session: a fix-of-a-fix to
find-root-cause, a churn hotspot towrite-build-plan, slow or unreviewed merges torecord-project-decisions. - The retro is saved to
.agents_workspace/product/retro/<YYYYMMDD-HHMMSS>-<session-id>-period.yaml, with the.mdrendered beside it.
Scenario B: a session that went wrong
Section titled “Scenario B: a session that went wrong”- Say “diagnose the last session, it wrote code before a plan”.
diagnose-sessionsends fourtranscript-analystagents, one per lens, then re-reads every cited line before concluding. - Each root cause is classed (request, guidance, environment, model, Claude Code) and routed. A
guidance or model cause usually goes to
prevent-repeat-mistake. prevent-repeat-mistakepicks the rung, builds or drafts the fix, and saves.agents_workspace/product/retro/<YYYYMMDD-HHMMSS>-<session-id>-repeat-mistake.yaml, with the.mdrendered beside it. Its next run checks each report and lists every draft stillawaiting approvalbefore taking a new mistake, so a draft is not lost between sessions.
2026-10-22-session-de93dc4b.md and 2026-10-22-repeat-mistake.md, in this repo’s own retros
folder, are a real pair: the session diagnosis found a skill description that did not fire,
and the repeat-mistake report rewrote it at rung 5.