agentleFS
codebygarvcodebygarv/Ai-skills/skills/architecture/adr-writer/SKILL.md

adr-writer

Skill26 starsChanged 4 months agoMITView on GitHub

Writes an Architecture Decision Record (ADR) documenting a decision, its context, the options considered, and its consequences. Use to record a decision that's already been made so future readers understand why.

10 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

1 rule. 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 9 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Document an architectural decision in ADR format — capturing not just *what* was decided, but the context that forced the decision, the …

    line 8

“Common” is measured: kept by at least 6 in 10 of the 9 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Purpose

Document an architectural decision in ADR format — capturing not just what was decided, but the context that forced the decision, the alternatives considered, and the consequences accepted. The value is for the reader six months later asking "why on earth is it built this way."

When to Use

  • A significant technical decision has been made and needs to be recorded.
  • Onboarding docs keep having to explain the same "why is it like this" question verbally.
  • Retroactively documenting an existing decision whose rationale lives only in people's heads.

Pairs with Decision Maker: that skill makes the decision by comparing options; this skill records a decision in a durable, standard format.

What to Analyze / Do

  1. Capture the forces, not just the choice — what constraints, requirements, or pressures made this decision necessary. A decision with no stated context reads as arbitrary later.
  2. Record the alternatives that were genuinely considered — and why each was rejected. This is the part future readers need most, because it prevents re-litigating options that were already dismissed for good reason.
  3. State consequences honestly, including the negative ones — every real decision has downsides. An ADR that lists only benefits is marketing, not a record.
  4. Assign a status — Proposed / Accepted / Deprecated / Superseded (with a link to the superseding ADR when applicable). ADRs are immutable once accepted; superseding is how they change.
  5. Keep it short — an ADR is typically one page. If it's sprawling, the decision may actually be several decisions that each deserve their own record.

Output Format

Standard ADR structure:

  • Title — ADR-NNN: <short decision statement>
  • Status — Proposed / Accepted / Deprecated / Superseded by ADR-NNN
  • Date
  • Context — the forces and constraints that made a decision necessary.
  • Decision — what was chosen, stated in active voice ("We will…").
  • Alternatives Considered — each with why it was rejected.
  • Consequences — both positive and negative, stated plainly.

Avoid

  • Writing an ADR that lists only upsides — the accepted trade-offs are the most valuable content in it.
  • Editing an accepted ADR to reflect a changed decision — write a new one that supersedes it, preserving the historical record.
  • Documenting trivial decisions that nobody will ever ask about; reserve ADRs for choices that are expensive to reverse or non-obvious in hindsight.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.