agentleFS
muthub-aimuthub-ai/c4-skills/adr-scribe/SKILL.md

adr-scribe

Skill4 starsChanged 7 months agoMITView on GitHub

Interactively draft, retro-document, and review Architecture Decision Records (ADRs). The skill detects the usage mode (interview for a new decision, retro-documenting from a PR or code, or reviewing an existing ADR) and enforces the use of the Michael Nygard MADR template. Output format is Markdown. Destination is negotiated (default local filesystem in docs/adr/).

  • In this repositoryOne other file it gives its agents.

The file

We split this skill into the rules it gives an agent

7 rules. About 0 are common, 5 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    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:

    If the context is ambiguous, ask:

    line 25
  2. Very specific:

    Every ADR must follow the structure defined in adr-template.md (the Michael Nygard MADR format):

    line 40
  3. Very specific:

    Default: local filesystem, in docs/adr/ (e.g., docs/adr/0001-use-redis-for-caching.md).

    line 53
  4. Distinctive:

    If an MCP is connected, you can propose saving it to Notion, Google Drive, etc.

    line 54
  5. Distinctive:

    Max 3 questions per batch: Never drown the user in a form.

    line 57
  6. Distinctive:

    Explicit trade-offs: Ensure the *Consequences* section includes both positive and negative impacts.

    line 61
  7. Distinctive:

    Never deliver without validation: Always present a draft and ask: *"Does this accurately reflect the decision?"* before writing the final …

    line 62

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “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 Scribe — documenting architectural decisions

While C4 diagrams document what the architecture is, an Architecture Decision Record (ADR) documents why it was built that way. This skill acts as a technical scribe to help you capture important architectural decisions consistently.

Mode detection (router)

Always start by identifying the mode.

Signals to infer without asking

User signalMode
"We just decided to use X", "Document this decision", "I want to write an ADR"Interview
"Here's a PR that changed our auth", "Infer the decision from this code"Retro-Document
"Is this ADR complete?", pastes an existing ADRReview

If the context is ambiguous, ask:

"Do you want to: (a) interview me to draft a new ADR, (b) retro-document a decision from an existing PR/codebase, or (c) review an existing ADR?"

File to load based on the mode

Once the mode is known, read the corresponding file to apply its detailed flow:

ModeFile
Interviewmode-interview.md
Retro-Documentmode-retro-document.md
Reviewmode-review.md

The Template (Non-negotiable)

Every ADR must follow the structure defined in adr-template.md (the Michael Nygard MADR format):

  • Title
  • Status (Proposed, Accepted, Deprecated, Superseded)
  • Context
  • Decision
  • Consequences

Common contract

Output format

Default: Markdown document.

Destination

Default: local filesystem, in docs/adr/ (e.g., docs/adr/0001-use-redis-for-caching.md). If an MCP is connected, you can propose saving it to Notion, Google Drive, etc. Confirm before writing.

Dialogue rules

  • Max 3 questions per batch. Never drown the user in a form.
  • Reformulate before assuming: "If I understand correctly, the main reason we chose X is Y. Is that right?"
  • Offer options when the user hesitates: "Did you consider option Z? What were its drawbacks?"
  • Incremental drafts: Show a partial structure (e.g., just the Context) and validate as you go.
  • Explicit trade-offs. Ensure the Consequences section includes both positive and negative impacts. If the user only provides positives, prompt them: "What are the downsides or maintenance burdens of this choice?"
  • Never deliver without validation. Always present a draft and ask: "Does this accurately reflect the decision?" before writing the final file.

Common pitfalls to avoid

  • Writing after the fact without context — guessing why a decision was made instead of asking the stakeholders.
  • Listing only one option — if there's no alternative, it's not a decision, it's a constraint.
  • Missing negative consequences — every decision has trade-offs. An ADR without negative consequences is incomplete.
  • Leaving status as "Proposed" indefinitely — remind the user to update statuses as the architecture evolves.

Bundled references

Documentation for the selected mode (load with Read after detection):

  • mode-interview.md — dialogued drafting
  • mode-retro-document.md — inferring from code/PR
  • mode-review.md — critique of an existing ADR

Cross-cutting references:

  • adr-template.md — the MADR template to use
  • review-checklist.md — checklist for completeness
  • examples/0001-use-postgresql-over-mongodb.md — filled-out example

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.