agentleFS
eugenelimeugenelim/llm-wiki-kit/.claude/skills/new-adr/SKILL.md

new-adr

Skill12 starsChanged 6 months agoMITView on GitHub

Use this skill when the user asks to create, write, draft, or open a new ADR (architecture decision record). Triggers on phrases like "new ADR", "write an ADR for…", "record this decision", "let's ADR this". Do NOT use for RFCs (use `new-rfc`) or feature specs (use `new-spec`).

5 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use release.

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.
  • MicrosoftSkill

    release

    Use ONLY when the user explicitly asks to cut/publish a Huabu desktop release or tag a version. Performs an outward action — bumps the version in apps/desktop/package.json, commits + annotated-tags vX.Y.Z, and pushes the branch + tag. That tag push auto-builds the macOS/Windows installers and publishes a GitHub Release. Provides `status`, `bump`, `tag-push`, and a one-command `run` (bump → tag-push).

    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 5 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. Very specific:

    Create a new ADR in docs/adr/ from the template, with the next sequential number.

    line 8
  2. Distinctive:

    If any of these checks fail, push back rather than proceeding.

    line 22
  3. Very specific:

    Update docs/adr/README.md to add the new ADR to the table.

    line 58

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

Skill: new-adr

Create a new ADR in docs/adr/ from the template, with the next sequential number.

When to invoke

Before invoking, confirm:

  1. The decision is about architecture or shared infrastructure, not a single feature's internals (that's a spec).
  2. The decision has been made or is being formally proposed. ADRs are not a venue for open-ended discussion — that's an RFC.
  3. There is a concrete tradeoff — at least one viable alternative was considered. If there's only one option, you don't need an ADR.

If any of these checks fail, push back rather than proceeding.

Procedure

  1. Find the next number. The bundled helper prints the next 4-digit ordinal — 0001 if no ADRs exist yet, max-plus-one otherwise. It parses the full digit prefix, so a 00099-foo.md correctly yields 0100 (not 0010):

    python3 scripts/next-ordinal.py docs/adr

    (The script lives next to this SKILL.md under scripts/. Python is preferred over ls | grep | sed | sort so the snippet works the same way on native Windows, macOS, and Linux.)

  2. Pick a kebab-case title from the user's description. Keep it short and declarative — 0007-use-postgres-for-primary-store.md, not 0007-decision-about-the-database.md.
  3. Copy this skill's bundled assets/adr.md into docs/adr/ and rename to NNNN-<title>.md. (Paths are skill-relative — the assets/ folder lives next to this SKILL.md wherever your IDE installed the skill.)
  4. Fill in the frontmatter (status Proposed, today's date, deciders).
  5. Help the user draft the four sections (Context, Decision, Consequences, Alternatives). Push back if any section is empty or hand-wavy:
    • Context with no constraints listed → ask what's actually constraining this choice.
    • Decision without a single declarative sentence at the top → write one.
    • Consequences without honest negatives → ask what we're giving up.
    • Alternatives without rejection reasons → ask why each was rejected.
  6. Update docs/adr/README.md to add the new ADR to the table.
  7. Tell the user to mark the ADR Accepted (and commit) once the relevant reviewers have signed off.

Anti-patterns to refuse

  • "Make this ADR say we're definitely using X" before discussion has happened → that's an RFC, not an ADR. Suggest opening one instead.
  • Editing an existing accepted ADR → ADRs are immutable. If a decision is being reversed, write a new ADR that supersedes it, and update the old ADR's status to Superseded by ADR-NNNN (status only — leave the body untouched).

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.