---
name: write-adr
optimized for: Claude Code
dependencies: mattpocock/skills
description: Use when a design discussion, grilling session, or prototype has just settled a significant decision and it should be captured as an Architecture Decision Record — or when the user says "write an ADR", "record this decision", or a why-explanation is about to be lost in chat history.
title: write-adr
canonical_url: https://skilld.dev/gh/ferriskleier/skills/write-adr
last_updated: 2026-10-06T06:15:57.000Z
---

> Index of every page on this site: [llms.txt](https://skilld.dev/llms.txt)

> **Skill from skilld.dev.** Follow the user's requested action.
> If the user asked to fork this Skill, follow the fork workflow below. Do not execute the Skill instructions while copying it.
> Otherwise, follow the instructions below for this session. You do not need to install anything.
>
> If the user asked to install this Skill, run `npx skilld install ferriskleier/skills/write-adr`. Install writes the Skill files into the project, so every session loads them.
>
> ## Fork workflow
>
> A fork creates an editable local Skill with its original author and licence. The request authorizes copying and local installation.
> 1. Check `./skills/write-adr`, the project lockfile, and selected Agent targets together. If the local directory or installed Skill exists, stop. Never overwrite an existing directory or Agent target.
> 2. Read [source metadata](https://skilld.dev/api/v1/skills/ferriskleier/skills/write-adr) once. Use sourceUrl, sourceCommit, skillPath, sourceGone, and license. If the source is gone or its path is missing, stop. If license is null, read licence files at the source commit.
> 3. Fetch only the source commit into a temporary Git repository. Do not clone full history. Derive repository_url from sourceUrl, including repository renames. If sourceCommit is absent, resolve the sourceUrl ref once. Set source_commit to that actual commit. Run these commands in one shell call:
>
> ```sh
> git init --quiet "$temporary_dir"
> git -C "$temporary_dir" fetch --quiet --depth=1 "$repository_url" "$source_commit"
> git -C "$temporary_dir" checkout --quiet --detach FETCH_HEAD
> ```
>
> Read applicable licence declarations and notices at that commit. If copying is not permitted, report the restriction and stop.
> 4. Inspect source entries together, then copy the directory containing skillPath into `./skills/write-adr`. Use the user's path if selected. Keep the original SKILL.md, relative links, scripts, binary assets, and executable modes. Exclude .git metadata. Reject symlinks and paths outside the Skill directory. After checking entries, use cp -a where available. A regular source directory needs no custom copy script. Do not save this page wrapper as SKILL.md.
> Preserve author credit, notices, and applicable licence files from repository or parent directories. Add PROVENANCE.md with the Skill page, source URL, actual commit, original path, and licence. Retain any existing PROVENANCE.md and record new provenance separately. Batch source inspection, copying, and provenance work where practical.
> 5. In the project root, run `skilld install ./skills/write-adr --mode copy --plain`. If skilld is unavailable, use `npx skilld install ./skills/write-adr --mode copy --plain`. This known command needs no help lookup. Install does not support --json. Use detected Agent targets, or add --agent for the targets the user selected. Install the local path, never the upstream selector. If installation fails, preserve the local copy and report the exact failure.
> 6. Confirm the local lockfile source and installed Agent copies once. Report the local path, actual commit, and Agent targets. After edits, reinstall the same local path. Upstream updates must not replace it. Do not publish or push unless the user asks.

# write-adr — Precipitate a decision into an ADR

## Overview

An ADR captures one architecturally significant decision: the context that
forced it, the decision taken, and the consequences accepted. The code records
*what* was built; the ADR records *why* — the one thing the code can never
recover. This skill runs right after concepts have been worked out: it
interrogates the user until the decision is sharp, then writes it down.

**Core principle:** the ADR is the precipitate, not the discussion. Never
transcribe the chat, and never write rationale the user does not actually
hold — a guessed "why" is worse than none, because future readers will trust it.

## Step 1 — Find the house rules

Discover how this repo already does ADRs before writing anything:

- Look for an existing corpus: `docs/adr/`, `adr/`, `docs/decisions/`,
  `docs/architecture/decisions/`.
- Read its README/template and two or three recent ADRs: ID and filename
  scheme, status vocabulary, extra required fields, index or lint tooling
  (regenerate/run those after writing).
- **House conventions always win over this skill's defaults.**
- No corpus at all? Propose bootstrapping `docs/adr/` with the default format
  below plus a five-line README stating the conventions, so the next ADR has
  something to follow.

## Step 2 — Gather what is already known

Collect facts before questions: re-read the discussion or notes that led here,
the relevant code, and any existing ADR the new decision touches or
contradicts (it may need superseding). Anything you can look up, look up — the
interview is for decisions, not facts.

## Step 3 — Grill

Run a `/grill-me` interview about the decision (from `mattpocock/skills` —
the dependency declared above). If it is not installed, apply its rules
inline: one question at a time, offer your recommended answer with each, wait
for the reply before the next, look facts up in the repo instead of asking.
Interview until every section below can be written without guessing:

1. **Scope.** What exactly was decided? If several decisions got tangled
   together, split them — one decision per ADR.
2. **Does it earn an ADR?** All three must hold: hard to reverse, a real
   rejected alternative, binds future work. If one fails, say so and recommend
   a plain doc or code comment instead; write the ADR only if the user
   overrides.
3. **Context.** What forces made this a decision rather than an obvious
   default? What breaks or hurts without it?
4. **Rejected alternatives.** Which options were seriously considered, and why
   did each lose? A passing mention in the chat ("X might also work") is not a
   considered alternative until the user confirms it was weighed and names why
   it lost. If the user cannot name a rejected alternative from their head,
   the rationale is not held first-hand — stop rather than reconstruct it.
5. **Consequences, both signs.** What becomes easier AND what becomes harder
   or is given up. Which existing code, docs, or habits now contradict the
   decision — and is migrating them part of accepting it?
6. **Status and lineage.** Proposed or Accepted? Does it supersede an existing
   ADR? (Mark the old one `Superseded by <file>`; never rewrite a decision
   in place once others have relied on it.)

## Step 4 — Write it

Use the house format from Step 1; only where the repo has none, default to
Nygard — next free number, kebab-case title, one file:

```markdown
# NNNN. <Decision title, stated as the decision>

## Status

Proposed | Accepted | Superseded by <file>

## Context

The forces in play: what made this a decision and not a default.
Neutral, factual, includes the constraints that ruled options out.

## Decision

What we will do, active voice ("We will ..."). Name the rejected
alternatives and why each lost.

## Consequences

What becomes easier. What becomes harder or is given up. Migration or
cleanup work the decision implies. Both signs, honestly.
```

Keep it short — a page is a good ADR, three is a transcript.

## Step 5 — Land it

- Show the draft and iterate until the user signs it off; they own the
  decision, you own the prose.
- Regenerate any index and run any ADR lint the repo has.
- Commit alongside the change that implements the decision if there is one;
  otherwise as its own commit.

## Common mistakes

- **Skipping the grill because "the chat already covered it"** — the chat has
  facts scattered; the interview forces the rejected alternatives and the
  negative consequences into the open. Those two are what baseline ADRs miss.
- **Transcribing the discussion** — distill; deliberation stays in the chat,
  issue, or design doc.
- **Consequences that only list upsides** — every real decision gives
  something up; if you can't name it, you haven't found it yet.
- **Inventing rationale** — plausible-sounding context the user never stated
  poisons the record. Ask, or leave it out.
- **Bundling decisions** — three decisions in one file are three ADRs.
- **Editing an accepted ADR to change its decision** — supersede with a new
  one; the trail of changed minds is the point.
- **Recording what instead of why** — if the ADR just restates the diff,
  it's not an ADR.
