---
title: "adr skill for Claude Code"
canonical: "https://mrbogomips.github.io/eng-skills/skills/adr/"
author: "MrBogomips"
published: "2026-12-01T00:00:00.000Z"
modified: "2026-12-02T00:00:00.000Z"
lang: "en"
license: "CC-BY-4.0"
code-license: "MIT"
---

---
summary: Writes architecture decision records and keeps the ADR register clean, with an archive for retired decisions and a generated one-line-per-ADR index.
---


Writes architecture decision records in the project's own template, or in a fixed structure when there is
none, and keeps the register clean: ADRs that are no longer in force go to an archive, and a script keeps a
one-line-per-ADR index that an agent can read instead of every ADR. Whole-register reviews go to the
`adr-reviewer` agent.

## Why

An ADR register decays quietly: status set by whoever wrote the file, superseded decisions left among the
active ones, indexes that drift from the files, verification sections that name tests nobody wrote. Every
later reader, human or agent, then loads decisions that are no longer in force. This skill keeps the status
a people's decision, the active register limited to what holds today, and reviews comparable, with fixed
severities and one report shape. When the project has its own ADR template, it also says what the template
lacks.

## Usage

Ask in your own words; Claude Code picks the skill:

```text
write an ADR for using PostgreSQL as the event store instead of EventStoreDB
improve my draft ADR in docs/adr/0012-partner-auth.md
the decision in ADR 0007 changed: we move from Redis to an in-process cache
ADR 0004 is deprecated, nothing replaces it
set up an ADR register for this monorepo
review the ADR register in docs/adr
```

A new ADR is written as *proposed* until you say who accepted it and when. A superseded ADR moves to the
archive only once its successor is accepted.

## Inputs and outputs

- **ADRs**: in the register folder, `docs/adr/` by default, named like the existing ones
  (`NNNN-title.md` in a new register). ADRs out of force move to `docs/adr/archive/`.
- **Tailoring file**: `.eng-skills/adr.md`, or the path the project's `AGENTS.md` / `CLAUDE.md` gives,
  created the first time the skill writes an ADR, from what the register shows: folders, template,
  language, field names, status wording, index labels. A review never creates it.
- **Index**: a generated block in the register's index file (`README.md` by default), one row per ADR
  with its rule sentence; the archive has its own, and in a monorepo each area gets `index-<area>.md`. The
  skill runs the script itself.
- **Register setup**: for a new register, what it covers (the product by default, not tooling or working
  practices, which go to `AGENTS.md`, settings or project skills), the areas of a monorepo, and a pointer in
  `AGENTS.md` so agents read the index, proposed as diffs.
- **Review report**: a fixed table with severity, criterion, `path:line` and fix, a mentoring note per finding,
  the strengths to keep and what the review read.

## Requirements

Python 3 for the bundled index script (standard library only). A model of Opus class or above.

## Limitations

- It does not design the decision: it records what was decided.
- A project's own ADR template is followed as it is; the skill reports what it lacks but never changes it.
- It writes rule sentences only for the ADRs it touches; the index check lists the ADRs still without one.
