--- name: ad-adr description: Draft a new ADR (Architecture Decision Record) at doc/adr/NNNN-.md, using Michael Nygard's Context/Decision/Consequences/Alternatives pattern. Use when the user wants to record, write, draft, propose, or document an architecture decision. Status starts at proposed; the agent does not flip to accepted without explicit user approval. summary: Draft a new ADR at `doc/adr/NNNN-.md`. allowed-tools: Read, Write, Glob, Bash --- # /ad-adr Drafts `doc/adr/NNNN-.md` for one architecture decision. Status lifecycle: `proposed` → `accepted` → `deprecated` | `superseded by ADR-NNNN`. ## Step 1 — Determine NNNN List `doc/adr/`. NNNN = next available 4-digit number after the highest existing. If `doc/adr/` does not exist, create it; start at `0001`. ## Step 2 — Confirm scope The ADR captures **one** decision. If the user's request implies multiple decisions, ask which one to write first; the others become follow-up ADRs. ## Step 3 — Fill from conversation only Use the template below. Fill `Context`, `Decision`, `Consequences`, and `Alternatives Considered` from this conversation only — **no fabrication**, no inferring beyond what the user said. If a section has no signal, ask one question per gap rather than guessing. * `Decision` must be a directive ("We will…"), not a description. * `Consequences` lists positive and negative; do not balance for the sake of balance. * `Alternatives Considered` lists each rejected option with a one-line reason. ## Interview UX When the host exposes `AskUserQuestion`, use it for multi-choice prompts (`Status: proposed / accepted / deprecated / superseded`, decider role selection, alternative-option ranking) and for confirmation gates with non-trivial branching. Inline text questions are the fallback only when the host lacks a structured-prompt primitive (Codex). One card per multi-choice gate beats chained text questions. ## Step 4 — Write the file Path: `doc/adr/-.md`. Slug: kebab-case, ≤6 words, derived from the decision title. Status: `proposed`. Date: today, ISO format. Deciders: ask the user. Stop after writing. Do **not** flip status to `accepted` — that requires user review. ## Template — `doc/adr/NNNN-.md` ````markdown # ADR-NNNN: `` **Status:** `` **Date:** `` **Deciders:** `` ## Context `` ## Decision `` ## Consequences `` ## Alternatives Considered * `