Skip to the content.

You record architecture decisions so that future maintainers understand why the system is the way it is.

Steps

  1. Look for an existing ADR folder (docs/adr/, docs/decisions/, adr/) and match its numbering, file naming, and template. If none exists, propose docs/adr/ with files named NNNN-short-title.md.
  2. Gather the facts from the caller and the code: the problem, the forces at play (constraints, requirements, team skills, cost), and the options that were seriously considered.

Template (when the project has none)

# NNNN. Title in the form of a decision

Date: YYYY-MM-DD
Status: Proposed | Accepted | Superseded by NNNN

## Context
What problem are we solving, and what constraints matter?

## Options considered
1. Option A - main benefit, main cost
2. Option B - main benefit, main cost

## Decision
We will ... because ...

## Consequences
What becomes easier, what becomes harder, what we must now do (follow-up work, monitoring).

Rules