agentleFS
metravodmetravod/stare-decisis/SKILL.md

adr

Skill0 starsChanged 54 days agoMITView on GitHub

Create or update an Architecture Decision Record. Use when a significant architectural or process decision is being made, when an earlier decision needs to be reversed or refined, or when the user asks to "write an ADR", "record this decision", "log this decision", «заведи ADR», «запиши решение». Finds the ADR directory on its own, follows the project's conventions from CLAUDE.md / AGENTS.md / GEMINI.md, and sets Supersedes/Amended by links in the affected records.

35 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use coverage, observability 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.
  • PydanticSkill

    coverage

    Fetch coverage diff from Codecov for the current branch or a specific PR. Shows uncovered lines, patch coverage, and overall coverage change.

    Also in 3 projects that use this

  • OpenAISkill

    observability

    Vercel Observability expert guidance — Drains (logs, traces, speed insights, web analytics), Web Analytics, Speed Insights, runtime logs, custom events, OpenTelemetry integration, and monitoring dashboards. Use when instrumenting, debugging, or optimizing application performance and user experience on Vercel.

    Also in 5 projects that use this

  • SentrySkill

    agents-md

    This skill should be used when the user asks to "create AGENTS.md", "update AGENTS.md", "maintain agent docs", "set up CLAUDE.md", or needs to keep agent instructions concise. Guides discovery of local skills and enforces minimal documentation style.

    Also in 3 projects that use this

  • MongoDBSkill

    jira

    Use this skill for any Jira operation in the DOCSP project — creating, viewing, searching, updating, transitioning, commenting on, or linking tickets. Also handles follow-up ticket creation to manage scope creep. TRIGGER when: user mentions a DOCSP-XXXXX ticket number or any Jira ticket URL; user asks to view, open, check, update, transition, close, comment on, link, or search tickets; user references \"the ticket\", \"the Jira\", or \"open a ticket\". SKIP: GitHub issues; non-Jira platforms; questions unrelated to ticket operations.

    Also in 4 projects that use this

  • MicrosoftSkill

    api-design

    Guide for designing and documenting RESTful APIs. Use when asked to design an API, create endpoints, or document an API.

    Also in 6 projects that use this

  • GitHubSkill

    refactor

    Surgical code refactoring to improve maintainability without changing behavior. Covers extracting functions, renaming variables, breaking down god functions, improving type safety, eliminating code smells, and applying design patterns. Less drastic than repo-rebuilder; use for gradual improvements.

    Also in 5 projects that use this

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 31 edited versions we read keep these.

  • 7

    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 directory — ask where to create it.

    line 18
  2. Distinctive:

    Check the project's agent instructions file — CLAUDE.md, AGENTS.md or GEMINI.md, whichever exists — for a section about ADRs.

    line 20
  3. Distinctive:

    Read the titles of existing ADRs — the file names already carry the topic.

    line 29
  4. Very specific:

    Every doubt or objection that was raised and not refuted goes in, marked (unresolved).

    line 101
  5. Distinctive:

    No secrets, tokens, or third parties' personal details.

    line 105
  6. Distinctive:

    When a new decision touches an old one — edit the old file, don't leave it lying:

    line 111
  7. Very specific:

    When an existing ADR comes up — the user questions it, or it blocks what's being asked — don't defend it on reflex.

    line 126
  8. Distinctive:

    If no decision has been made, there's nothing to write.

    line 139
  9. Distinctive:

    A cherry-picked Record: Only the quotes that support the decision.

    line 146

“Common” is measured: kept by at least 6 in 10 of the 31 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 — create or update

An ADR exists for one thing only: never argue the same thing twice. Everything else in this skill serves that goal. A record with no rejected alternatives and no reasons for rejecting them is not doing its job.

Step 1. Find the directory and the conventions

ls adr/ 2>/dev/null || ls docs/adr/ 2>/dev/null || ls doc/adr/ 2>/dev/null

No directory — ask where to create it; don't invent a location.

Check the project's agent instructions file — CLAUDE.md, AGENTS.md or GEMINI.md, whichever exists — for a section about ADRs. Project conventions beat this skill's defaults: if the project has set its own title format, language or numbering scheme — follow the project. Firmness, Revisit if and Record are additive: keep them even when the project's template doesn't list them, unless it explicitly says not to.

Step 2. Check prior decisions, but don't read everything

Read the titles of existing ADRs — the file names already carry the topic. Open only those whose names are directly relevant to the task. Walking through every ADR is burned context and the typical mistake at this step.

