Getting it into your agent
This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.
/plugin marketplace add melodic-software/claude-code-plugins/plugin install architectureWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/melodic-software/claude-code-plugins/record-decision)<a href="https://agentmods.dev/skills/melodic-software/claude-code-plugins/record-decision"><img src="https://agentmods.dev/badge/skills/melodic-software/claude-code-plugins/record-decision/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/melodic-software/claude-code-plugins/record-decision"><img src="https://agentmods.dev/badge/skills/melodic-software/claude-code-plugins/record-decision.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00129 | $0.04592 |
| Opus 5.5 | $0.00052 | $0.01837 |
| Sonnet 5.5 | $0.00026 | $0.00918 |
| Haiku 4.5 | $0.00013 | $0.00459 |
Grade A, and why
record-decision 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 10d ago.
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.
How it starts
The opening of the file, as written. The whole thing — 317 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Repository context. Gather first
Collect these with individual Bash calls, one command per call, never combined into a single invocation:
- Current branch,
git branch --show-current - Working tree status (empty = clean),
git status --porcelain | head -10
The pipe is the bound and belongs in the command. A read-time cap ("read only the first 10 entries") is not a bound.
- Pointer: when deciding how much of a command's output reaches context, fetch tools reference § Output limits live.
Treat a failure (not a repository, git unavailable) as an unknown value and carry on. Keep these as separate body Bash calls, one plain command each, rather than pre-compute lines.
- Pointer: when deciding whether a git command can run as a pre-compute line or in a worktree-isolated session, fetch skills § How injected commands run and worktrees § How Claude Code enforces isolation live.
Variables
Arguments: $ARGUMENTS
| Action | Does |
|---|---|
| (bare) | Records one decision: Steps 1 to 4. The whole argument is the decision text or a file path |
audit |
Lists retire candidates and writes nothing: Audit |
audit --repo <repo> ... |
The audit across several repositories: Several repositories |
Only audit as the first word selects the audit; any other first word is part of the decision.
--repo and the other target forms in
${CLAUDE_PLUGIN_ROOT}/reference/target-scope.md
are accepted only after audit; the default stays this repository.
Purpose
Record one architecture decision into whatever ADR convention the repository already has. The convention is discovered and followed, never prescribed: this skill owns discovery, the next identifier, the record shape, the single write, and retiring the record a decision replaces. Where no convention exists it reports what it searched, recommends the default template beside other shapes, and defers to the human rather than writing one.
What ships with it
11 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.
- evals/evals.json 15 KB
- evals/fixtures/existing-convention/docs/adr/0001-use-postgres-for-the-primary-store.md 669 B
- evals/fixtures/existing-convention/docs/adr/0002-serve-the-api-behind-a-single-gateway.md 802 B
- evals/fixtures/existing-convention/docs/adr/0003-adopt-structured-json-logging.md 688 B
- evals/fixtures/existing-convention/docs/adr/README.md 532 B
- evals/fixtures/inferred-shape/docs/decisions/ADR-007-cache-session-tokens-in-redis.md 445 B
- evals/fixtures/inferred-shape/docs/decisions/ADR-008-batch-outbound-webhooks.md 433 B
- evals/fixtures/inferred-shape/docs/decisions/ADR-008-pin-the-node-runtime-to-lts.md 425 B
- evals/fixtures/no-convention/docs/README.md 297 B
- evals/fixtures/no-convention/src/notes.md 331 B
- templates/adr.md 546 B
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.
- 10d ago Changed · +23 lines 3219d452a915
- 13d ago Changed · +29 lines 248ec1c7cba3
- 14d ago Changed 80be51c68583
- 17d ago Changed · -5 lines 12cb6352abbd
- 18d ago Changed · +10 lines f6e80d2fb4ef
- 19d ago Changed · +92 lines · +37 tokens per session 473777cd5374
- 1mo ago Changed · +8 lines a369688face1
- 1mo ago Changed · +4 lines 4534621979e3
- 1mo ago Changed · -2 tokens per session 577044e2de6a
- 1mo ago First seen · 156 lines · 94 tokens per session scan A 9841ed40ead8
record-decision is a skill published in the GitHub repository melodic-software/claude-code-plugins (33 stars, last pushed today), licensed MIT. It adds 129 tokens to every session and 4,592 once invoked, about $0.0005 per session on Opus 5.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-09-07.
record-decision compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| record-decisionmelodic-software/claude-code-plugins | Skill | 33 | today | MIT | A | 129 | Claude Code |
| documentation-writersystempromptio/systemprompt-marketplace | Skill | 2 | 1mo ago | none | A | 54 | Claude Code |
| imagegenopenai/codex | Skill | 137k | today | Apache-2.0 | A | 113 | Codex |
| playwright-climicrosoft/playwright | Skill | 101k | today | Apache-2.0 | A | 19 | Claude Code |
| browser-automationopenclaw/openclaw | Skill | 395k | today | MIT | A | 36 | Claude Code |
| systematic-debuggingobra/superpowers | Skill | 330k | 2d ago | MIT | A | 21 | Claude Code |
| free-llm-apismnfst/awesome-free-llm-apis | Skill | 14k | yesterday | CC0-1.0 | A | 113 | Claude Code, Codex |