Write an Architecture Decision Record
Purpose
Record one architecturally significant decision so future readers understand what was decided, why, what else was considered and what it costs, without reconstructing the discussion.
When to use
- A decision affects structure, quality attributes, interfaces, dependencies or build/deploy approach and is hard to reverse.
- A decision was made in a meeting or chat and exists nowhere in writing.
- A previous ADR is being superseded or deprecated.
- A principle exception is granted.
When not to use
- Everyday business or project decisions. Use
decision-log.
- Options are still wide open and need structured comparison first. Use
trade-off-analysis or technology-selection, then record the result here.
- The whole solution needs documenting. Use
solution-architecture-document.
Inputs
Required:
- The decision question (or the decision already taken) and its context.
- The options considered, or enough context to identify realistic ones.
Optional:
- Decision drivers: quality attributes, constraints, principles, costs, deadlines.
- Participants, date, related ADRs, evidence (spikes, benchmarks, PoCs).
- Preferred template (Nygard short form or MADR).
If the decision question is unclear, ask. If the decision is not yet made, write the ADR with status Proposed and a recommendation.
Process
- Check significance: if it is easy to reverse and local to one component, suggest a code comment or design note instead.
- Write a title as a short noun phrase of the decision ("Use PostgreSQL for order persistence"), and a sequential number if the team uses one.
- Describe context neutrally: forces, constraints, current state, what triggered the decision. No option advocacy here.
- List decision drivers as named, ranked criteria (e.g., "transactional consistency across order lines", "team experience", "reporting queries").
- List 2-4 realistic options including "do nothing / keep current" where relevant.
- For each option, write pros and cons against the drivers; cite evidence or mark
[ASSUMPTION].
- State the decision in one sentence using active voice ("We will ..."), and why it wins on the top drivers.
- Write consequences: positive, negative (costs, risks, new debt) and follow-up actions with owners.
- Set status (Proposed, Accepted, Deprecated, Superseded by ADR-n) and date; link related or superseded ADRs.
- Add a review trigger: the condition under which this decision should be revisited.
- If the goal continues, suggest
solution-architecture-document to reference the ADR or decision-log for related non-architectural decisions.
Output format
# ADR-<n>: <decision title>
Status: <Proposed | Accepted | Deprecated | Superseded by ADR-x> · Date: <date> · Deciders: <roles or [UNKNOWN]>
## Context
## Decision Drivers
1. ...
## Considered Options
- Option A – <name>
- Option B – <name>
## Pros and Cons of the Options
### Option A
- Good, because ...
- Bad, because ...
## Decision
We will <decision>, because <top drivers>.
## Consequences
- Positive: ...
- Negative: ...
- Follow-up: <action – owner>
## Review Trigger
## Links
Quality checklist
Common pitfalls
- Straw-man alternatives added only to justify the choice. Include options a competent team could have chosen.
- Editing accepted ADRs to change the decision. Write a new ADR and mark the old one superseded.
- Missing the "why now" in context, which makes the decision look arbitrary later.
Example
Input: "We chose PostgreSQL over MongoDB for the order service; consistency, skills and reporting matter."
Excerpt of output:
- Title: ADR-012: Use PostgreSQL for Order Service Persistence
- Decision: We will store orders in PostgreSQL, because multi-row transactional consistency and SQL reporting rank highest and the team operates PostgreSQL today.
- Negative consequence: Schema changes need migration scripts in the pipeline; flexible attributes will use JSONB with validation.
- Review trigger: Order write volume exceeds what a single primary can sustain
[threshold TBD after load test].
1---2name: adr3description: "Writes an Architecture Decision Record (ADR) capturing context, decision drivers, considered options with pros and cons, the decision, and its consequences, in a Nygard or MADR style, including status and supersession links. Use when an architecturally significant decision has been made or must be made, when a past decision needs to be documented retroactively, or when a decision is being reversed."4license: MIT5metadata:6 source: https://skillmd.com/skills/muratdincer/adr7 version: "1.0.0"8 language: en9 category: 04-architecture10 role: solution-architect11 area: design12 title: "Write an Architecture Decision Record"13 related: "decision-log, trade-off-analysis, technology-selection, solution-architecture-document, architecture-principles"14 prompt: "Write an ADR for choosing PostgreSQL over MongoDB for the order service; drivers are transactional consistency, team skills and reporting needs."15---1617# Write an Architecture Decision Record1819## Purpose20Record one architecturally significant decision so future readers understand what was decided, why, what else was considered and what it costs, without reconstructing the discussion.2122## When to use23- A decision affects structure, quality attributes, interfaces, dependencies or build/deploy approach and is hard to reverse.24- A decision was made in a meeting or chat and exists nowhere in writing.25- A previous ADR is being superseded or deprecated.26- A principle exception is granted.2728## When not to use29- Everyday business or project decisions. Use `decision-log`.30- Options are still wide open and need structured comparison first. Use `trade-off-analysis` or `technology-selection`, then record the result here.31- The whole solution needs documenting. Use `solution-architecture-document`.3233## Inputs34Required:35- The decision question (or the decision already taken) and its context.36- The options considered, or enough context to identify realistic ones.3738Optional:39- Decision drivers: quality attributes, constraints, principles, costs, deadlines.40- Participants, date, related ADRs, evidence (spikes, benchmarks, PoCs).41- Preferred template (Nygard short form or MADR).4243If the decision question is unclear, ask. If the decision is not yet made, write the ADR with status Proposed and a recommendation.4445## Process461. Check significance: if it is easy to reverse and local to one component, suggest a code comment or design note instead.472. Write a title as a short noun phrase of the decision ("Use PostgreSQL for order persistence"), and a sequential number if the team uses one.483. Describe context neutrally: forces, constraints, current state, what triggered the decision. No option advocacy here.494. List decision drivers as named, ranked criteria (e.g., "transactional consistency across order lines", "team experience", "reporting queries").505. List 2-4 realistic options including "do nothing / keep current" where relevant.516. For each option, write pros and cons against the drivers; cite evidence or mark `[ASSUMPTION]`.527. State the decision in one sentence using active voice ("We will ..."), and why it wins on the top drivers.538. Write consequences: positive, negative (costs, risks, new debt) and follow-up actions with owners.549. Set status (Proposed, Accepted, Deprecated, Superseded by ADR-n) and date; link related or superseded ADRs.5510. Add a review trigger: the condition under which this decision should be revisited.5611. If the goal continues, suggest `solution-architecture-document` to reference the ADR or `decision-log` for related non-architectural decisions.5758## Output format59```markdown60# ADR-<n>: <decision title>61Status: <Proposed | Accepted | Deprecated | Superseded by ADR-x> · Date: <date> · Deciders: <roles or [UNKNOWN]>6263## Context64## Decision Drivers651. ...66## Considered Options67- Option A – <name>68- Option B – <name>69## Pros and Cons of the Options70### Option A71- Good, because ...72- Bad, because ...73## Decision74We will <decision>, because <top drivers>.75## Consequences76- Positive: ...77- Negative: ...78- Follow-up: <action – owner>79## Review Trigger80## Links81```8283## Quality checklist84- [ ] One decision per ADR; the title states the decision, not the problem.85- [ ] Context is neutral and understandable to a newcomer in a year.86- [ ] At least two real options were considered, with pros and cons against named drivers.87- [ ] Negative consequences are listed honestly.88- [ ] Status, date and links are set; no deciders or dates invented.89- [ ] All checks pass; if any fails, revise the output and re-run this checklist before answering.9091## Common pitfalls92- Straw-man alternatives added only to justify the choice. Include options a competent team could have chosen.93- Editing accepted ADRs to change the decision. Write a new ADR and mark the old one superseded.94- Missing the "why now" in context, which makes the decision look arbitrary later.9596## Example97Input: "We chose PostgreSQL over MongoDB for the order service; consistency, skills and reporting matter."9899Excerpt of output:100- Title: ADR-012: Use PostgreSQL for Order Service Persistence101- Decision: We will store orders in PostgreSQL, because multi-row transactional consistency and SQL reporting rank highest and the team operates PostgreSQL today.102- Negative consequence: Schema changes need migration scripts in the pipeline; flexible attributes will use JSONB with validation.103- Review trigger: Order write volume exceeds what a single primary can sustain `[threshold TBD after load test]`.