agentleFS
bInference-LabbInference-Lab/bInference/.agents/skills/write-adr/SKILL.md

write-adr

Skill2 starsChanged 2 days agoMITView on GitHub

Writes an architecture decision record. Use when a change rests on a load-bearing decision, or when the specs and rules are silent and a choice must be made.

20 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use write-plan, write-tests and 5 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.
  • Arman-KudaibergenovSkill

    write-plan

    Этот скилл MUST быть вызван когда есть design.md и нужно разбить доработку на атомарные задачи (2-5 мин) с точными путями файлов и критериями проверки в tasks.md. SHOULD также вызывать как промежуточный шаг между brainstorm и subagent-dev. Do NOT использовать для обсуждения идеи — используй brainstorm; для выполнения задач — используй subagent-dev.

    Also in 3 projects that use this

  • SentrySkill

    write-tests

    Write tests following project conventions. Use when adding new tests or modifying existing ones.

    Also in 3 projects that use this

  • NVIDIASkill

    review-code

    Review a code repository for concrete issues in correctness, robustness, security, maintainability, tests, and integration. Use for repository-wide or focused code review where practical engineering judgment and strict scope control matter.

    Also in 3 projects that use this

  • CloudflareSkill

    security-audit

    Security guidance and vulnerability review for codebases, APIs, services, CLI tools, libraries, and daemons. Use for security questions, focused reviews, vulnerability research, security audits, or pen tests. Run the complete workflow only for explicit codebase audit or pen-test requests, full/comprehensive/end-to-end reviews, or requested report artifacts.

    Also in 3 projects that use this

  • MicrosoftSkill

    handoff

    Compact the current conversation into a handoff document for another agent to pick up.

    Also in 4 projects that use this

  • GoogleSkill

    code-review

    Adversarial systems, concurrency, memory-model, and architecture code review protocol. Use this skill whenever asked to review code, PRs, diffs, or branches in Filament.

    Also in 4 projects that use this

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 19 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    No random choices. When the architecture, the specs and docs/ENGINEERING.md are silent, write a short ADR and get the maintainers' yes …

    line 8
  2. Distinctive:

    Keep it short. State facts and numbers, not opinions.

    line 41
  3. Very specific:

    Add its row to the "Decision records" table of docs/DECISIONS.md, with the same status as the file:

    line 46
  4. Very specific:

    When it is accepted, set Status: Accepted in the file and in its row, then run pnpm check:adr --write to lock its text in …

    line 56

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

No random choices. When the architecture, the specs and docs/ENGINEERING.md are silent, write a short ADR and get the maintainers' yes before coding.

1. Number and file

  • The next free number after the last one in docs/DECISIONS.md, four digits. Decisions 0001 to 0097 are the log; records start at 0098: docs/adr/0098-sign-in-the-wallet-queue.md.
  • The title says the decision, not the topic.

2. Write it

# 0098. Sign in the wallet queue

Status: Proposed

## Context

What forces the decision: the problem, the constraints, what the specs and rules say.

## Decision

What we do, in plain sentences.

## Consequences

What gets easier, what gets harder, what must change elsewhere.

## Alternatives

Each option considered and why it lost.

Keep it short. State facts and numbers, not opinions. The four headings appear once each, in this order.

3. Index

Add its row to the "Decision records" table of docs/DECISIONS.md, with the same status as the file:

| <a id="d0098"></a>0098 | Sign in the wallet queue | Proposed | [adr/0098-sign-in-the-wallet-queue.md](adr/0098-sign-in-the-wallet-queue.md) |

4. Decide

  • A proposed ADR waits for the maintainers' yes. Coding starts after it.
  • When it is accepted, set Status: Accepted in the file and in its row, then run pnpm check:adr --write to lock its text in docs/decisions.lock.json.
  • Once accepted, its body never changes. A new decision is a new ADR that supersedes or amends the old one; the old one's status, in its file or its log row, becomes Superseded by NNNN or Amended by NNNN.
  • pnpm check:adr checks the numbering, the headings, the index and the lock.

5. Report

Give the ADR's path and the question the maintainers must answer.

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.