# Brownfield retrospective

> Brownfield retrospective is an open-source agent skill for developer tools. Audits an existing codebase slice and drives retroactive ECC fixes forward. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/smartworldarafath/REA_Skill/tree/main/.agents/skills/brownfield-retrospective
- **Repository:** https://github.com/smartworldarafath/rea_skill
- **GitHub stars:** 66
- **License:** MIT
- **Skill name:** brownfield-retrospective
- **Collection:** https://github.com/smartworldarafath/REA_Skill
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-01

## About

This skill applies the ECC engineering process to a project that was built without it. It starts from a slice of code the user cares about, audits its present state with file-level evidence, and reconstructs the decisions that shaped it. The findings are collected into a gap register that covers thinking, coding practice, missing features and technology selection, with severity and effort ratings for each row.

The workflow is staged and resumable. Artifacts such as a baseline audit, a reconstructed spec, a target design and the register itself are written into the audited project under a docs/retro folder, so a later session can pick up from the register alone. Backfilled architecture decisions are marked as reconstructed and must be confirmed by the project owner before being accepted. Fixes are then executed row by row through a planning, test-first, review and commit pipeline, and the slice is re-audited at the end to confirm gaps stay closed.

The skill relies on other ECC agents and skills such as planner, tdd-guide, code-reviewer, spec-miner and architecture-decision-records. It has no bundled scripts and expects a Git repository with history to support the archaeology phase.

## When your agent uses it

> Run the ECC engineering process retroactively against an existing project slice. Audit current state, reconstruct past decisions, produce a four-axis gap register (thinking, coding practice, missing features, technology selection), then execute fixes forward through the plan-TDD-review pipeline. Use when adopting ECC mid-project, taking over an inherited codebase, or asking what was missed and what would have been built differently from day one.

## What it can access

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

- [Instructions only, no scripts](https://github.com/smartworldarafath/REA_Skill/tree/HEAD/.agents/skills/brownfield-retrospective)
- [License: MIT](https://github.com/smartworldarafath/REA_Skill/tree/HEAD/.agents/skills/brownfield-retrospective)

## Features

- **Slice-first entry point:** Chooses a bounded part of the codebase based on the user's concern, keeping each audit within a manageable size.
- **Evidence-based present audit:** Reviews the slice with stack-matched reviewers and requires file and line pointers for every finding.
- **Backward decision reconstruction:** Uses git history, existing records and code tracing to recover why the code looks the way it does.
- **Four-axis gap register:** Records gaps across thinking, coding practice, missing features and technology selection with severity and effort.
- **Forward fix pipeline:** Executes each register row through planning, failing tests first, review and conventional commits.
- **Re-audit closure check:** Repeats the audit over the same perimeter and compares results against the original baseline.

## Good for

- Audit the authentication module of an inherited project and list what is missing
- Find out why a legacy service is structured the way it is and record the decisions
- Produce a prioritized gap list before adding a new feature on top of an old module
- Work through open gap register rows one at a time with failing tests first
- Re-audit a previously retro-analyzed area to confirm earlier fixes still hold

## Install

### Claude Code

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

```sh
/plugin marketplace add smartworldarafath/REA_Skill
/plugin install rea-skills@smartworldarafath
```

Or copy only this skill to `~/.claude/skills/brownfield-retrospective`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/smartworldarafath/REA_Skill.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/brownfield-retrospective &&
cp -R "$tmp/.agents/skills/brownfield-retrospective" ~/.claude/skills/brownfield-retrospective &&
rm -rf "$tmp"
```

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

### Codex

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

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/smartworldarafath/REA_Skill.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/brownfield-retrospective &&
cp -R "$tmp/.agents/skills/brownfield-retrospective" ~/.agents/skills/brownfield-retrospective &&
rm -rf "$tmp"
```

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

### Cursor

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

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/smartworldarafath/REA_Skill.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/brownfield-retrospective &&
cp -R "$tmp/.agents/skills/brownfield-retrospective" ~/.cursor/skills/brownfield-retrospective &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/brownfield-retrospective` 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/smartworldarafath/REA_Skill.git --path .agents/skills/brownfield-retrospective
```

Or copy the folder to `~/.gemini/skills/brownfield-retrospective` yourself.

### VS Code

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

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/smartworldarafath/REA_Skill.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/brownfield-retrospective &&
cp -R "$tmp/.agents/skills/brownfield-retrospective" ~/.copilot/skills/brownfield-retrospective &&
rm -rf "$tmp"
```

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

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/smartworldarafath/REA_Skill.git
```

Then copy `REA_Skill/.agents/skills/brownfield-retrospective` into your agent's skills folder as `brownfield-retrospective`. Agents that support SKILL.md read one folder per skill.

## FAQ

### When should I use this instead of the planner and tdd-workflow skills?

It is meant for existing code that was built without the ECC process. For greenfield work with no existing code, the skill says to use planner and tdd-workflow directly.

### Does Brownfield retrospective change my code automatically?

Audit phases are read-only by design and fixes are made only during the forward execution phase, one register row at a time. Material changes require project-required approval first.

### Where are the output files stored?

All artifacts are written inside the audited project under docs/retro/<slice>/, with backfilled decisions placed in docs/adr/.

### What is the recommended size of a slice?

The skill suggests roughly 15 files or 2,000 lines. Larger requests should be split into named sub-slices.

### How do I install Brownfield retrospective in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/brownfield-retrospective to use it in all your projects, or to .claude/skills/brownfield-retrospective in one project. Or install the rea-skills plugin, which includes it: /plugin marketplace add smartworldarafath/REA_Skill, then /plugin install rea-skills@smartworldarafath.

### Does Brownfield retrospective run scripts?

No. It is instructions only, with no 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 Brownfield retrospective?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Brownfield retrospective?

The closest alternatives to Brownfield retrospective are Retro, Ecc workflow, Improve architecture, Rea ci tests audit and Automation audit ops.

## 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.
- [Ecc workflow](https://ai-powered.com/skills/ecc-workflow): Ecc workflow is an open-source agent skill for developer tools.
- [Improve architecture](https://ai-powered.com/skills/improve-architecture): Improve architecture is an open-source agent skill for developer tools.
- [Rea ci tests audit](https://ai-powered.com/skills/rea-ci-tests-audit): Rea ci tests audit is an open-source agent skill for developer tools.
- [Automation audit ops](https://ai-powered.com/skills/automation-audit-ops): Automation audit ops is an open-source agent skill for developer tools.
- [Review](https://ai-powered.com/skills/review-arjunrajlaboratory): Review is an open-source agent skill for developer tools.
- [Test gap audit](https://ai-powered.com/skills/test-gap-audit): Test gap audit is an open-source agent skill for developer tools.
- [Agent sort](https://ai-powered.com/skills/agent-sort): Agent sort is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/brownfield-retrospective
