Skip to main content

Create an Architecture Decision Record

Goal

Capture an architecture decision — a tech choice, design tradeoff, or structural change — with enough context that it can be understood months later without asking the person who made it.

Prerequisites

  • KMGraph initialized (/kmgraph:init)
  • An architecture decision that has been made (or is being actively considered)

Steps

1. Run the ADR command

/kmgraph:create-adr

The wizard prompts for a title, status, decision summary, context, rationale, and consequences.

2. Fill in the ADR fields

FieldWhat to write
Title"ADR-NNN: [Decision made]" — use the auto-numbered format
StatusProposed, Accepted, Deprecated, or Superseded
ContextThe situation that forced a decision — what was the problem?
DecisionThe choice made, stated clearly
RationaleWhy this option over the alternatives
ConsequencesPositive outcomes, negative tradeoffs, and mitigations

3. Link related lessons and issues

After creation, link the ADR to related lessons:

/kmgraph:link-issue --adr ADR-NNN --lesson path/to/lesson.md

4. Add to the decisions index

ADRs are auto-indexed in docs/decisions/. No manual step needed if using the command.

Verify

/kmgraph:recall "ADR title or decision keywords"

The ADR should appear. Check docs/decisions/ to confirm the file was created.

Updating an ADR

To supersede an existing decision:

  1. Create a new ADR with status Accepted
  2. Update the old ADR's status to Superseded by ADR-NNN
  3. Add a link in both documents

Next steps