Adr writer

From govctl-org/govctl · View interactive version

Adr writer is an AI agent skill from the GitHub repository govctl-org/govctl. Write decision records that explain context, evaluated alternatives, chosen direction, and consequences without creating product obligations

How to use this skill

Skill file

ADR Writer

Record why one design direction was chosen over alternatives, under what

constraints, and with what consequences. An ADR is not a mini-RFC or an

execution log.

Discovery

Read related decisions and requirements first with govctl adr show <ADR-ID>

and govctl search <topic>; add --history only when superseded history

matters. Use govctl <resource> --help for current syntax.

Hard Stops

scope. Do not create behavior, validation, lifecycle, storage, or

compatibility obligations in ADR prose, and do not record task scope,

progress, commands, or validation output.

Writing Order

  1. Context: the problem, constraints, and decision drivers.
  2. Alternatives actually considered, with only the pros and cons that

influenced the outcome. Never pad to a quota: one real rejected option beats

three fabricated ones, and when only one viable direction exists, say so in

a sentence.

  1. Mark chosen and rejected alternatives and why each rejected one lost.
  2. Decision: commit clearly to what is decided, as the conclusion of that

comparison.

  1. Consequences: benefits, costs, and mitigations, not only benefits.

For a historical backfill, separate recovered evidence from inference and say

so when alternatives cannot be recovered.

Decide Only What Must Be Decided Now

An ADR written before implementation has little evidence about low-level

design, yet implementing agents treat everything it states as settled. Record

the direction, boundaries, and constraints that are costly to reverse or that

other work depends on. For each sub-choice, ask whether deciding it during

coding would lose anything; if not, leave it out, or name it as deferred to

implementation with any constraint it must respect.

Data layouts, helper decomposition, algorithms, error-handling mechanics, and

step-by-step procedures rarely belong in an ADR written before code exists.

Record such a choice after implementation has produced the evidence.

Language-specific structure belongs only when it is central to the decision.

Keep It Short

A typical ADR is a few dozen lines. Cut background the reader already has,

alternatives nobody seriously considered, and pros and cons that did not

matter. Bloat is a defect: it hides the decision.

Normative keywords quoted from an RFC do not make the ADR authoritative.

Rewrite accidental obligation lists as rationale, or move the missing contract

to its RFC.

Projection Ownership

Per [[RFC-0000:C-ADR-PROJECTION-OWNERSHIP]]:

| Content | Owner |

| ----------------------------------------------- | ------------------------------------- |

| Metadata and fixed section headings | Renderer |

| Reference inventory | refs |

| Options, statuses, pros/cons, rejection reasons | content.alternatives |

| Explanatory prose | context, decision, consequences |

Do not write Context, Decision, Consequences, or `Alternatives

Considered` headings into content fields, and do not restate alternatives'

statuses, pros, cons, or rejection reasons in prose.

Before Handoff

tags are applied;

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.