/will-wright-eng-skills:distill-adrsfrom will-wright-eng-skills
Distill existing implementation markdown documents (plans, design docs, RFCs) into Architecture Decision Records (ADRs). Extracts candidate decisions, verifies each against the code, and confirms them one at a time before writing. Use when implementation docs have accumulated and the durable decisions inside them should be captured as ADRs.
Ships in will-wright-eng-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Distill the implementation documents I point you at into Architecture Decision Records (ADRs). Extract every candidate decision, filter with the four-part test below — including verifying each survivor against the code — then walk me through the survivors one at a time. I approve, edit, or reject each before you write it.
Never write an ADR without my approval of that specific ADR.
I provide the source documents: file paths or a directory of implementation markdown (plans, design docs, RFCs, proposals). Only read what I point you at — do not scan the repo for other documents. If I invoked the skill without paths, ask for them before doing anything else.
Most repos have a single set:
/
├── docs/
│ └── adr/
│ ├── 0001-event-sourced-orders.md
│ └── 0002-postgres-for-write-model.md
└── src/
If a CONTEXT-MAP.md exists at the root, the repo has multiple contexts, each with its own docs/adr/. Place each ADR with the context it belongs to; system-wide decisions go in the root docs/adr/.
Read all existing ADRs before extracting so you can detect duplicates and contradictions. Create docs/adr/ lazily — only when the first approved ADR is written. Use the format in ADR-FORMAT.md.
Read every source document fully. A candidate is a statement where a choice was made between genuine alternatives. Skip task lists, how-to steps, status updates, code walkthroughs, and restatements of the obvious.
Record for each candidate: the decision, the stated rationale (if any), and the source document and section.
A candidate becomes a proposed ADR only when ALL four are true:
The fourth test is what separates distillation from planning: implementation docs record intent, and intent drifts. For every candidate that passes the first three, find the code that implements the decision and confirm it matches. If the code deviates from the document, or the area is clearly mid-refactor or unstable, reject the candidate — an ADR describing a state the code isn't in is worse than no ADR. Don't discard these silently; they go in the close-out summary.
Present each surviving candidate one at a time, waiting for my verdict before moving to the next, in the format set out under Question format. Each proposal includes:
path:line references confirming the decision is implementedI approve, edit, or reject. On approval, write the ADR immediately — don't batch. Number by scanning docs/adr/ for the highest existing number and incrementing.
If a candidate duplicates an existing ADR, skip it. If it contradicts an existing ADR, don't pick a winner silently — surface the conflict and ask whether the old ADR should be marked superseded.
When all candidates are processed, report:
Then propose archival: list the source documents whose durable content is now fully captured in ADRs and could be archived or deleted, and the ones that still contain undistilled material. Never delete or move anything yourself — I decide.
Pick the format from the shape of the decision — the lightest one that carries it:
Escalate a quick pick to Discuss when my free-text answer doesn't map onto the options or shows the question was framed wrong.
For select-one and select-many, use the harness's structured question tool when it has one (Claude Code: AskUserQuestion); otherwise render a numbered list and accept numbers or free text. Either way:
path:line) so I can answer without scrolling back. Show a drafted ADR in full in the message before the call; it's too long for the question itself.Consult these canonical sources when it is unclear what an ADR is, or how ADRs relate to Architecturally Significant Requirements (ASRs):
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
Generated from the plugin's indexed repository (will-wright-eng/skills) — no native marketplace selected
npx claudepluginhub p/will-wright-eng-will-wright-eng-skills21 skills in this plugin
/agent-specificationWrite or review the specification of an agent, or of a system of several agents, through a question/answer session. Chooses the arrangement first (one agent, pipeline, orchestrator or blackboard), then settles one SPECIFICATION.md per agent and, when there is more than one agent, a SYSTEM.md that states how they are joined. Works in a fresh repo or against one role of a system that already exists. Takes an optional path to a specification or system document to review. Use when defining, scoping or reviewing an agent or a multi-agent system, choosing between agent patterns, writing an agent's SPECIFICATION.md, or giving each role of an existing agent system a written scope./annealDecompose a god module into stable and volatile pieces whose boundaries match how the code actually changes. Locates hotspots with the hc CLI (decay-weighted churn × complexity quadrants), autopsies the chosen file along three evidence axes (symbol co-change, consumer slices, internal references), interviews through each proposed seam one at a time, and delivers a strangler-fig migration plan with a measurable hc baseline. Use when a file is a "god module" or "god file", one file soaks up every change, a module needs splitting, or the user wants to isolate hot code or reduce churn concentration./assess-test-suiteAssess a project's test suite against the verification practice in "How the Claude Code team thinks about verification" — classifies every test on two axes (scope unit/integration/E2E × oracle interaction/example/snapshot/property/differential) plus health tags (flaky, slow, cannot-fail, not agent-runnable), maps user-facing features to E2E coverage, then proposes a ranked refactor toward E2E, property and differential tests, closing with a short note on what the refactor does to CI/CD runtime. Writes the assessment only on confirmation and never edits tests. Use when the user wants to "assess the test suite", "audit our tests", know "are our tests any good" or "which tests are worth writing", plan a test strategy or test refactor, deal with too many mocks or unit tests or with flaky tests, or make a test suite a reliable feedback loop for coding agents./autoresearch-methodExplain the autoresearch methodology — a verifiable autonomous experiment loop — and evaluate whether the current repo is a good fit before running the autoresearch-verify and autoresearch-program skills. Use when a user wants to add autonomous experimentation to a project, asks about autoresearch/autoresearch, or is about to invoke the other autoresearch skills./autoresearch-programGenerate `program.md` at the repo root from the autoresearch program template, with mutable/immutable scope and verifier commands baked in via light templating. Run after autoresearch-verify produces the verifier script. The generated program.md is the operating directive for a fresh agent session running the autoresearch loop — after this skill runs, the autoresearch skills are no longer in the picture. Use when a user wants to generate the loop directive for an autoresearch run./autoresearch-verifyBuild a repo-specific verifier script for an autoresearch loop. The script has two modes — `light` (fast per-candidate metric evaluation, emits the JSON the loop consumes) and `heavy` (matrix-of-conditions integrity check). Run after autoresearch-method confirms the repo fits and before autoresearch-program. Use when a user wants to build the verifier script for an autoresearch loop.