agentleFS
kienbui1995kienbui1995/magic-powers/skills/adr-writing/SKILL.md

adr-writing

Skill0 starsChanged 8 months agoMITView on GitHub

Use when documenting architecture decisions, capturing the context and trade-offs behind technical choices

3 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

6 rules. 0 are common, 5 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 3 edited versions we read keep these.

  • 5

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    When making a significant technical decision that will be hard to reverse, affects multiple teams, or needs to be understood by future …

    line 9
  2. Distinctive:

    Don't write one for: library patch versions, CSS changes, minor refactoring.

    line 20
  3. Distinctive:

    Never edit an accepted ADR's decision section

    line 62
  4. Distinctive:

    If decision changes: create a new ADR that supersedes it

    line 63
  5. Distinctive:

    Update status of old ADR to "Superseded by ADR-NNN"

    line 64
  6. Very specific:

    Keep in docs/adr/ in the repo (versioned with code)

    line 67

“Common” is measured: kept by at least 6 in 10 of the 3 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

ADR Writing (Architecture Decision Records)

When to Use

When making a significant technical decision that will be hard to reverse, affects multiple teams, or needs to be understood by future engineers.

Core Jobs

1. Know When to Write an ADR

Write one when:

  • Choosing between 2+ significant technical options
  • The decision affects system architecture, not just implementation detail
  • Future engineers will wonder "why did they do it this way?"
  • The decision is hard to reverse (database choice, API protocol, auth system)

Don't write one for: library patch versions, CSS changes, minor refactoring.

2. ADR Template

# ADR-[NNN]: [Short Title]

**Date:** YYYY-MM-DD
**Status:** Proposed | Accepted | Deprecated | Superseded by ADR-NNN
**Deciders:** [names or teams]

## Context
[What situation are we in? What forces are at play? What is the problem?]

## Decision
[The decision we made. Use active voice: "We will use X because..."]

## Options Considered

### Option A: [Name]
**Pros:** ...
**Cons:** ...

### Option B: [Name]
**Pros:** ...
**Cons:** ...

## Consequences

**Positive:**
- [What becomes easier or better?]

**Negative:**
- [What becomes harder or worse? What do we give up?]

**Risks:**
- [What could go wrong?]

## References
- [Links to relevant docs, RFCs, benchmarks]

3. Keep ADRs Immutable

  • Never edit an accepted ADR's decision section
  • If decision changes: create a new ADR that supersedes it
  • Update status of old ADR to "Superseded by ADR-NNN"

4. Store and Link

  • Keep in docs/adr/ in the repo (versioned with code)
  • Link from CLAUDE.md or README
  • Reference in code comments when a non-obvious choice was made

Key Outputs

  • ADR document (in docs/adr/)
  • Status updated in future ADRs if decision changes

Anti-Patterns

  • ADR written after the decision, without options considered
  • Decision section is vague ("we chose Postgres because it's good")
  • Editing accepted ADRs instead of superseding
  • ADRs stored in Confluence/Notion, not in the repo

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.