agentleFS
yigitcanozdemiryigitcanozdemir/full-stack-project-template/.agents/skills/adr/SKILL.md

adr

Skill0 starsChanged 2 months agoMITView on GitHub

Propose an Architecture Decision Record in docs/adr/ for a choice that is expensive to reverse or easy to misread later — a dependency, a stack slot, a data-model constraint, a security boundary, a rejected approach — with options, drivers and how the decision will be checked, then stop for a human decision before coding it. Use when the user asks for an ADR or decision record, or when a task hits such a choice that no PRD, architecture page or existing ADR already settles.

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 10 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

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

  • 0

    Common

    Most of the 87 edited versions we read keep these.

  • 1

    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:

    No for routine work that follows existing rules — most tasks need none.

    line 21
  2. Very specific:

    Status: always Proposed. Only a human moves it on.

    line 32
  3. Very specific:

    Index: add the row to docs/adr/README.md and bump the "next free number" line.

    line 33

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

Write an ADR

An ADR records one non-obvious decision and why, so that a choice which looks arbitrary later — an unused field, a chosen library, a rejected approach — can be understood without re-running the discussion. The format follows the useful parts of MADR 4: drivers, options side by side, and how the decision is confirmed.

Is an ADR needed?

Yes when the choice is not already settled — check the index in docs/adr/README.md, docs/architecture/ and docs/product/ first — and it is expensive to reverse or easy to misread. Typical triggers: adding or rejecting a dependency, choosing or changing a stack slot, a schema decision that constrains the future, a security or trust boundary, generalising a mechanism, reserving something for a capability not built yet.

No for routine work that follows existing rules — most tasks need none. Do not write one to look thorough.

Steps

  1. Read first: the PRD requirements the decision serves (docs/product/), the ADRs it touches, and the code it affects. An ADR that contradicts an accepted one must supersede it explicitly.
  2. Number: the next free number is stated at the bottom of the index in docs/adr/README.md — use it, not the file listing (numbers can be retired or reserved). Zero-pad to four digits.
  3. File: docs/adr/NNNN-short-kebab-title.md, from the template below. About a page; if it needs more, it is probably two decisions.
  4. Status: always Proposed. Only a human moves it on.
  5. Index: add the row to docs/adr/README.md and bump the "next free number" line.
  6. Stop. Show the human the decision, the strongest rejected option, and the main cost — then wait for a decision before writing code that depends on it.
  7. After the human decides, set the status. Accepted, or Rejected — a rejected proposal stays in the index, because "we considered X and said no" is exactly what the next person asks.

Statuses

Proposed → Accepted | Rejected. Later: Superseded by ADR-NNNN (a newer ADR replaces it) or Deprecated (no longer relevant, nothing replaces it). The status line and index row are the only edits an accepted ADR ever receives; the old ADR and its successor both link each other.

Rules

  • One decision per record. Two decisions are two ADRs.
  • Accepted ADRs are immutable; revise by writing a new one that supersedes it.
  • An ADR never cites a plan (docs/plans/). A plan closes; the ADR outlives it. Cite PRD requirement IDs, other ADRs, architecture pages or code.
  • Name things as the code names them, so grep finds them.
  • At least two real options, including "do nothing / keep what we have" when that is viable. A decision with no downside has not been thought through.
  • Confirmation is concrete — a test, a lint rule, a CI job, a review rule in AGENTS.md — or it says honestly that the decision is checked only by review.

Template

# ADR-NNNN — <short title: the decision, not the topic>

- **Status:** Proposed
- **Date:** YYYY-MM-DD
- **Relates to:** <PRD requirement IDs, ADRs, architecture pages; "supersedes ADR-MMMM" if it does>

## Context

What forces the decision now: the problem, the constraints, and what is already fixed elsewhere.

## Decision drivers

- <the requirement, quality or constraint that decides between the options>

## Considered options

1. **<option>** — one line on what it is.
2. **<option>**
3. **Keep what we have** — if viable.

## Decision

What we are doing, stated plainly. Numbered if it has parts.

## Consequences

- **Good:** what this makes easy.
- **Bad:** what this makes hard, and what it commits us to.

## Confirmation

How we will know it is followed: the test, lint rule, CI job or review rule that enforces it.

## Options compared

| Driver | <option 1> | <option 2> | <option 3> |
|---|---|---|---|
| <driver> | … | … | … |

For each rejected option, one line on why it lost.

## Revisit when

The observable change that should reopen this (a scale threshold, a new requirement, a dependency's
end of life).

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.