Index of every page on this site: llms.txt
All skills
Run it yourself

Review a finished coding session for what slowed the agent down or let a mistake through, and turn one lesson into a test, check or doc in the project so the next session does not repeat it. Use when the user asks for a retro or retrospective, a post-mortem of a session, or "what should we change so this doesn't happen again". To carry unfinished work into a new session, use `handoff`; to prove a fix before claiming it, use `regression-proof`.

Use this Skill: https://skilld.dev/gh/ehnruiz/claude-skills/retro

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈114 tokens for metadata: the name and description. ≈1.2k when used: this file.

How this Skill uses context

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

This Skill turns off automatic use in Claude Code. Its description stays out of the automatic Skill list by default.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

Retro

A retro improves the agent's environment: the checks, docs and pointers that the next session in this project will run into. It ends with one change made in the project, which the user reviews and commits. Credit and license: LICENSE.md in this folder.

Steps

  1. Load the style guide. Call the Skill tool with writing-for-agents. Every doc or rule this retro writes is read by an agent, and that skill says how to write one so it is followed the same way every run.
  2. Read the session. Use the session the user names; with none named, use the current one. For an earlier session, read its transcript rather than working from memory: Claude Code keeps them as .jsonl files under ~/.claude/projects/<project slug>/. Note each place the agent searched for a long time, made a mistake, retried, or lacked a fact it needed.
  3. Find candidates in the categories below. Each candidate names the moment in the session (the tool call, the error, the retry) and the change that would have prevented it.
  4. Present them to the user, most severe first. Severity is what the problem cost or would cost again: a mistake that shipped outranks a slow search, a slow search outranks a wasted tool call.
  5. Build the one the user picks. Make the change in the project: the test, the lint rule, the CI step, the doc or the pointer. Run it and report its exit code. A new check must fail on the mistake it is meant to catch before it counts, so show it red on that mistake, then green on the fixed code.

Categories

  • Navigation. How easily did the agent find the right files? Are there hidden dependencies between files? Would a navigation pointer (one line in a file the agent already reads, naming where something lives) have saved the search? Use when the session took a long time to find a piece of information.
  • Automated checks. Could a lint rule, a type check, a test or a file-layout check have caught a mistake the agent made? Read the project's own check commands first (its package scripts or build tool targets, its CI workflow), so a check that exists but is unwired or silently broken is the finding, not a reinvention. A project with no guardrail at all (no pre-commit hook and no CI job running its lint, type check or tests) is itself a finding. Use when the agent made a mistake a check could have caught, or the project has no guardrail.
  • Coding standards. Should the reviewer be given a new rule, or should an existing rule be removed or clarified? Classify the violation first. A mechanical one (a fixed syntax pattern, a banned API, an import shape, a file-location rule) gets a deterministic check: a custom rule in the project's linter, a pre-commit hook or a CI job, whichever the project's existing guardrail makes cheapest. Build the check rather than writing the rule. Keep written standards for judgment calls that no check can make, such as consistency across files or matching the surrounding style. Use when a review missed a mistake.
  • Always-loaded instructions. Should a steering instruction in CLAUDE.md or AGENTS.md move to the coding standards or to a check? Use when that file is large, in the project or in the user's global scope.
  • Tool economy. Did the agent make expensive tool calls that could be cheaper? Is a custom CLI or MCP server spending many tokens for little information? Use when the agent made an expensive tool call.
  • No-ops. Is there an instruction in a steering file that does not change what the agent does? Remove it. Use when the steering files are large.
  • Information access. Was a fact the agent needed out of its reach? Writing dev server logs to a file it can read, or read-only access to a third-party service, can fix that. Use when a crucial piece of information was not available to the agent.

Where a lesson goes

Work goes through two stages: implementation and review. The implementing agent is under the most context pressure: it explores, writes code and debugs failures. The reviewing agent receives a diff and usually neither explores nor debugs, so it has room. Coding standards belong to review, not to implementation.

  • CLAUDE.md / AGENTS.md: loaded into the context of every agent in the project. Use them sparingly, mostly for navigation pointers to other files.
  • Coding standards file: read during review, not implementation. If it grows past about 1,000 lines, move sections into docs and leave pointers.
  • Docs: reference files reached through a pointer from another file. Look for an existing doc before writing a new one.
  • Skills: for reference whose description should sit in the agent's context, or for a command the user types.
  • Checks: the first choice for anything mechanical, because a check is enforced on every run and costs no context.

Source: SKILL.md on GitHub

No rule matched.

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts15d3 checks · Risk SAFE
  • Gen Agent Trust Hub15d

    The skill facilitates retrospective analysis of coding sessions by reading local session transcripts and proposing project improvements. It involves reading agent logs and executing project-specific commands (tests/linting). The main security risk is indirect prompt injection, as session logs could contain instructions from previous untrusted inputs that might influence the agent's current analysis.

  • Socket15d

    No alerts

  • Snyk15d

    Risk: LOW · No issues

Signed by skilld at aaa4d45. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 6 days ago.

Activeupdated last month
argument-hint
Which session to review (default: this one)
disable-model-invocation
true

README badge

README badge for ehnruiz/claude-skills/retro