
Decision backfill
Finds undocumented architecture decisions in code, docs and git history for ADR drafting
Decision backfill is an open-source agent skill for developer tools. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.
- Scripts
- None
- Platforms
- Claude Code, Codex, Cursor
- GitHub stars
- 26
- Last commit
- License
- Apache-2.0
- Listing updated
Similar skills
About Decision backfill
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.
From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.
What it can access
From a static check of its 1 file (16 KB) on GitHub on 3 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.
Check another skill before you install it.
Install
This skill ships in the adrkit plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):
/plugin marketplace add mbeacom/adrkit
/plugin install adrkit@adrkitOr copy only this skill to ~/.claude/skills/decision-backfill:
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.
Copy the skill folder to ~/.agents/skills/decision-backfill to use it in every repository:
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.
Copy the skill folder to ~/.cursor/skills/decision-backfill to use it in every project:
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.
Run in a terminal (add --scope workspace to install it for the current workspace only):
gemini skills install https://github.com/mbeacom/adrkit.git --path packages/adapters/agent-plugin/skills/decision-backfillOr copy the folder to ~/.gemini/skills/decision-backfill yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/decision-backfill:
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.
Get the folder:
git clone --depth 1 https://github.com/mbeacom/adrkit.gitThen 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.
What it does
- 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
Decision backfill 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.
More from mbeacom/adrkit

Reviews pull requests for defects and conflicts with recorded architecture decisions
- Open source
- 26 GitHub stars
- Developer tools

Loads, checks and records architecture decisions (ADRs) so the agent plans against them
- Open source
- 26 GitHub stars
- Developer tools




