← ClaudeAtlas

new-adrlisted

Scaffold a new Architecture Decision Record in docs/adr/ with the repo's canonical format and the next available sequential number
mattbutlerengineering/mattbutlerengineering · ★ 0 · API & Backend · score 69
Install: claude install-skill mattbutlerengineering/mattbutlerengineering
# /new-adr — create an Architecture Decision Record Scaffolds a new ADR in `docs/adr/` following the format enforced by `pnpm --filter @mbe/cli start check-adr` (run by the pre-commit hook). ## Steps 1. **Find the next ADR number.** List `docs/adr/ADR-*.md`, parse the highest `ADR-NNN-` prefix, increment by 1. Note: multiple ADRs can share a number if they were filed on the same topic day (e.g., ADR-002 appears twice — that's fine), so also check for duplicates at the next number and append a `-b` suffix if needed. 2. **Ask the user two things if not supplied as args:** - Short kebab-case title (e.g., `switch-state-preservation`) - One-sentence summary of the decision 3. **Create `docs/adr/ADR-NNN-<title>.md`** using the template below. Populate the frontmatter and all four sections. 4. **Add an entry to `docs/adr/README.md`** in the index table, in numeric order. 5. **Confirm the file path** and remind the user that the pre-commit hook will validate the ADR format on commit. ## Template ```markdown --- id: ADR-NNN title: <Full Title> status: active date: YYYY-MM-DD --- # ADR-NNN: <Full Title> ## Context <What problem are we solving? What forces are at play? Cite any prior ADRs this relates to. 2-5 sentences.> ## Decision <What did we decide? State it plainly in 1-2 sentences. If there's a rule or invariant, write it as a rule.> ## Consequences <What are the trade-offs? What gets easier, what gets harder? Include both positive and negative consequences.