# Code retro

> Code retro is an open-source agent skill for developer tools. Reviews a branch or PR for human corrections and proposes repo fixes to prevent them. It is available on Claude Code.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code
- **Website:** https://github.com/martinffx/atelier/tree/main/skills/code-retro
- **Repository:** https://github.com/martinffx/atelier
- **GitHub stars:** 53
- **License:** MIT
- **Skill name:** code-retro
- **Collection:** https://github.com/martinffx/atelier
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-03

## About

Code Retro looks back at a single branch or pull request after the work is done, looking for moments where a human had to redirect the agent or catch an error that got through. Each finding is traced to what allowed it, such as a missing check, misleading guidance, or a rule the agent overlooked, and is paired with a ranked suggestion for a small change to the repository that would make the right behaviour the default.

The workflow resolves the branch and its base, locates any spec files it touched, and gathers evidence from git history, pull request reviews and comments, and session transcripts through a bundled Python script that extracts only human messages. Subagents read the transcripts so the main context stays small, and every quoted incident is checked against its source before it is reported. The skill also tracks spec drift when a design or plan file changed after implementation started.

It runs only when invoked and writes nothing until the user approves a report, which can then be saved under docs/retros in the repository. It expects git, and the GitHub CLI for merged pull requests, plus Python 3 for the extraction script.

## When your agent uses it

> Look back at one branch or PR, find the Corrections the human had to make, and propose ranked Nudges that make the right behaviour the default next time. Proposes in conversation and writes nothing except a report the user approves. Runs only when invoked, before or after merge.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Runs Python scripts](https://github.com/martinffx/atelier/tree/HEAD/skills/code-retro)
- [No network calls found in its scripts](https://github.com/martinffx/atelier/tree/HEAD/skills/code-retro)
- [License: MIT](https://github.com/martinffx/atelier/tree/HEAD/skills/code-retro)

## Features

- **Correction detection:** Finds human redirects and escaped errors such as failed reviews, repeated CI failures and fix commits after a PR opened.
- **Root cause tracing:** Traces each correction to the missing check, unclear text or ignored rule that allowed it.
- **Ranked repo nudges:** Proposes small, prioritised changes to the repository, favouring deterministic checks over documentation edits.
- **Session transcript extraction:** Uses a Python script to pull human signals from agent session logs, with source line references and no tool output.
- **Spec drift analysis:** Compares design and plan files against implementation commits to detect late changes to specifications.
- **Recurring issue lookup:** Checks earlier retro reports in the repo to see whether an issue has come up before and whether past fixes held.

## Good for

- Review what went wrong on a feature branch before merging a follow-up
- Find out why an agent needed repeated corrections on a merged pull request
- Suggest repository checks that would have caught a recurring review finding
- Compare a finished branch's design notes with what was actually built
- Save an approved retrospective report under docs/retros in the repo

## Install

### Claude Code

This skill ships in the `atelier` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add martinffx/atelier
/plugin install atelier@atelier
```

Or copy only this skill to `~/.claude/skills/code-retro`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/martinffx/atelier.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/code-retro &&
cp -R "$tmp/skills/code-retro" ~/.claude/skills/code-retro &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/code-retro` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/code-retro` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/martinffx/atelier.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/code-retro &&
cp -R "$tmp/skills/code-retro" ~/.agents/skills/code-retro &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/code-retro` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/code-retro` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/martinffx/atelier.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/code-retro &&
cp -R "$tmp/skills/code-retro" ~/.cursor/skills/code-retro &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/code-retro` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/martinffx/atelier.git --path skills/code-retro
```

Or copy the folder to `~/.gemini/skills/code-retro` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/code-retro`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/martinffx/atelier.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/code-retro &&
cp -R "$tmp/skills/code-retro" ~/.copilot/skills/code-retro &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/code-retro` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/martinffx/atelier.git
```

Then copy `atelier/skills/code-retro` into your agent's skills folder as `code-retro`. Agents that support SKILL.md read one folder per skill.

## FAQ

### When does the skill run?

Only when invoked by the user, before or after a branch is merged. It is set to disable automatic model invocation.

### Does Code retro change files in my repository?

No. It proposes changes in conversation and writes only a report the user approves. Accepted nudges are applied separately as inline work, and the skill never commits.

### What does Code retro need to run?

Git and Python 3 for the extraction script. The GitHub CLI is used to read merged pull requests, and the skill can read agent session transcripts for the current harness.

### Which clients does Code retro support?

The skill is distributed through the Claude Code plugin marketplace as part of the atelier repository, and its scripts run in Python.

### How do I install Code retro in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/code-retro to use it in all your projects, or to .claude/skills/code-retro in one project. Or install the atelier plugin, which includes it: /plugin marketplace add martinffx/atelier, then /plugin install atelier@atelier.

### Does Code retro run scripts?

Yes. It runs Python scripts. No network calls were found in its scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Code retro?

Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.

### What are the best alternatives to Code retro?

The closest alternatives to Code retro are Retro, Code review, Project review, Make PR easy to review and Git archaeology.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Retro](https://ai-powered.com/skills/retro-mattpocock): Retro is an open-source agent skill for developer tools.
- [Code review](https://ai-powered.com/skills/code-review-mattpocock): Code review is an open-source agent skill for developer tools.
- [Project review](https://ai-powered.com/skills/project-review): Project review is an open-source agent skill for developer tools.
- [Make PR easy to review](https://ai-powered.com/skills/make-pr-easy-to-review): Make PR easy to review is an open-source agent skill for developer tools.
- [Git archaeology](https://ai-powered.com/skills/git-archaeology): Git archaeology is an open-source agent skill for developer tools.
- [PR improver](https://ai-powered.com/skills/pr-improver): PR improver is an open-source agent skill for developer tools.
- [Code review](https://ai-powered.com/skills/code-review-flutter): Code review is an open-source agent skill for developer tools.
- [PR review](https://ai-powered.com/skills/pr-review): PR review is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/code-retro