What you're looking for: has this question been decided before; which decision does the new one reverse or refine; which neighbouring records should it link to.

Step 3. Number

The next free sequence number, with the same digit count as its neighbours (0013-, not 13-). File name — a short kebab-case of the decision's essence, in the language of the other records in the directory.

ls adr/ | sed -E 's/^([0-9]+).*/\1/' | sort -n | tail -1

Step 4. Format — strictly

# [Title: the decision itself, not the topic]

Date: YYYY-MM-DD
Firmness: tentative         ← tentative | settled
Revisit if: [condition]     ← mandatory for tentative
Supersedes: NNNN            ← only if it reverses one
Status: Amended by NNNN     ← added later, when this record gets refined

## Context

Why the question came up at all. Facts, numbers, investigation. What broke or
what was missing. Rejected alternatives go here too, and **why** they were
rejected: in six months this is all that will be left.

## Decision

What was decided. Affirmative, present tense. Numbered points if the decision
is compound.

## Consequences

Pros, cons, technical consequences. Cons are mandatory — an ADR without cons
is not a decision, it's an advertisement. A separate "Follow-up:" line — the
questions this decision opens that will have to be closed separately.

## Record

> "verbatim quote from the conversation" — user
> "a doubt nobody answered" — user (unresolved)

The title is a statement: not "The live table transport question", but "The live table is delivered over SSE".

Firmness

The prose of an ADR always reads more confident than the conversation was. Firmness is how a future reader tells a commitment from an experiment.

  • settled — the user committed, and no raised doubt was left open.
  • tentative — "let's go with X for now", "let's try", an open objection, a choice made under time pressure. When unsure, it's tentative.

Revisit if: is a concrete, checkable trigger ("a second API client appears", "p95 latency over 200 ms"), not "if needed". A tentative decision without one is just a shrug.

Record

The Context is your retelling; the Record is the evidence. Two to five verbatim quotes from the conversation, mostly the user's words.

  • Every doubt or objection that was raised and not refuted goes in, marked (unresolved). Quoting only the line that sealed the decision defeats the purpose.
  • Verbatim, in the original language. If you can't quote it, don't paraphrase it into quotation marks — put it in Context instead.
  • No secrets, tokens, or third parties' personal details.
  • Written after the fact with no conversation to quote — say so: Record: none, reconstructed from code. That, too, tells the reader something.

Step 5. Repair the history

When a new decision touches an old one — edit the old file, don't leave it lying:

  • reverses it entirely → old gets Status: Superseded by NNNN, new gets Supersedes: NNNN;
  • refines or narrows it → old gets Status: Amended by NNNN (in parentheses — what exactly).

The line goes right after Date:. The old text is not rewritten: it remains evidence that back then people thought otherwise. That's the whole value.

Step 6. Say it in chat

One line: number, title, what was touched. Don't retell the content — it's in the file.

Precedent, not scripture

When an existing ADR comes up — the user questions it, or it blocks what's being asked — don't defend it on reflex. Read its Firmness, Revisit if and Record first.

  • tentative, or its Revisit if has fired — the question is open. Say so.
  • The facts in its Context no longer hold — point that out; the decision stood on them.
  • No Firmness line — the record predates the field. Its confidence is unknown, not settled.
  • settled and still true — cite it, and say what new fact would justify reopening it. That's stare decisis; refusing to discuss it is dogma.

Pitfalls

  • A recap instead of a decision. "We discussed options, leaning towards…" is not an ADR. If no decision has been made, there's nothing to write; come back when it is.
  • Empty Context. Six months later, "we decided X" without "because Y" reads as arbitrary, and the argument starts all over — exactly what this skill exists to prevent.
  • Retroactive edits. Changed your mind — a new ADR with a link, not an edit of the old text. The only thing appended to an old file is the Status line.
  • Smoothing over doubt. "Let's try SSE for now" written up as "SSE was chosen because…" with Firmness: settled. Next session treats a guess as law.
  • A cherry-picked Record. Only the quotes that support the decision. The objections are the part a future reader needs most.
  • Reading every ADR. Expensive and almost always unnecessary. Titles, then two or three relevant files.
  • ADRs about taste. A button colour is not a decision. A decision is something people will be tempted to come back to and re-argue.
  • Context pushed out into the issue tracker. Long rationales, slice breakdowns and rejected options live in the ADR. The ticket carries a link to the number, not a retelling.

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.