agentleFS
rotnovrotnov/pycc/.claude/skills/adr/SKILL.md

adr

Skill2 starsChanged 3 months agoMITView on GitHub

Use when a hard-to-reverse choice is being made or has just been made — an architecture pick, a policy, a convention worth outliving the session — to record it as a decision entry. Also sets the decisions log up in a project that lacks one, auditing for an existing practice first.

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

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

  • 0

    Common

    Most of the 88 edited versions we read keep these.

  • 2

    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:

    Search the governance file for the practice's vocabulary (decision, ADR, supersede) — a hand-written rule means the project runs its own …

    line 16
  2. Very specific:

    Look for existing directories: docs/decisions/, docs/adr/, adr/.

    line 18
  3. Distinctive:

    Read what is already there for policies your defaults would contradict.

    line 19
  4. Very specific:

    Never rewrite an accepted entry: Write a new one and mark the old superseded by D-0YY — the log records what was believed when, and …

    line 60

“Common” is measured: kept by at least 6 in 10 of the 88 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: record the decision, or set the log up

One file per hard-to-reverse choice, under docs/decisions/, with a generated index. Decisions otherwise survive only in commit bodies, where they are found by archaeology.

If the project has no decisions log yet

Audit before touching anything — an existing mechanism must survive you:

  1. Search the governance file for the practice's vocabulary (decision, ADR, supersede) — a hand-written rule means the project runs its own edition.
  2. Look for existing directories: docs/decisions/, docs/adr/, adr/.
  3. Read what is already there for policies your defaults would contradict.

Any hit → stop and report what exists; their edition wins unless the user explicitly says otherwise. Nothing found → install the bundle (it lives in the harden skill beside this one — use whichever skills root the project has):

uv run .agents/skills/harden/scripts/install-feature.py adr

(.claude/skills/harden/… where that is the root.) Then perform the printed after-steps and finish with --check. The installer injects the one routing line into AGENTS.md — where it lives, what regenerates it, and that this skill is the way to work with it. Never paste mechanics into the governance file; that is how one measured AGENTS.md reached 158 KB.

Writing an entry

New file docs/decisions/D-0XX-<slug>.md, next free number, from docs/decisions/TEMPLATE.md. The frontmatter (id, quoted title, status) is read by the index generator and is not optional.

  • Title is the decision itself, not the topic: "Runs execute inside Docker", not "About sandboxing".
  • Context: the constraint, measurement or failure that forces the choice.
  • Decision: what we do.
  • Alternatives is the load-bearing section: what was rejected and why it lost. No rejected alternative means it was not a decision — say so plainly rather than inventing a strawman.
  • Consequences: what gets easier, what gets harder, what becomes irreversible.

Then regenerate the index — a hand-kept one drifts, and a drifted index reads as authoritative:

uv run .claude/skills/adr/scripts/generate-index.py docs/decisions docs/decisions/INDEX.md

Changing a decision

Never rewrite an accepted entry. Write a new one and mark the old superseded by D-0YY — the log records what was believed when, and rewriting destroys the only thing it is good for. Statuses run proposed → accepted → superseded by D-0YY.

When NOT to file one

Reversible choices, implementation details a diff explains, anything the code already states. A log where everything is a decision is a log nobody reads.

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.