Skip to content
/ CoderLap
ADR

/decision

Log why you chose X over Y in 30 seconds while the choice is fresh.

What it does

Writes an ADR to docs/DECISIONS.md, or retrieves existing ADRs. Every ADR captures:

When to log one

Rule of thumb: if a future session might ask “why did we do it this way?”, log it.

Usage

/decision Use Zod over Yup for validation
/decision list                      # show ADR index
/decision auth                      # search ADRs by topic

Logging a new ADR

Claude asks you to answer:

  1. Context — the problem
  2. Decision — what we’re choosing
  3. Alternatives considered — at least two, each with why rejected
  4. Consequences — positive, negative, revisit-if condition
  5. Decider(s) — names

Then writes the new ADR at the top of DECISIONS.md (newest first), auto-numbered as ADR-NNN.

Supersession

If a decision is reversed later, log a new ADR that supersedes the old. In the new ADR, add “Supersedes ADR-MMM”. In the old ADR, change Status: accepted to Status: superseded by ADR-NNN (YYYY-MM-DD).

Never delete an ADR. The superseded record is part of the history.