Architecture decision record (ADR)
Helps a developer or team create and maintain architecture decision records:
short documents that capture an important architecture decision, the context
that led to it, and its consequences.
This skill is general-purpose: it applies to any repository the user is
working in, not just this one. reference/templates.md and
reference/writing-guide.md are self-contained — no need to read the rest of
this repo to use them.
1. Decide if this decision deserves an ADR
Not every decision needs one. Recommend an ADR when the decision:
- Is architecturally significant (affects structure, external interfaces,
quality attributes, or is expensive/risky to reverse).
- Needs to be understood by future developers who weren't in the room.
- Involved real trade-offs worth recording (not a one-line style choice
already covered by a linter or style guide).
Skip an ADR when the decision is tiny, self-contained, single-developer,
already covered by policy/standards, or purely a temporary workaround/POC.
If the user is unsure, ask what the decision is and who needs to understand
"why" later — that usually settles it.
2. Find or create the ADR directory
Look for an existing convention first:
git ls-files | grep -iE '(^|/)(adr|adrs|decisions?)(/|$)'
- If one exists, follow its naming/format/numbering so far.
- If none exists, ask the user (or default to) a top-level
decisions/ or
adr/ directory. Some teams prefer decisions/ because the word
"architecture" and the abbreviation "ADR" put some contributors off,
while "decisions" invites broader use (vendor, planning, scheduling
decisions too).
- Some projects number files (
0001-choose-database.md, adr-tools style);
others don't. Match what's already there; otherwise unnumbered
present-tense file names (see below) are simplest to start with.
3. Name the file
Convention used across this ecosystem:
- A present-tense imperative verb phrase, e.g.
choose-database.md,
format-timestamps.md, manage-passwords.md, handle-exceptions.md.
- Lowercase with dashes.
.md extension.
- If the project numbers ADRs, prefix with a zero-padded sequence number,
e.g.
0007-choose-database.md.
4. Pick a template
Ask the user's preference, or pick based on the shape of the decision — see
reference/templates.md for the full skeletons. Quick guide:
| Situation |
Template |
| Default / most teams / unsure |
Nygard — Title, Status, Context, Decision, Consequences |
| Want lightweight options-with-pros/cons |
MADR |
| Enterprise, need traceability to requirements/principles |
Tyree & Akerman |
| Fast executive sign-off on a narrow technical choice (a library, a model, a CI strategy) |
ITD (Important Technical Decision) |
| Vendor/tool selection with cost, SWOT, stakeholder opinions |
Business case |
| Want a one-paragraph "Y-statement" style summary plus narrative |
Alexandrian pattern |
| Need formal, testable non-functional requirements language |
Planguage |
| Contributing to / matching EdgeX Foundry conventions |
EdgeX |
| Full architecture documentation, ADR is one section of it |
arc42 (§9) |
| Want a lightweight traffic-light options-comparison table |
Gareth Morgan |
| Want an "Options → Options Analysis → Recommendation" narrative flow |
GIG Cymru NHS Wales |
When in doubt, default to Nygard — it's the simplest, most widely recognized,
and easiest for a team to adopt without tooling.
5. Write it well
Load reference/writing-guide.md for the fuller checklist. The essentials:
- One decision per ADR. Don't bundle multiple architecturally
distinct decisions into one file.
- Context should explain the organization's situation, constraints, and
the forces in tension — not just "we needed a database."
- Decision should state the chosen direction plainly, not hedge.
- Consequences should cover both what gets easier and what gets harder,
plus any follow-on ADRs this decision now requires.
- Timestamp it. Costs, vendor pricing, and scaling numbers change —
date anything that might go stale.
- Give the record a status:
proposed | accepted | rejected | deprecated | superseded by <link>.
6. Handle supersession, not silent edits
ADRs are usually treated as immutable once accepted (some teams instead
prefer a "living document" with dated addenda — ask if unsure which this
team wants). When a new decision replaces an old one:
- Create a new ADR file describing the new decision.
- Update the old ADR's Status to
Superseded by [new-adr](path).
- Link back from the new ADR's Status/Links section:
Supersedes [old-adr](path).
7. Optional: wire it into pull requests
If the user wants ADR presence enforced or automatically surfaced on PRs,
mention (don't set these up unprompted):
- ADR Guard — GitHub
Action that fails a PR when watched code paths change without an
ADR being added/updated. Supports
ADR-Exempt: waivers.
- Decision Guardian —
surfaces relevant existing decision records on a PR touching that code.
Full background, more templates, and further reading live in the
architecture-decision-record repo.
Learn more
1---2name: architecture-decision-record3description: Use when a user wants to create, write, name, place, or organize an Architecture Decision Record (ADR) in a software project — e.g. "write an ADR for choosing a database", "document this architecture decision", "set up an adr/ or decisions/ directory", "which ADR template should I use", "supersede an old ADR". Covers picking a template, naming the file, filling in context/decision/consequences, and deciding whether a decision even needs an ADR.4metadata:5 source: https://skillmd.com/skills/skills-on-ai/architecture-decision-record6---78# Architecture decision record (ADR)910Helps a developer or team create and maintain architecture decision records:11short documents that capture an important architecture decision, the context12that led to it, and its consequences.1314This skill is general-purpose: it applies to any repository the user is15working in, not just this one. `reference/templates.md` and16`reference/writing-guide.md` are self-contained — no need to read the rest of17this repo to use them.1819## 1. Decide if this decision deserves an ADR2021Not every decision needs one. Recommend an ADR when the decision:2223- Is architecturally significant (affects structure, external interfaces,24 quality attributes, or is expensive/risky to reverse).25- Needs to be understood by future developers who weren't in the room.26- Involved real trade-offs worth recording (not a one-line style choice27 already covered by a linter or style guide).2829Skip an ADR when the decision is tiny, self-contained, single-developer,30already covered by policy/standards, or purely a temporary workaround/POC.3132If the user is unsure, ask what the decision is and who needs to understand33"why" later — that usually settles it.3435## 2. Find or create the ADR directory3637Look for an existing convention first:3839```sh40git ls-files | grep -iE '(^|/)(adr|adrs|decisions?)(/|$)'41```4243- If one exists, follow its naming/format/numbering so far.44- If none exists, ask the user (or default to) a top-level `decisions/` or45 `adr/` directory. Some teams prefer `decisions/` because the word46 "architecture" and the abbreviation "ADR" put some contributors off,47 while "decisions" invites broader use (vendor, planning, scheduling48 decisions too).49- Some projects number files (`0001-choose-database.md`, adr-tools style);50 others don't. Match what's already there; otherwise unnumbered51 present-tense file names (see below) are simplest to start with.5253## 3. Name the file5455Convention used across this ecosystem:5657- A present-tense imperative verb phrase, e.g. `choose-database.md`,58 `format-timestamps.md`, `manage-passwords.md`, `handle-exceptions.md`.59- Lowercase with dashes.60- `.md` extension.61- If the project numbers ADRs, prefix with a zero-padded sequence number,62 e.g. `0007-choose-database.md`.6364## 4. Pick a template6566Ask the user's preference, or pick based on the shape of the decision — see67`reference/templates.md` for the full skeletons. Quick guide:6869| Situation | Template |70|---|---|71| Default / most teams / unsure | **Nygard** — Title, Status, Context, Decision, Consequences |72| Want lightweight options-with-pros/cons | **MADR** |73| Enterprise, need traceability to requirements/principles | **Tyree & Akerman** |74| Fast executive sign-off on a narrow technical choice (a library, a model, a CI strategy) | **ITD** (Important Technical Decision) |75| Vendor/tool selection with cost, SWOT, stakeholder opinions | **Business case** |76| Want a one-paragraph "Y-statement" style summary plus narrative | **Alexandrian pattern** |77| Need formal, testable non-functional requirements language | **Planguage** |78| Contributing to / matching EdgeX Foundry conventions | **EdgeX** |79| Full architecture documentation, ADR is one section of it | **arc42** (§9) |80| Want a lightweight traffic-light options-comparison table | **Gareth Morgan** |81| Want an "Options → Options Analysis → Recommendation" narrative flow | **GIG Cymru NHS Wales** |8283When in doubt, default to Nygard — it's the simplest, most widely recognized,84and easiest for a team to adopt without tooling.8586## 5. Write it well8788Load `reference/writing-guide.md` for the fuller checklist. The essentials:8990- **One decision per ADR.** Don't bundle multiple architecturally91 distinct decisions into one file.92- **Context** should explain the organization's situation, constraints, and93 the forces in tension — not just "we needed a database."94- **Decision** should state the chosen direction plainly, not hedge.95- **Consequences** should cover both what gets easier and what gets harder,96 plus any follow-on ADRs this decision now requires.97- **Timestamp it.** Costs, vendor pricing, and scaling numbers change —98 date anything that might go stale.99- Give the record a status: `proposed | accepted | rejected | deprecated |100 superseded by <link>`.101102## 6. Handle supersession, not silent edits103104ADRs are usually treated as immutable once accepted (some teams instead105prefer a "living document" with dated addenda — ask if unsure which this106team wants). When a new decision replaces an old one:1071081. Create a new ADR file describing the new decision.1092. Update the old ADR's Status to `Superseded by [new-adr](path)`.1103. Link back from the new ADR's Status/Links section:111 `Supersedes [old-adr](path)`.112113## 7. Optional: wire it into pull requests114115If the user wants ADR presence enforced or automatically surfaced on PRs,116mention (don't set these up unprompted):117118- [ADR Guard](https://github.com/chohan-sarmad-ali/delivery-gates) — GitHub119 Action that fails a PR when watched code paths change without an120 ADR being added/updated. Supports `ADR-Exempt:` waivers.121- [Decision Guardian](https://github.com/DecispherHQ/decision-guardian) —122 surfaces relevant existing decision records on a PR touching that code.123124Full background, more templates, and further reading live in the125[architecture-decision-record repo](https://github.com/joelparkerhenderson/architecture-decision-record).126127## Learn more128129- Architecture Decision Record: <https://architecture-decision-record.github.io/>