| name | adr |
| description | Use when recording a consequential technical decision; captures context, the chosen option, and consequences in a new architecture decision record. |
ADR
Usage
Invoke as fiddle:adr <title> — short description of the decision.
Create a new Architecture Decision Record.
Process
- Read the user's argument as the decision title. If no argument, ask for one.
- Find the next ADR number:
ls docs/technical/decisions/*.md | grep -v template | sort -n | tail -1. Extract number, increment. If no existing ADRs, start at 001.
- Ask the user (briefly — 2-3 questions max):
- What's the context? (What prompted this decision?)
- What did you decide? (Be specific.)
- What are the consequences? (Tradeoffs, what gets easier/harder.)
If the user already provided enough detail in the argument or conversation, skip questions and draft directly.
- Write
docs/technical/decisions/NNN-kebab-case-title.md:
# NNN — Title
**Date:** YYYY-MM-DD
**Status:** accepted
## Context
[2-3 sentences]
## Decision
[Concrete statement]
## Consequences
[Tradeoffs — what gets easier, what gets harder]
- Show the user the file content. Write after confirmation, creating
docs/technical/decisions/ if it does not exist.
Keep it to 10-20 lines; an ADR records a decision, not a design. Filenames are kebab-case, as in 003-use-alloydb-over-cloudsql.md.
Existing ADRs are never edited. A past decision is changed by writing a new ADR with status supersedes NNN, because the record of what was believed at the time is the point of the file.