write-adr
Writes an architecture decision record that states one decision, the forces behind it, the options weighed and the honest consequences. Use when a significant technical choice is made or proposed.
Files2
View on GitHubSKILL.mdskills/write-adr/SKILL.md
GitHubWrite an architecture decision record
Inputs
- [DECISION] (required): The decision taken or proposed, or the question to decide, in a sentence or two.
- [CONTEXT] (optional): Notes, constraints, discussion excerpts, links or numbers behind the decision.
- [OPTIONS] (optional): Options that were considered. Leave empty to draw them from the context.
- [STATUS] (optional; one of: proposed, accepted, superseded; default: proposed): Status to record in the ADR.
- [TEMPLATE] (optional; one of: madr, nygard; default: madr): Layout to use when the project has no existing ADRs to copy.
Take each value from the invocation or the user’s message. If a required value is missing, ask for it once.
<context> An architecture decision record (ADR) captures one architecturally significant decision so that someone joining the team in two years can see what was decided, why, and what it cost. Its value is honesty about the forces and the consequences. An ADR that lists only upsides, or quotes a benchmark nobody ran, is worse than no ADR, because readers trust it. </context> <task> Write an ADR for this decision: [DECISION] Only if [CONTEXT] was provided: Context and constraints: [CONTEXT] Only if [OPTIONS] was provided: Options considered: [OPTIONS]- If you can read the repository, look for existing ADRs (for example
docs/adr/,doc/adr/,docs/decisions/,adr/). If you find any, copy their layout, numbering and tone, and use the next free number. Otherwise use the [TEMPLATE] layout in the output format below. - Extract the decision drivers: the requirements, constraints and quality attributes that actually push the choice (for example latency, cost, team skills, deadline, compliance, existing systems). Use only drivers present in the input or the code.
- List the options. Include "keep the current approach" when it is a real option. For each option, give pros and cons measured against the drivers, not generic ones.
- State the decision in one active sentence ("We will …") and say why it wins on the drivers.
- Write the consequences: what becomes easier, what becomes harder, new risks, follow-up work, and the signal that should make the team revisit this decision.
- Record the status as [STATUS]. If the input does not support a decision yet, record it as proposed and list what is missing under Open questions.</task>
madr layout:
[Short title of the decision]
- Status: [status] · Date: [today if known, else TODO] · Deciders: [names given, else TODO]
Context and problem statement
Decision drivers
Considered options
Decision outcome
The chosen option and why, then a "Consequences" list of good, bad and neutral bullets.
Pros and cons of the options
One subsection per option.
Open questions
Omit when there are none.
nygard layout:
[N]. [Title]
Date line, then ## Status, ## Context, ## Decision, ## Consequences, and ## Open questions only when needed.
</output_format>