/retro:retrofrom retro
Runs an agile-style retrospective on how the user works with Claude Code, reviewing past commitments, gathering evidence from transcripts, git, and GitHub, and proposing actionable changes. Tracks agent configs and compresses context files.
Ships in retro. 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.
Goal: a closed loop commitment → compliance → effect → decision, not a list of observations. Every retro starts by reviewing what was agreed before.
Skill: ${CLAUDE_SKILL_DIR} (scripts/, assets/, references/). Run scripts with
python "${CLAUDE_SKILL_DIR}/scripts/<script>.py" (or python3; Python ≥ 3.8, standard library only).
On Windows python and python3 are often Microsoft Store stubs ("Python was not found"): use py then.
Working directory (state between retros, always outside the skill):
~/.claude/retro.json;<repo>/.retro/, committed with the project, shared by the team.Contents: konfiguracja.json, retro/RNN-YYYY-MM-DD.md, zobowiazania.md (register), metryki.csv,
agenci.csv (agent configuration after each retro), caveman.csv (compressed context files), nauki.md (account
mode), dane/ (transcript extracts and compression backups, outside git). File names, configuration keys and CSV
columns are Polish identifiers; glossary: references/konfiguracja.md.
Scripts: wspolne.py (state detection), zaloz.py (directory setup), sygnaly.py (evidence from the window),
tokeny.py (price list, token archive and trend; used by sygnaly.py), zbierz_liczby.py (numbers from
another machine's transcripts for the trend), dopisz_metryki.py (a metryki.csv row),
przypomnienie.py (reminder hook), teksty.py (script messages per language and language-independent
recognition), agenci.py (agent definitions, snapshot agenci.csv, changes and their effect, task routing),
caveman.py (context files: list, backup, check, rollback), podagenci.py (subagent measure; from R08 run it
over the retro window: python3 "${CLAUDE_SKILL_DIR}/scripts/podagenci.py" --od <ISO> --repo <org/repo> [--json FILE];
baseline 2026-11-07..08: 154 starts, programista 47 starts at 73 calls/start and 109k context, first-call write 3%
of subagent cost, 452 worktree-guard refusals, 64% heredoc; aim: refusals per start down after the shell-shape rule
in the agent files). Configuration fields: references/konfiguracja.md.
Meaning and limits of the metrics: references/sygnaly.md; prices for cost metrics: references/cennik.json;
compressing context files: references/caveman.md.
Templates: assets/<jezyk>/ (pl, en). For a language without its own templates use assets/en/ and
translate headings and labels while filling them in.
MM-DD HH:MM + the
first 8 characters of the session id (from the timeline in dane/sygnaly-*/<project>.md), a PR number, a
commit hash or a file.ocena_wlasciciela in the configuration is on: assess their decisions and
habits like Claude's work, in terms of cost and effect (time, interrupted work, correction rounds), not the
person.nauki.md), agent definitions (.claude/agents/*.md: model, effort, description, the prompt)
and the form of context files (caveman compression), and only after the user decides.jezyk in the configuration (pl when the field is
missing), plain, without jargon where an ordinary word exists. These instructions are in English; that does
not change the output language. Exception: text that goes into context files (CLAUDE.md, agents, memory,
nauki.md) is written in that language at the caveman level of the configuration (references/caveman.md);
the retro document and the register stay plain. Chat with the user follows komunikacja_poziom and
komunikacja_jezyk; subagent prompts and reports follow komunikacja_agentow (references/caveman.md,
"Communication style").python "${CLAUDE_SKILL_DIR}/scripts/wspolne.py" prints JSON: working directory, mode, configuration, last
completed retro, next number.
No directory (katalog_roboczy: null) = first run. Ask separate questions, the language first:
~/retro (recommended) / other;PL) or weekends only
(brak).Then python "${CLAUDE_SKILL_DIR}/scripts/zaloz.py" --tryb konto --katalog <dir> --jezyk <code> [--kalendarz brak] [--bez-oceny-wlasciciela] or --tryb projekt --repo <repo> --jezyk <code>. Show what was
created. If the skill is not installed as a plugin, the reminder does not work by itself: propose a hook as in
references/konfiguracja.md, section "Reminder without the plugin".
Account mode: the session should work in the working directory (move it with a change-directory tool if there is one; otherwise use absolute paths). Project mode: the session works in the project repo.
Number N = nastepny_numer. File retro/RNN-YYYY-MM-DD.md from assets/<jezyk>/szablon-retro.md, with the
draft status (**Status:** szkic / draft). If an unfinished draft exists, ask: finish it or replace it.
Window: from the day of the last completed retro (inclusive) to today. sygnaly.py itself starts it at the
time of the commit that completed that retro, so events before it do not count towards the review. Skill
arguments ("only project X", "since 2026-10-06") narrow the window or the scope.
Retro zero (no completed retros, empty register): window from the oldest transcript. Instead of reviewing the
register, take stock of the existing lessons: feedback entries in project memory
(~/.claude/projects/*/memory/), the global ~/.claude/CLAUDE.md and sections about working with Claude in
repositories' CLAUDE.md. Treat them as implicit commitments: kept? effective? duplicated across projects?
contradictory? dead? The result is the first register (at most 10 active) for the user to accept.
python "${CLAUDE_SKILL_DIR}/scripts/sygnaly.py" --od YYYY-MM-DD [--chmura FILE] [--plan-uzyty PCT]
Before running it, gather two optional inputs the script cannot see (both came from the retired
claude-usage-report skill, which retro replaces since 0.5.0):
list_sessions and get_session, call list_sessions once (page only as far as sessions updated inside the
window), then ONE get_session per session updated inside the window and take external_metadata.usage.cost_usd
(the session's lifetime cost). Write [{"id": "<session id>", "title": "<short title>", "cost_usd": 12.34}] to a
scratch file and pass it with --chmura. The script keeps every reading in dane/chmura-archiwum.json and counts
only what was spent since the last reading before the window; a session read for the first time counts whole
("first reading"). Never page a session's events or transcript to rebuild its usage: one week of a handful of
sessions once cost about 0.6M tokens and a thousand tool calls that way. Without the tools the summary says "not
measured"; do not ask the user for the numbers.[fact] question; options e.g. "about 20%", "about 50%", "I don't know"). With an answer pass --plan-uzyty;
the summary then gives cost, owner messages and merged PRs per 10% of the plan, the only totals that compare
between windows of different lengths. "I don't know" = leave it out.Output in <working dir>/dane/sygnaly-<from>_<to>/: podsumowanie.md, metryki.json, <project>.md
(timeline), agenci.json (agent definitions at the retro's start), pliki-kontekstu.json (context files). Reports are in the configured language (English for languages other than pl). Read the summary and
the metrics, compare with metryki.csv. Answer classes and the limits of the numbers: references/sygnaly.md.
The heuristic correction marker ([C?], in Polish reports [K?]) is a hint, not evidence.
Tokens and cost of local sessions are computed by the script (the summary section "Tokens and cost" („Tokeny
i koszt”): cost at API prices as a relative measure, cost per message, context, subagents, wake-ups, startup
context); do not analyse tokens by hand. For the trend take koszt_na_wiadomosc_usd, kontekst_mediana,
kontekst_ponad_200k_proc, podagenci_opus_koszt_proc, wybudzenia and kontekst_startowy_mediana; the most
expensive sessions and wake-ups listed in the summary are evidence for the "what did not work" section. Each wake-up
has its cause (the user's message, a background task or subagent, another session, other): propose a remedy that
fits the cause, e.g. a hook on the user's message does not help against wake-ups by background tasks. Local
tokens do not cover work in a sandbox or in the cloud: when the repo has usage records from those environments
(e.g. an export from another tool), take the cost per merged PR from them.
The section "Tool calls: refused and failed" („Wywołania narzędzi: odrzucone i nieudane”) counts refusals (the harness stopped the call: worktree guard, classifier, user rejection, blocked sleep, hook, permission rule) and failures (command exit code, Edit/Write without a prior Read, tool input error, missing file) by cause, for the main session and subagents. Each refusal is a full-context turn spent for nothing: above 2 per 100 tool calls, put the most frequent cause into "what did not work" and propose a mechanism that removes it (an allowed read-only command, a script instead of a compound one-liner, waiting in the background), not a stricter sentence. A large "Edit/Write without a prior Read" count is a habit with a known fix (read the file with the Read tool before editing).
Also read the "Token trend" („Trend tokenów”) section: week by week from tokeny-tydzien.csv (the script appends
new weeks and overwrites the incomplete one), the last 4 weeks against the median of the 8 earlier ones. Put an
indicator marked ↑ worse („↑ pogorszenie”) into "what did not work" with the numbers from the table and look
for the cause in the window's most expensive sessions; "not enough data" („za mało danych”) is not a signal. Before
reporting an arrow, check the last column (the current, unfinished week): when a fix made this week already shows
there, say the arrow describes the state before the fix. Rows
from other sources (e.g. zrodlo=sandbox) have their own table; do not add them to the local ones. A remote
source from the configuration (zrodla_zdalne) is read once by the script; when the summary shows "not read"
(„brak odczytu”), do not retry the connection or probe the machine. Give the user a ready command to run
themselves (references/sygnaly.md, "Remote sources": output to a file and the plik field) and compute the
trend from what is in the archive.
Tokens and writing efficiency („Tokeny i efektywność pisania”, mandatory section 2a of every retro): the
summary compares the token and fix indicators with the last 3 retros in metryki.csv, shows cost by agent role,
model and reasoning effort week by week (from the trend archives, so also for remote sources), fix rounds in PRs
merged on GitHub by author model (from Co-Authored-By: Claude <Model> trailers), returns from review and CI in
transcripts by implementer and model, cost and quality per PR by implementer configuration (model · effort ·
PR size), the same table for the retro window alone, and the current agent definitions (.claude/agents: model, effort,
role). Since 0.9.0 it also has outcome measures for the cohort of PRs merged 30–60 days before the window end:
acceptance (no fix round and no rework by a later PR within 30 days), cost per accepted change (with owner messages
and attention time), and verification tightness (bugs caught by agent review against those caught after the review
approved, or in production), by implementer and by reviewer configuration. It opens with "Results against previous retros" („Wyniki wobec poprzednich retro”), the table for the closing
message (step 6), every window computed by today's definition. In section 2a write: what got
better and what got worse, with numbers against the previous 2–3 retros; efficiency by implementer configuration;
and the agent selection rules table.
The purpose of section 2a is to tune the rules that decide which agent, model and reasoning effort does which task.
Judge a configuration by its cost per PR (the mean agent cost of merged PRs, fix rounds included, i.e. the
expected cost of an accepted PR) together with the share of PRs with a fix, always within one role and PR size: a
model that writes better is worth its price only if the saved fix rounds pay for it (lower cost per PR) or the
user values the shorter time to merge. Price differences are already in the cost (current price list); reasoning
effort changes both cost and quality, so compare e.g. Opus · high with Opus · medium and Sonnet · high as separate
configurations. A row "main session" has no cost per PR (the session's own cost is not attributed to PRs): compare
only its quality. Fewer than 5 PRs in a cell (*) is a hint: propose an experiment with a split and a measure
instead of a rule. Each proposed rule names where it lives (the agent's model:/effort: in
.claude/agents/<name>.md, or the routing rule in the project's CLAUDE.md), the expected effect and the measure
for the next retros. A round is not always a return from the tester (rebases, conflicts). Agent roles come from
role_agentow in the configuration (references/konfiguracja.md); when the table shows a project's implementer or
reviewer under "other subagents", propose adding its type there. Rules the user accepts become recommendations in
section 8 like any other.
The retro manages the agent definitions between retros (since 0.6.0). Three more summary sections serve it:
description.agenci.csv
(written by dopisz_metryki.py at the end of each retro: the state after the retro's changes, plus the state at
its start when that differs) and the current files. Each change has the PRs before and after it: count, % with
a fix, the agent's cost and the total cost per PR, the size mix. This is the evidence for reviewing commitments of
kind "agent configuration" in step 3. A change "since the last retro" was made outside the retro: ask the user
whether it stays and, if so, register it as a commitment with a baseline.description decides which
tasks an agent gets. Propose a description change only with evidence of misrouting (size-S PRs at an expensive
agent, implementation in the main session although an agent exists for it, general-purpose doing a custom
agent's role, an agent never started). A description change is an agent change like a model change: the same
measure, and the same limits.Limits for agent changes, so the effect can be measured: one change per agent per retro (model, effort,
description or prompt, not two at once); when several agents share a role, change one of them per retro. Every accepted change becomes a commitment of kind "agent configuration" (format in zobowiazania.md)
with a baseline (PRs, % with a fix, cost per PR, size, from which retro) and a rollback condition (e.g. "% with
a fix grows by more than 10 points with ≥ 5 PRs after the change → back to the previous configuration").
Context files (caveman) („Pliki kontekstu (caveman)”, section 2b of the retro): sizes of the files loaded into
context (rules, agents, memory, nauki.md, custom skills and commands; plugin files excluded) with their state:
not compressed, changed after compression, another level, compressed. With caveman other than wyl, propose
compressing the files that are not compressed, largest first (rules in references/caveman.md); report
pliki_kontekstu_tokeny against the previous retros.
CI and deploy steps („Kroki CI i deploy: sesja główna a podagenci”, since 0.8.0): the cost of API calls whose
Bash/PowerShell commands watch CI (gh run, gh workflow, gh pr checks) or run deploy/ops (ssh, docker,
systemctl, deploy… and similar), per project, split into main sessions and subagents, with the median calls per
main session and the project's ops agents (classifier and limits: references/sygnaly.md, "CI and deploy steps").
It checks the session cost rule (in the author's setup Z-012 „Koszt sesji”: CI and deploy only via a Haiku
subagent with a fresh context, e.g. obserwator-ci / operator; a handoff to a new session after ~150 requests or
on a change of task). When the user's rules files have such a rule, review it as a commitment: opportunities = ops
calls and sessions over 150 calls, breaches = ops cost in main sessions and those long sessions. Report
ops_glowna_proc and zadania_na_sesje_mediana against the previous retros. For each project the summary marks as
an audit candidate (main-session ops share > ~10% of the project's cost, no ops agent in its .claude/agents, or
none on Haiku) propose in step 3 "run the project-agents audit (operator role) in ", with the numbers from
the table; several candidates make one change listing the projects, largest main-session ops cost first, so the
limit of 5 changes holds. The audit itself runs in each project's own session, not in the retro. No rule of that kind and
a main-session ops share above ~10% overall: propose the rule.
The summary contains notes about the data (paragraphs starting Note: / Uwaga:); take them into account
before quoting numbers:
a window longer than transcript retention, a week with high cost and few merged PRs in tracked repos (work may have
moved to an untracked repo: check before quoting per-PR numbers, propose adding it to repozytoria_dodatkowe), the date
remote agent events were read (PRs merged after it have no implementer), a repo checkout behind its remote branch (rules on disk out of date),
projects with memory but no sessions in the window, repos with commits but no local sessions (sandbox, cloud: the
per-message and per-session numbers do not see that work), directories with copies of CLAUDE.md (candidates for
katalogi_regul_osobno; adding them is the user's decision), models without a price in the price list. Secrets in
timelines are masked ([redacted], in Polish reports [zamazane]), but that is a heuristic: if you still see a
key or password, do not copy it into the retro file or into subagent tasks, only report it in section 8a as
something to rotate.
Small window (up to ~40 user messages in total): analyse it yourself.
Larger: general-purpose subagents with the explicit model model_podagentow from the configuration, in
parallel, one per project with activity plus one cross-cutting (collaboration, the user's side, contradictions
between projects). Each gets the project timeline path, zobowiazania.md, the project's rules files, the
"Standing rules" section, the output language and the task:
The subagent writes its analysis to dane/sygnaly-…/analiza-<scope>.md and returns ≤300 words. It may search
the full transcript (~/.claude/projects/*/<session>.jsonl) with grep by session id and time, without
loading it whole. Subagents' questions come back in their reports; you ask the user.
Fill in the retro file according to the template. Commitments review:
| field | values |
|---|---|
| kept | yes / partly (x of y opportunities) / no / no opportunity |
| worth it | yes / no / too early (too few opportunities) |
| verdict | keep / change / establish / drop |
Commitments of kind agent configuration: "kept" = the configuration is in force (the file has the agreed fields,
the routing uses the agent); "worth it" = the before/after table of the summary against the commitment's baseline,
in the same PR size. Fewer than 5 PRs after the change = "too early". The rollback condition met = verdict "change"
with the proposal to return to the previous configuration (the old values are in agenci.csv). "Establish" after 3
retros with a stable effect: the configuration stays in the agent file, the register stops tracking it.
Before you call something dead or propose "drop" (a rule, directory, script, hook, page), ask the user whether anyone uses it: no trace in transcripts does not mean nobody uses it (cloud work, other people, rare use; e.g. a directory with a website generated outside sessions). Ask in step 4 together with the verdict, or earlier when the analysis depends on the answer.
Waiting for the user (template section 8a). Collect, with evidence and a "since" date:
odlozone in the timelines) that did not come back;gh pr list in the repositories from the summary) and unpushed branches
(git log --branches --not --remotes);HANDOFF*, "to do" memory entries) with no session in the project for more than 10 working days;rejestry_pytan files in the configuration, older than 30 days;The retro does not do these things itself; you ask about each item in step 4.
Convention to offer: a question about a fact only the user knows ("which network are you on?") has no
recommended option by nature. Starting the question with [fact] (or [fakt]) makes the signals count it
in its own class, not as a missing recommendation or a correction. If unmarked fact questions distort the numbers,
propose the convention as a rule for the user's rules file.
Up to 4 questions per call, one question = one independent decision (combine only proposals that depend on each other). Order: recommendations and status changes, then rule clean-up, finally "waiting for the user". Labels below are in English; write them in the user's language.
Keep (recommended) / Change: … / Drop;Accept (recommended) /
Change: … / Reject;Accept (recommended) / Change: … / Reject;Compress (recommended) / Only: … / Not now. The first compression ever is
also a commitment (measure: kontekst_startowy_mediana, compliance with the compressed rules);komunikacja_agentow is empty (three separate questions; recommend it with
tokeny_wyjscia_na_wiadomosc from the summary): among agents and sessions in English at caveman ultra:
Accept (recommended) / Reject; level of messages to the user: normal / caveman / caveman ultra;
language of messages to the user: the current jezyk (recommended) / English / another. Save the answers in the
configuration (wyl when rejected), put the output of caveman.py regula into the rules file with a Z-NNN;
the commitment's measure is in the same section of the reference;Do it now (in a project session) / Close / Postpone to <date>.
"Do it now" = a task for a project session with full context, not retro work. When there is a tool for starting
sessions (e.g. start_session, spawn_task), propose it right away as a card (a proposal the user starts with
one click), do not wait for separate consent to start: in a turn triggered by an automated event (a subagent
notification, a message from another session) the app only allows proposing a card, and a card cannot point to
another folder. So the brief starts with "Go to <full project path> (change-directory tool or absolute paths)
before you begin" and carries all the needed context (evidence, files, what "done" means). Without such a tool,
write the brief in section 10 of the retro for copying.
When there are more than 8 items (usually retro zero), combine into one question the items of the same project
that would go into one task; always ask about security matters (rotations, keys, passwords) separately.Record the answers in section 9 of the retro, the user's own answers verbatim.
zobowiazania.md: new Z-NNN entries (format in the file header), an assessment row in the table of each
reviewed one, status changes.~/.claude/CLAUDE.md, briefly, with the Z-NNN number;
cross-cutting knowledge (pitfalls of the computer and tools) → nauki.md; with the first entry, propose one
line in ~/.claude/CLAUDE.md pointing to nauki.md, because project memory loads only in its folder;retro/rNN-<topic> in a separate worktree and a PR);~/.claude/projects/*/memory/) → a feedback entry with a Z-NNN reference, without
duplicating content from nauki.md;~/.claude/agents/<name>.md directly, a repository's .claude/agents/<name>.md like its
CLAUDE.md (its rules, a PR when changes go through PRs). Change only the accepted field; a new description is
written at the caveman level. A commitment of kind "agent configuration" with its Z-NNN.references/caveman.md (caveman.py kopia, rewrite,
caveman.py sprawdz until it passes). Rules written in step 2 are already at the configured level; compress
them only when the whole file is accepted.metryki.csv: python "${CLAUDE_SKILL_DIR}/scripts/dopisz_metryki.py" --retro RNN --zobowiazania <active>
(a row from the latest metryki.json; it appends columns missing from a newer plugin version at the end of the
header). It also writes the agent snapshot to agenci.csv from the files on disk, so run it after step 2.
An agent change waiting in an unmerged PR is not on disk yet: the next retro shows it "since the last retro" with
the merge date; link it to its commitment instead of asking again.**Status:** zakończone /
completed; this resets the reminder counter).retro(RNN): <most important change>. The commit also includes tokeny-tydzien.csv (trend), agenci.csv and
caveman.csv; the archive dane/tokeny-archiwum.json and the backups dane/caveman/ stay outside git.The closing message in the chat has two mandatory parts, in this order. It is the owner's report: never replace the table with a sentence, and do not point to section 2a instead of it.
*: a number from fewer than 5 PRs is marked, and in the sentences below it is called a hint, not a
result. A cell or row with no data stays "—": say what is missing, do not fill it by hand or drop the row;sygnaly.py ran, run it again first: the table must
match the final data. A table made by hand (e.g. after a repo move) says so and gives its source.The installed copy of the plugin is overwritten on update: do not change the skill there, only in the plugin repo
(test: python -m unittest discover -s testy in the repo). A change the retro finds necessary goes into section
10 of the retro as a proposal for the plugin repo. Write scripts and content with backslashes using the Write
tool, not a bash heredoc.
assets/en/nauki-start.md (opens in a new tab)assets/en/readme-katalogu.md (opens in a new tab)assets/en/szablon-retro.md (opens in a new tab)assets/en/zobowiazania-start.md (opens in a new tab)assets/metryki-naglowek.csv (opens in a new tab)assets/pl/nauki-start.md (opens in a new tab)assets/pl/readme-katalogu.md (opens in a new tab)assets/pl/szablon-retro.md (opens in a new tab)assets/pl/zobowiazania-start.md (opens in a new tab)references/caveman.md (opens in a new tab)references/cennik.json (opens in a new tab)references/konfiguracja.md (opens in a new tab)references/sygnaly.md (opens in a new tab)scripts/agenci.py (opens in a new tab)scripts/caveman.py (opens in a new tab)scripts/dopisz_metryki.py (opens in a new tab)scripts/efektywnosc.py (opens in a new tab)scripts/operacje.py (opens in a new tab)scripts/podagenci.py (opens in a new tab)scripts/przypomnienie.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub voyteck/claude-skill-retro --plugin retroOther plugins' skills for the same job