# 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.

**Canonical URL:** https://skillshunter.net/skills/discovered-ce3a00de24c9ed3e3c01595da89fa3b941c4f99b00cb6685

**JSON URL:** https://skillshunter.net/api/public/v1/skills/discovered-ce3a00de24c9ed3e3c01595da89fa3b941c4f99b00cb6685

**Markdown URL:** https://skillshunter.net/skills/discovered-ce3a00de24c9ed3e3c01595da89fa3b941c4f99b00cb6685.md

**Instructions download URL:** https://skillshunter.net/skills/discovered-ce3a00de24c9ed3e3c01595da89fa3b941c4f99b00cb6685/download

**Category:** Software & Development

**Source URL:** https://github.com/0x57-1/start-vibing-stacks/blob/6e398b34c4dfe73ac8f809216b218856b8e02ff4/stacks/_shared/skills/decision-records/SKILL.md

**Source commit:** 6e398b34c4dfe73ac8f809216b218856b8e02ff4

**Listing approved at:** 2026-12-03

**Created at:** 2026-12-02T09:11:06.000000Z

**Updated at:** 2026-12-03T16:20:08.000000Z

## Catalog information

The following descriptions are catalog information. Listing approval does not mean the skill has been tested or is safe for every environment.

### 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 instructions

---
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

