adr

adr is a command for Claude Code from kid-sid/claude-spellbook. It costs 0 tokens per session (505 once invoked), scanned A, original, MIT.

A command for turning a discussion or technical decision into an Architecture Decision Record, a written record of why an architecture choice was made.

In plain words
What is it for?
Use it to document architectural choices, including the options considered and the selected approach.
Why use it?
It captures the context, alternatives, decision, and consequences so the reasoning remains available later.

Command for Claude Code

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 commands/kid-sid/claude-spellbook/adr
Clone the repo
git clone --depth 1 https://github.com/kid-sid/claude-spellbook

Made for: Claude Code.

Wrote 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.

agentmods badge for adr

README.md
[![agentmods](https://agentmods.dev/badge/commands/kid-sid/claude-spellbook/adr.svg)](https://agentmods.dev/commands/kid-sid/claude-spellbook/adr)
Your own site
<a href="https://agentmods.dev/commands/kid-sid/claude-spellbook/adr"><img src="https://agentmods.dev/badge/commands/kid-sid/claude-spellbook/adr.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 505 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.00000 $0.00505
Opus 5 $0.00000 $0.00253
Sonnet 5 $0.00000 $0.00101
Haiku 4.5 $0.00000 $0.00051

Measured 5d ago against content hash be7e89df91c4, 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 5d 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.

.claude/commands/adr.md · 99 lines

What it actually says

Generate an Architecture Decision Record (ADR) from a discussion or decision.

Instructions

  1. Ask the user (if not already specified):

    • Decision title: short summary of the architectural decision
    • Context: what problem or requirement prompted this decision?
    • Options considered: what alternatives were evaluated?
  2. Generate the ADR using this format:

# ADR-{NUMBER}: {Title}

**Status:** Proposed | Accepted | Deprecated | Superseded by ADR-XXX
**Date:** {YYYY-MM-DD}
**Deciders:** {names or roles}

## Context

{What is the issue that we're seeing that is motivating this decision or change?}

## Decision Drivers

- {driver 1: e.g., scalability requirement}
- {driver 2: e.g., team expertise}
- {driver 3: e.g., time constraint}

## Options Considered

### Option 1: {Name}

{Description}

**Pros:**
- {pro}

**Cons:**
- {con}

### Option 2: {Name}

{Description}

**Pros:**
- {pro}

**Cons:**
- {con}

### Option 3: {Name}

{Description}

**Pros:**
- {pro}

**Cons:**
- {con}

## Decision

{Which option was chosen and why. Be specific about the reasoning.}

## Consequences

### Positive
- {positive consequence}

### Negative
- {negative consequence}

### Neutral
- {neutral consequence}

## Follow-up Actions

- [ ] {action item 1}
- [ ] {action item 2}
  1. Number the ADR:

    • Check docs/adr/ or docs/decisions/ for existing ADRs
    • Use the next sequential number (e.g., ADR-0005)
    • If no ADR directory exists, create docs/adr/ and start at ADR-0001
  2. Save the file as docs/adr/{NUMBER}-{kebab-case-title}.md

  3. Update docs/adr/README.md (create if needed) with a table of all ADRs:

    | ADR | Title | Status | Date |
    |-----|-------|--------|------|
    

Output

  • The generated ADR file
  • Updated ADR index
  • Suggestion to share with the team for review before marking as "Accepted"
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. 5d ago First seen · 99 lines · 0 tokens per session scan A be7e89df91c4

Subscribe to this mod's changes

adr is a command published in the GitHub repository kid-sid/claude-spellbook (187 stars, last pushed 1mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 505 tokens. 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-30.