Decision Records (ADRs) for Software Architecture
Create and manage Architecture Decision Records (ADRs) to document why specific technical choices were made, including when alternatives were rejected or invariants changed. ADRs are stored in `docs/decisions/` and follow a specific template and naming convention.
Editor's Note
Before creating a new ADR, copy the template from `stacks/_shared/skills/decision-records/TEMPLATE.md`. Ensure ADR IDs are zero-padded decimals and never reused. Never restate a rule from `CLAUDE.md` within an ADR; instead, link to the rule in `CLAUDE.md` if a decision produces a new rule.
When to Use It
- Documenting why a specific technology or architecture was chosen over alternatives
- Tracking rejected alternatives during architectural decisions
- Maintaining a historical record of technical decisions for future reference
- Ensuring consistency across sessions by recording decisions that affect long-term architecture
SKILL.md
SkillsHunter provides this listing for informational purposes only. Review the skill’s source, license, and required permissions before use. You are responsible for deciding whether to install or run it. Terms of Use
---
name: decision-records
version: 1.0.0
description: >
Architecture Decision Records (ADRs) for durable "why we chose X". Use before
architectural work, after rejecting an alternative, or when domain Problems &
Solutions would lose the rationale. Grep docs/decisions/ — not embeddings.
Complements codebase-knowledge (topology) and CLAUDE.md (rules in force).
---
# Decision records (ADRs)
## Ownership
| Layer | Answers |
|-------|---------|
| `CLAUDE.md` | Rules in force **now** |
| `codebase-knowledge/domains/` | Where code lives / connections |
| `docs/decisions/` | **Why** we chose X; what we rejected |
| `.claude/brain/` | In-flight task (hours–days) |
Never restate a CLAUDE.md rule inside an ADR. If a decision produces a rule, put the rule in CLAUDE.md and link the ADR.
## Layout
```
docs/decisions/
_index.md
NNNN-<slug>.md
```
Copy `stacks/_shared/skills/decision-records/TEMPLATE.md` (or project copy under the skill) when creating a new ADR. IDs are zero-padded decimals; never reuse.
## When to write
- An invariant or stack choice changed
- An alternative was explicitly rejected
- Cross-session agents keep re-litigating the same choice
## When to read
After `_index.json` domain filter, before large refactors: skim `docs/decisions/_index.md` for matching `domains:`.
## Status
`proposed` | `accepted` | `superseded` — superseded rows stay on disk; filter them out of the active index table.
## See Also
- `codebase-knowledge` — domain topology
- Agent `knowledge-rag-eval` — why we do not ship Obsidian/embeddings in core
- Agent `long-session-consistency` — brain vs decisions vs state
Community Reviews & Field Notes
Tried this skill on your own project? Share the model you used and the results you got.