adr

A tool for managing Architecture Decision Records, or short documents that record important software design choices and their reasoning. It follows the MADR 4.0 format and checks links between decision records.

In plain words
What is it for?
Use it to create, list, replace, retire, or audit decision records in a project.
Why use it?
It keeps architectural choices organized and makes their status, numbering, and references consistent. This helps teams find why a design was chosen and identify outdated links.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/musingfox/cc-plugins/adr
Any agent
npx skills add musingfox/cc-plugins --skill adr
Clone the repo
git clone --depth 1 https://github.com/musingfox/cc-plugins

Made for: Claude Code, Codex.

Per session 54 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,252 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00054 $0.02252
Opus 5 $0.00027 $0.01126
Sonnet 5 $0.00011 $0.00450
Haiku 4.5 $0.00005 $0.00225

Measured yesterday against content hash b438b0d8f790, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

adr scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

adr/skills/adr/SKILL.md · 271 lines

How it starts

The opening of the file, as written. The whole thing — 271 lines — stays where its author put it; the contents beside it link to each section on GitHub.

ADR Lifecycle Management

Manage Architecture Decision Records using MADR 4.0 format with full cross-reference consistency enforcement.

Do NOT use when:

  • User is just discussing architecture without wanting formal ADR management
  • User is directly editing an ADR file without asking for lifecycle help

Directory Detection

Auto-detect the ADR directory by scanning (in order):

  1. docs/decisions/
  2. docs/adr/
  3. adr/
  4. decisions/

Use Glob: {docs/decisions,docs/adr,adr,decisions}/[0-9][0-9][0-9][0-9]-*.md

If no directory found and user wants to create an ADR, ask which location to use.

MADR 4.0 Format

Frontmatter

---
status: proposed
date: YYYY-MM-DD
decision-makers: ""
---

Status values: proposed | accepted | deprecated | superseded by [ADR-NNNN](file)

File Naming

  • Pattern: NNNN-kebab-case-title.md
  • 4-digit zero-padded number
  • Scan existing files to determine next number

Template

Read ${CLAUDE_PLUGIN_ROOT}/skills/adr/references/madr-template.md for the full MADR 4.0 template.


Operations

1. Create New ADR

  1. Detect ADR directory (or ask user to choose if none exists)
  2. If this is the first ADR in the directory, create the bootstrap ADR first (see below)
  3. Scan existing [0-9][0-9][0-9][0-9]-*.md files, determine next number
  4. Generate kebab-case filename from the title
  5. Read the template from ${CLAUDE_PLUGIN_ROOT}/skills/adr/references/madr-template.md and apply with today's date
  6. Search existing ADR titles for keyword overlap and suggest related ADRs
  7. Present the created file path

Bootstrap ADR (First Use)

When no ADRs exist yet, read ${CLAUDE_PLUGIN_ROOT}/skills/adr/references/bootstrap-adr.md and create 0000-use-madr.md from its content, replacing {today} with the current date.


2. List ADRs

  1. Glob for [0-9][0-9][0-9][0-9]-*.md in the ADR directory
  2. Read each file's YAML frontmatter (status, date) and first # heading
  3. Display as table:

Read the full file on GitHub · 271 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 271 lines · 54 tokens per session scan A b438b0d8f790

Subscribe to this mod's changes

adr is a skill published in the GitHub repository musingfox/cc-plugins (2 stars, last pushed 2d ago), licensed MIT. It adds 54 tokens to every session and 2,252 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

next-cache-components-adoption

Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…

vercel/next.js · 95 tokens

babysit-pr

Babysit a GitHub pull request after creation by continuously polling review comments, CI checks/workflow runs, and mergeability state until the PR is merged/closed or user help is required. Diagnose failures, retry likely flaky failures up to 3 times, auto-fix/push branch-related issues when appropriate, and keep…

openai/codex · 114 tokens

imagegen

Generate or edit raster images when the task benefits from AI-created bitmap visuals such as photos, illustrations, textures, sprites, mockups, or transparent-background cutouts. Use when Codex should create a brand-new image, transform an existing image, or derive visual variants from references, and the output…

openai/codex · 113 tokens

cpu-profile-analysis

Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…

microsoft/vscode · 71 tokens

next-cache-components-optimizer

Drive a Next.js route to instant navigation by setting up an agentic loop, under Cache Components / PPR, on initial load (hard navigation) and client-side navigation (soft navigation). Encode the goal as a failing @next/playwright instant() e2e and work it to green, one verified route at a time; the shipped test then…

vercel/next.js · 170 tokens