/roost:retrofrom roost
Runs a retro on one Claude Code session: mines the transcript for corrections, errors, and retries, then ranks setup changes with evidence for the user to accept.
Ships in roost. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
A run that went badly once will go badly again unless something in the setup changes: the team config, a repo's checks or instructions, or roost itself. The retro reads what actually happened in a session, finds the moments that cost time or trust, and proposes the change that stops each one recurring, in the place that can enforce it.
First, load the team config with roost-config.
For now the retro covers one session: this one, or one the user names. It reads only that session's own transcript, never a subagent's.
If the user already gave you the script's output for the session, skip to step 3: don't look for the transcript or run the script again.
Transcripts are ~/.claude/projects/<folder>/<session id>.jsonl, one folder per working directory. Don't build the folder's name from the path (characters such as ., _ and spaces are changed in it); find transcripts by what their records say: each record has the session's working directory as "cwd".
cwd (grep -lF '"cwd":"<this directory>"' ~/.claude/projects/*/*.jsonl, a fixed string, so . and [ in the path match only themselves); of those, the newest that contains the user's last message. Say which file.~/.claude/projects/, not only this directory's: a repo session's transcript is in its own repo's folder. Match the name against each transcript's custom-title and agent-name records, written with no space after the colon (grep -lF '"customTitle":"<name>"' ~/.claude/projects/*/*.jsonl, and the same for "agentName":"<name>"). If none matches, or more than one does, list what you found and ask which.python3 <this skill's folder>/scripts/retro_moments.py moments <transcript> --config <team config> [--config <override>]
The script is skills/retro/scripts/retro_moments.py; run it from this skill's own folder. Pass the team config and then each override file roost-config applied, in that order: the script redacts their identifying values (the tracker site and IDs, hostnames, URLs, IP addresses, the test account pattern) and generic secrets from every quote, and drops a quote it can't clean.
It prints one JSON object: moments (each with its kind, session, time, record id and excerpt; slow steps grouped by command with each run), sessions with totals per session, unreadable transcripts (files it couldn't open, or that failed while being read), unparseable records, unknown_types, unknown_shapes (records that look like a hook's block or a delivery notice, in a shape the script doesn't read yet), subagents_not_read and redaction.
Read every moment and the totals. Open the transcript around a moment only when the excerpt isn't enough to say what happened, and quote only the script's excerpt.
A correction moment is only a candidate: the script marks each message the user typed after their first, except the interruption a rejected permission prompt writes. A go-ahead or an approval ("yes", "proceed", "merged", "looks good") isn't a correction, and nor is the user's answer to a question the agent asked. Only a message that changes or rejects what the agent did ("we don't use moment here", "that's the wrong repo") can back a finding. The user interrupting the agent ([Request interrupted by user) is a real correction too: they stopped what it was doing.
A refusal moment is a tool call that didn't run; its how says who stopped it:
user-rejected: the user said no at a permission prompt. That's the user's judgment, like a correction: the agent tried something they didn't want. The prompt's own "[Request interrupted by user for tool use]" isn't counted again.automode-blocked or automode-unavailable: auto mode stopped the call, not the user. Nobody said no to that call: it points at what the session was allowed to do, not at the user's view of the work, so its finding is in the Permissions and auto mode area of references/finding-areas.md (or roost itself, when a roost skill asked for the blocked action). An interruption after it is a real correction.Use references/finding-areas.md: each finding names its area, which decides where the fix goes, and has what happened, its evidence (the moment's excerpt, session and time), what skipping it costs with a concrete case, a recommendation marked Checked or Hypothesis, and where the change goes. Rank them there too.
review_focus; when the repo has none, start from planning.review_focus, since a repo's own replaces it; or the repo's coding standards). Neither is only a line in CLAUDE.md or AGENTS.md.Show one ranked list, most severe first:
| # | Severity | Area | Finding | Evidence | What skipping costs | Recommendation | Where |
|---|
Checked: with its evidence, or Hypothesis: with the check, who can run it and how long it takes against what the problem costs.Team config (and the key), a repo's name, Permissions (the settings file and the tool), or roost.End with: "Decide each by number: a Checked finding takes yes or no; a Hypothesis takes check now, ticket the check, or skip." Then stop and wait.
A "yes" on a Hypothesis isn't one of its choices: ask again which of the three it is. Never treat it as approving the change: the change waits for the check.
Only after the user decides, and only for what they accepted:
cross-repo-handoff prompt that its session can act on.cross-repo-handoff prompt. A check only the user can run is a person-owned task (labelled tracker.person_task_label, default person-owned) for the user, with its steps and the result that confirms or refutes the hypothesis. The change waits for that result.Before filing any ticket or person-owned task, check its text, so no path, username or configured value leaves this machine:
Write its title to one file and its body (with any cross-repo-handoff prompt) to another, exactly as they'll be filed, and show both to the user.
Run the check with the same configs and the run's transcripts, so it knows the session's username:
python3 <this skill's folder>/scripts/retro_moments.py check <title file> --config <team config> [--config <override>] --transcript <transcript>...
python3 <this skill's folder>/scripts/retro_moments.py check <body file> --config <team config> [--config <override>] --transcript <transcript>...
When the user gave you the script's output instead of a transcript (step 1), there's no transcript to pass: ask them for the session's working directory and pass it as --cwd <directory>. Pass --no-users only when the user says the session ran outside any home folder.
File it only when both checks pass (exit 0, "passed": true), and file from those same files: the body with the tracker adapter's create-from-a-file (--body-file <body file> for GitHub) and the title read from its file (--title "$(cat <title file>)"), never text typed again. Any edit after the check, however small, means checking that file again before filing. On a hit (exit 3), show the user each one (kind: path, config, user, secret or unsure, a string redact would withhold; line, column, length; and key for a configured value or reason for unsure), fix the text, and check again. When the check can't run (exit 4, with a reason: a transcript it can't open, or no usernames to look for), file nothing: give it the transcripts or --cwd it asks for, and check again. Never file a draft that failed, and never work around a hit by rewording the check's input.
One line: "Retro on acme-api-3f: 4 findings, 2 accepted, 1 check ticketed, 1 skipped." Then each home made, with its link. Then, when there are any, each of these, never skipped silently:
unreadable): which session, and why ("can't read the file", or "couldn't be read" when it failed partway); the retro covers the rest. These are whole files, not the unreadable records below.unparseable, unknown_types): "3 records couldn't be read (2 not JSON, 1 incomplete last line); 1 unknown record type."unknown_shapes): "2 records look like a hook's block; retro doesn't read that shape yet, so they aren't in the findings: , lines 77 and 140."subagents_not_read): "2 subagent transcripts weren't read; retro reads only the sessions' own transcripts."redaction.dropped): "2 quotes withheld; their findings cite the session and time."What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub beakpoint-insights/roost --plugin roost23 skills in this plugin
/automate-testsAutomate the tests linked to a story or slice. Read each test's scenarios, find which already have automation, write the missing automation at the right layer, run it, and only when every scenario passes mark the test automated. Use when a developer agent is asked to "automate the tests for PROJ-X", "figure out why these tests aren't automated", or to finish the e2e work for a slice./automate-xray-testsThe old name of automate-tests, kept so it still works. Use automate-tests./bug-bashFix a list of bugs from the tracker in this repo, one branch each, test-first, with each fix placed by its parent (on the epic's GitHub stack for a bug in an unreleased epic, or its own PR from main for a standalone bug), moving each ticket through In Progress and Ready for Release. When a fix needs another repo, hand it off with pasteable comments instead of touching it. Use when the user gives a list of bugs to fix, says "bug bash", or pastes a "Big Bug Fix Bash" prompt./build-epicBuild an epic from its tech lead prompt to release QA, through the user's repo sessions (one per repo in the team's roost config). If the stories have no kickoff comments yet, it first sends the epic's tech lead prompt to the lead repo's session, brings the plan to the user for approval, and has the kickoffs posted. Then it runs run-slice for each story in order, slice-handoff between stories, the epic's "before release" work, review-epic, close-out-epic and release-qa. Starts without asking and keeps going on its own; stops only for decisions that are the user's (the plan, each slice's checkpoints, each handoff's sorting table) and for real blockers. Answers "where are we on the epic?" from the tracker, GitHub and its state file. Use when the user says "build PROJ-X", "build the epic", "develop PROJ-X", "start building PROJ-X", "do all the slices", "take this epic to release", or the older "run the epic" and "run the rest of PROJ-X". Run it from a separate orchestrator session, not from inside any of the repos./close-out-epicClose out an epic before it's released, so that its open-ticket count means something. Lists every open ticket under the epic and proposes, for each, fix before release, move to the epic's follow-up epic, or make standalone, then waits for the user's decisions. Moves the deferred tickets out of the epic with a link back, rewrites each one's description so it still makes sense outside the epic, posts one closing comment on the epic saying what was deferred and where it went, and checks the epic has no open tickets left. Run it again after the release ships, to confirm production runs it, check each release workflow and its tracker sync, close any ticket left waiting to ship with the version it shipped in, rewrite the epic's Release order and Close-out comments as shipped, and offer to draft the epic's release notes. Use when the user says "close out PROJ-X", "get PROJ-X ready to release", "move the leftovers out of the epic", "what's still open in this epic", "wrap up the epic" or "the epic shipped", and from build-epic right before release QA./create-xray-testFile Cucumber scenarios you already have into Jira as Xray Test issues, or update the scenarios on an existing Xray Test, through the browser. Only for teams whose tests are Xray (tests.kind xray); with any other kind, tests are filed as that kind's tests adapter says, not with this skill. Sets the parent epic, Components and the link to the story, and checks what was saved. Doesn't write or check scenarios; use live-verified-bdd to write them for a feature that already runs, or shape-epic for a new epic.Other plugins' skills for the same job