# Decision backfill

> Decision backfill is an open-source agent skill for developer tools. Finds undocumented architecture decisions in code, docs and git history for ADR drafting. 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/mbeacom/adrkit/tree/main/packages/adapters/agent-plugin/skills/decision-backfill
- **Repository:** https://github.com/mbeacom/adrkit
- **GitHub stars:** 26
- **License:** Apache-2.0
- **Skill name:** decision-backfill
- **Collection:** https://github.com/mbeacom/adrkit
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-03

## About

This skill audits an existing codebase, documentation set, plans, RFCs or git history for architecture choices that were made but never written down as architecture decision records. It treats the work as decision archaeology: it looks for evidence that a durable choice was deliberately made, separates that from incidental implementation details, and returns a ranked report of candidates for a human to review. Discovery is read-only, and no record is created until a person selects a candidate.

The workflow sets scope and hard limits on files, text and commits before reading, routes each source type to a suitable treatment, and uses lexical, structural, history-based or semantic search as appropriate. Each candidate needs a viable alternative, an enduring constraint and supporting evidence, and it is cross-checked against an existing adrkit corpus through the adr CLI so that records already covered, rejected or proposed are not offered again. The skill also explains when an offer to record the adrkit process decision itself is appropriate.

It expects a repository with read access and git for history, plus the adr CLI from @adrkit/cli, located via an environment variable, a local node_modules binary or the PATH. An optional adrkit MCP server can replace read-only corpus retrieval but is not bundled. Selected candidates are handed to a separate drafting command that writes a single proposed record.

## When your agent uses it

> Use when auditing an existing codebase, documentation set, plans, RFCs, or git history for architecture decisions that were made but never recorded as ADRs, and when triaging potential records before drafting them.

## What it can access

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

- [Instructions only, no scripts](https://github.com/mbeacom/adrkit/tree/HEAD/packages/adapters/agent-plugin/skills/decision-backfill)
- [License: Apache-2.0](https://github.com/mbeacom/adrkit/tree/HEAD/packages/adapters/agent-plugin/skills/decision-backfill)

## Features

- **Candidate decision discovery:** Finds choices in code, plans, RFCs and history that appear deliberate and enduring.
- **Evidence-backed candidate cards:** Each candidate lists context, alternatives, consequences, citations and missing evidence.
- **Existing record reconciliation:** Checks candidates against accepted, proposed, rejected and superseded ADRs via the adr CLI.
- **Read-only audit with limits:** Enforces file, size and commit limits and reports coverage without writing records.
- **Handoff to drafting:** Packages a selected candidate with paths and snapshot for a proposed ADR draft.

## Good for

- Find architecture decisions in this repo that were never recorded as ADRs
- Review an RFC folder and list the technology choices that need records
- Check git history for why a dependency or boundary was introduced
- Triage possible decision records before drafting any of them
- Migrate or reconcile an existing ADR corpus against undocumented choices

## Install

### Claude Code

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

```sh
/plugin marketplace add mbeacom/adrkit
/plugin install adrkit@adrkit
```

Or copy only this skill to `~/.claude/skills/decision-backfill`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/mbeacom/adrkit.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/decision-backfill &&
cp -R "$tmp/packages/adapters/agent-plugin/skills/decision-backfill" ~/.claude/skills/decision-backfill &&
rm -rf "$tmp"
```

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

### Codex

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

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/mbeacom/adrkit.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/decision-backfill &&
cp -R "$tmp/packages/adapters/agent-plugin/skills/decision-backfill" ~/.agents/skills/decision-backfill &&
rm -rf "$tmp"
```

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

### Cursor

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

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/mbeacom/adrkit.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/decision-backfill &&
cp -R "$tmp/packages/adapters/agent-plugin/skills/decision-backfill" ~/.cursor/skills/decision-backfill &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/decision-backfill` 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/mbeacom/adrkit.git --path packages/adapters/agent-plugin/skills/decision-backfill
```

Or copy the folder to `~/.gemini/skills/decision-backfill` yourself.

### VS Code

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

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/mbeacom/adrkit.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/decision-backfill &&
cp -R "$tmp/packages/adapters/agent-plugin/skills/decision-backfill" ~/.copilot/skills/decision-backfill &&
rm -rf "$tmp"
```

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

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/mbeacom/adrkit.git
```

Then copy `adrkit/packages/adapters/agent-plugin/skills/decision-backfill` into your agent's skills folder as `decision-backfill`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What does the skill need to run?

Repository read access and git for history. Reconciliation uses the adr CLI from @adrkit/cli, found via $ADRKIT_CLI, ./node_modules/.bin/adr or PATH. An adrkit MCP server is optional and not bundled.

### Does Decision backfill create or edit ADRs during an audit?

No. Discovery is read-only. A human selects a candidate first, and only then is a single proposed record drafted.

### Can candidates be accepted automatically?

No. Machine-assisted candidates start as proposed or draft records, and ratification is a separate human step.

### Does Decision backfill handle MADR-format records?

It recommends the adr migrate command for an existing MADR corpus rather than converting records by model.

### How do I install Decision backfill in Claude Code?

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

### Does Decision backfill 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 Decision backfill?

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 Decision backfill?

The closest alternatives to Decision backfill are Architecture decision records, Docs adr, Decision memory, Adr workflow and Decision log.

## Where this comes from

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

## Alternatives

- [Architecture decision records](https://ai-powered.com/skills/architecture-decision-records): Architecture decision records is an open-source agent skill for developer tools.
- [Docs adr](https://ai-powered.com/skills/docs-adr): Docs adr is an open-source agent skill for developer tools.
- [Decision memory](https://ai-powered.com/skills/decision-memory): Decision memory is an open-source agent skill for developer tools.
- [Adr workflow](https://ai-powered.com/skills/adr-workflow-ramboz): Adr workflow is an open-source agent skill for developer tools.
- [Decision log](https://ai-powered.com/skills/decision-log-berkcangumusisik): Decision log is an open-source agent skill for developer tools.
- [Create architectural decision record](https://ai-powered.com/skills/create-architectural-decision-record): Create architectural decision record is an open-source agent skill for developer tools.
- [Solution design](https://ai-powered.com/skills/solution-design): Solution design is an open-source agent skill for developer tools.
- [Vibe decision journal](https://ai-powered.com/skills/vibe-decision-journal): Vibe decision journal is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/decision-backfill
