agentleFS
rafagomesrafagomes/ai-workflow/skills/adr/SKILL.md

adr

Skill9 starsChanged 19 days agoMITView on GitHub

Write an Architecture Decision Record — one numbered file in docs/adr/ with context, options considered and the choice. Use when the user says 'write an ADR', 'record why we picked X', 'document this decision', or has just made a technical choice future contributors will question. Not for whole-system design (use /wf:architecture).

105 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use fdr, adr-review and 8 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • thiagofgfSkill

    fdr

    Use when creating, changing, reviewing, retiring, auditing, or backfilling implemented user-visible feature behavior, permissions, feature-specific rationale, tradeoffs, or relationships to architectural decisions.

    Also in 3 projects that use this

  • zgagnonSkill

    adr-review

    Use when reviewing code for Architecture Decision Record (ADR) compliance during refactoring or code review - checks code against all project ADRs and reports violations with specific fixes

    Also in 3 projects that use this

  • AnthropicSkill

    runbook

    Create or update an operational runbook for a recurring task or procedure. Use when documenting a task that on-call or ops needs to run repeatably, turning tribal knowledge into exact step-by-step commands, adding troubleshooting and rollback steps to an existing procedure, or writing escalation paths for when things go wrong.

    Also in 5 projects that use this

  • montymiSkill

    tech-spec

    Parse and review Technical Specification documents for completeness, consistency, and implementation readiness

    Also in 4 projects that use this

  • JkudjoSkill

    incident

    Production incident response — structured triage, hypothesis tree, safe remediation, incident record

    Also in 5 projects that use this

  • dedeneSkill

    untangle-codebase

    Audit or refactor a codebase or subsystem to reduce hidden coupling, scattered business rules, and unnecessary abstractions while preserving behavior and framework conventions. Use when asked to untangle, de-spaghetti, or reduce coupling in a codebase; when code is tangled or hard to change, tech debt has piled up, or one change needs edits in many places; or for an architecture cleanup or broad structural refactor. Not for incidental cleanup during an unrelated feature or a defect-only diff review.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 86 edited versions we read keep these.

  • 3

    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:

    Create an Architecture Decision Record.

    line 6
  2. Distinctive:

    Read recent ADRs (last 2-3) to match the project's style and voice.

    line 13
  3. Very specific:

    If the decision relates to architecture, read docs/ARCHITECTURE.md for context.

    line 14
  4. Very specific:

    If this decision replaces an earlier ADR, set the old one's status to Superseded by ADR-NNNN and link it in Related.

    line 15
  5. Distinctive:

    If the decision is straightforward (user already knows what they want and why), keep the interview to 1-2 questions to fill in gaps.

    line 27

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

Create an Architecture Decision Record. Argument: $ARGUMENTS

In hosts that do not substitute $ARGUMENTS (e.g. Codex), it is the text the user wrote after the skill name.

Context Gathering

  1. Find the ADR directory (default docs/adr/; use the existing one if the repo has docs/decisions/ or similar) and take the next number, zero-padded to the existing width, starting at 0001.
  2. Read recent ADRs (last 2-3) to match the project's style and voice.
  3. If the decision relates to architecture, read docs/ARCHITECTURE.md for context.
  4. If this decision replaces an earlier ADR, set the old one's status to Superseded by ADR-NNNN and link it in Related.

Interview

Use AskUserQuestion to extract the decision. Where AskUserQuestion is unavailable but the user can answer in chat (e.g. Codex), ask the same question in chat as a short numbered list and wait for the answer; a headless run or a dispatched agent has no such user, and the headless rule applies instead. Keep it focused — an ADR is one decision, not a design doc. If the decision was just made in this session, draft from the conversation and ask only for what is missing.

  1. What's the decision? — What are you deciding? What triggered this decision?
  2. Context — What constraints, requirements, or pressures led to this? What's the current state?
  3. Options considered — What alternatives did you evaluate? What are the tradeoffs of each?
  4. Decision — What did you choose and why? What was the deciding factor?
  5. Consequences — What changes as a result? What are the known downsides you're accepting?

If the decision is straightforward (user already knows what they want and why), keep the interview to 1-2 questions to fill in gaps. If the user is asking you to decide, present the options and a recommendation before writing.

Write

Write to docs/adr/NNNN-<slug>.md:

# ADR-NNNN: [Title]

**Status:** Proposed | Accepted | Deprecated | Superseded by [ADR-XXXX]
**Date:** [date]
**Deciders:** [the user plus anyone they name; if unnamed, `git config user.name`]

## Context

[What is the issue? What forces are at play? What constraints exist?]

## Decision

[What was decided. State it clearly in one sentence, then elaborate if needed.]

## Options Considered

### Option A: [Name]
- **Pros:** [benefits]
- **Cons:** [drawbacks]

(Repeat per option, at least two.)

## Consequences

### Positive
- [What improves]

### Negative
- [What gets harder or what risks are accepted]

## Related

- [Links to related ADRs, specs, issues, or documents]

After Writing

Present the ADR for review. Status is Proposed unless the user said the decision is made.

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.