agentleFS
kwhornekwhorne/elyra-skills/skills/adr-author/SKILL.md

adr-author

Skill1 starsChanged 6 months agoMITView on GitHub

Write an Architecture Decision Record - capture the context, options considered, decision, and consequences so future readers understand why, not just what. Use when the user makes a significant technical choice, asks to document a decision, asks "why did we choose X", or wants to set up ADRs in a project.

5 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

4 rules. 0 are common, 2 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 4 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Consequences include the bad ones: Every decision buys something and costs something.

    line 31
  2. Very specific:

    Look for an existing convention: docs/adr/, docs/decisions/, adr/

    line 37
  3. Very specific:

    If none exists, create docs/adr/ and number files NNNN-short-title.md (e.g.

    line 38
  4. Distinctive:

    If known, the revisit trigger: "Reconsider if we exceed N requests/sec" / "when library X reaches 1.0"

    line 53

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

Record why a decision was made while the reasoning is still fresh. Code shows what was built; only the ADR shows what was rejected and why.

When to use

  • A choice was just made between frameworks, storage engines, protocols, patterns, or vendors
  • A decision is expensive to reverse (schema, API contract, auth model, build system)
  • Someone asks "why is this built this way?" and the answer lives in one person's head
  • Recurring debates re-litigate a settled decision — write it down once

Not every decision needs an ADR. Rule of thumb: would a new team member six months from now be confused or tempted to "fix" it? Then yes.

Principles

  • Context over conclusion. The decision is one line; the constraints that forced it are the value.
  • Honest alternatives. Each rejected option gets its real strengths stated — strawmen rot trust in the whole log.
  • Immutable. An ADR is never edited into a new decision; it gets superseded by a new ADR that links back.
  • Consequences include the bad ones. Every decision buys something and costs something. Name both.

Process

1. Locate or create the log

  • Look for an existing convention: docs/adr/, docs/decisions/, adr/
  • If none exists, create docs/adr/ and number files NNNN-short-title.md (e.g. 0007-use-postgres-for-search.md)

2. Capture context

  • What problem forced a decision? What constraints applied (deadlines, team skills, existing systems, cost, compliance)?
  • Context must be true at the time of writing — it's the part that lets future readers judge whether the decision still applies

3. List the options actually considered

For each: what it is, its genuine pros, its genuine cons. Two to four options is typical. "Do nothing" is often a legitimate option.

4. State the decision and its consequences

  • The decision in one or two sentences, active voice: "We will…"
  • Consequences: what becomes easier, what becomes harder, what new obligations appear (ops, licensing, training)
  • If known, the revisit trigger: "Reconsider if we exceed N requests/sec" / "when library X reaches 1.0"

Output format

# NNNN. <Title — short noun phrase>

**Status:** Proposed | Accepted | Superseded by NNNN
**Date:** YYYY-MM-DD

## Context
What situation and constraints forced this decision.

## Options considered
### Option A: …
Pros: … / Cons: …
### Option B: …
Pros: … / Cons: …

## Decision
We will … because …

## Consequences
- ✅ Easier: …
- ⚠️ Harder: …
- 🔁 Revisit if: …

Anti-patterns

  • ❌ Writing the ADR months later from memory — the real context is gone
  • ❌ Strawman alternatives listed only to be knocked down
  • ❌ ADRs as design docs — keep it about the decision, not the full implementation
  • ❌ Editing an old ADR when the decision changes (supersede instead)
  • ❌ Status forever "Proposed" — decide, then mark it
  • ❌ Consequences section that only lists upsides

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.