agentleFS
ku5icku5ic/claude-kit/skills/write-adr/SKILL.md

write-adr

Skill2 starsChanged 14 days agoMITView on GitHub

An architecture decision record in the project's own format, every sentence traced to a source

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

1 rule. 0 are common, 0 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 19 edited versions we read keep these.

  • 0

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

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

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

    Read the project's own ADR rules: its CLAUDE.md and CONTRIBUTING (when to write one, numbering, amend or supersede, which date), and the …

    line 33

“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-adr

Record an architecture decision the way the project records them, with options that include the cheapest one and a source for every sentence.

Tone and shape: skills/kit-rules/reference/output.md section 4, which wins over this file; the sections this file defines stay.

<!-- chat: only In claude.ai chat, the arguments are the user's message and the material is what they pasted. Nothing can be run: if the thread, the code, or an earlier ADR this needs isn't in the conversation, ask for it. -->

Loading this skill isn't enough. Before the step a row names, read its file.

BeforeRead
Drafting the ADR, or deciding whether one is owedreference/adr-practice.md

The project's rules first

<!-- chat: skip -->
  1. Read the project's own ADR rules: its CLAUDE.md and CONTRIBUTING (when to write one, numbering, amend or supersede, which date), and the ADR folder. kit adrs lists the accepted ones, and fails when the project has no ADR folder.
  2. The template, first match wins: templates/template.md in the ADR folder (adr-tools), adr-template.md there (MADR), else the headings of the newest ADR.
<!-- chat: end -->

The project's rules win. With none, this bar holds:

  • An ADR records an architecture decision, or a change in what the system does for its users. A fix, a tuning, or a refactor gets none: say so, and stop.
  • A decision that replaces an accepted one gets a new ADR that supersedes it. An accepted ADR changes only in its status line.
  • The status is Proposed until the user says the decision is accepted.

Procedure

<!-- chat: skip -->

A linked thread, ticket, or doc is resolved as skills/investigate step 0 describes. kit adrs <path> lists the accepted ADRs on each path the decision touches.

<!-- chat: end -->
  1. Source: the arguments, and the thread, ticket, or doc they link, read whole.
  2. Precedent: the accepted ADRs on the paths the decision touches, each read. One this decision contradicts is superseded by it, and Context says so.
  3. Context: the forces behind the decision. Each sentence traces to a commit, a PR or thread, a doc, or the code, and Context names the source. A sentence with no source gets asked about or cut (skills/kit-rules/reference/evidence.md section 1).
  4. Options: at least two, one of them the cheapest that could work (skills/kit-rules/reference/change.md section 7), each with what it costs and what it gives, from the sources. A template with no options section takes them in Context.
  5. Decision: the chosen option in one paragraph, active voice ("We use X"). Paths and folders it governs go in backticks, so a later edit of them finds this ADR.
  6. Consequences: what gets easier, what gets harder, and what's owed now.
<!-- chat: skip -->

Output file

  • With an .adr-dir and adr on PATH: VISUAL=true adr new <title>, with -s <n> for each ADR it supersedes, then fill the file it prints with Edit.
  • Otherwise: the next number in the ADR folder, named the way its files are.
  • The date follows the project's rule, else today.

Reply with the path, and one line per sentence still lacking a source.

<!-- chat: end --><!-- chat: only In claude.ai chat, print the ADR in the reply, in the template's shape, then one line per sentence still lacking a source. --><!-- chat: skip -->

Arguments: $ARGUMENTS

<!-- chat: end -->

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.