adr

adr is a command for Claude Code from HigorAlves/orc. It costs 42 tokens per session (861 once invoked), scanned A, original, MIT.

A command for writing an Architecture Decision Record (ADR), a dated document that explains an important, lasting software-design choice and its alternatives.

In plain words
What is it for?
Use it to create a numbered ADR, supersede an existing ADR, or change an ADR's status.
Why use it?
It gives architectural decisions a consistent record and can mark an older decision as replaced.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: $skill-name invocation.

Good fit Use it to create a numbered ADR, supersede an existing ADR, or change an ADR's status.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/higoralves/orc/adr
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.

Clone the repo
git clone --depth 1 https://github.com/HigorAlves/orc

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/higoralves/orc/adr/github.svg)](https://agentmods.dev/commands/higoralves/orc/adr)
Your own site
<a href="https://agentmods.dev/commands/higoralves/orc/adr"><img src="https://agentmods.dev/badge/commands/higoralves/orc/adr/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.

agentmods 80×15 button for adr

Your own site · 80×15
<a href="https://agentmods.dev/commands/higoralves/orc/adr"><img src="https://agentmods.dev/badge/commands/higoralves/orc/adr.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 42 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 861 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00042 $0.00861
Opus 5.5 $0.00017 $0.00344
Sonnet 5.5 $0.00008 $0.00172
Haiku 4.5 $0.00004 $0.00086

Measured 25d ago against content hash dbe6308daea9, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 25d 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.

codex/orc/content/commands/adr.md · 81 lines

How it starts

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

$orc-adr

Author a new ADR (or update an existing one's status) following orc-adr-writing.

Arguments

  • <title> — optional. Short noun phrase describing the decision (e.g. "use Postgres for primary store"). If omitted, prompts via the available user-question tool (or ask in chat).
  • --supersede NNNN — optional. Marks an existing ADR as superseded and authors a new one whose Context cites the predecessor.

Workflow

Phase 1 — Confirm an ADR is warranted

Invoke orc-adr-writing. Apply its "all of these are true" test:

  • architectural (multi-module / boundary / convention)
  • non-obvious (real alternatives exist)
  • durable (≥ 3 months expected lifetime)

If borderline, print the Gate headline (**⛔ Gate — is this ADR-worthy?**, one line on which criterion is borderline, per orc-callouts), then the available user-question tool (or ask in chat):

  • "Yes, write the ADR"
  • "Smaller — propose a single-paragraph design note in the relevant code instead"
  • "Skip — this isn't really an architectural decision"

Phase 2 — Locate docs/adr/

If the directory doesn't exist, create it and add a one-line docs/adr/README.md linking to the convention. Find the next sequence:

ls docs/adr 2>/dev/null | grep -E '^[0-9]{4}-' | sort | tail -1

Increment to get the new four-digit sequence (0001 if first).

Phase 3 — Draft

Author docs/adr/NNNN-<kebab-title>.md using the template from orc-adr-writing. Fill every section with real content. Don't leave TBD or placeholder text — delete sections that genuinely have no content.

If --supersede NNNN was passed:

  1. Read docs/adr/NNNN-*.md. Update its status to Superseded by <new-NNNN> and bump its date.
  2. The new ADR's Context MUST cite the predecessor and explain why the situation changed.

Phase 4 — Review

Print the Gate headline (**⛔ Gate — ADR review**), show the draft, then the available user-question tool (or ask in chat):

  • "Looks good — commit"
  • "Edit before commit" (loop back to Phase 3)
  • "Save as draft (Status: Proposed)" — commits with status flag flipped

Read the full file on GitHub · 81 lines

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. 25d ago Changed dbe6308daea9
  2. 3mo ago First seen · 81 lines · 42 tokens per session scan A fc0d11558527

Subscribe to this mod's changes

adr is a command published in the GitHub repository HigorAlves/orc (7 stars, last pushed 3d ago), licensed MIT. It adds 42 tokens to every session and 861 once invoked, about $0.0002 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-08-31.

Related

adr compared with commands from other repositories

adr next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
adrHigorAlves/orcCommand73d agoMITA42Claude Code
parallax-statusMaster0fFate/parallax-claudecodeCommand01mo agoMITA13Claude Code
checklistgithub/spec-kitCommand153ktodayMITA13Claude Code
clarifygithub/spec-kitCommand153ktodayMITA27Claude Code
analyzegithub/spec-kitCommand153ktodayMITA26Claude Code
specifygithub/spec-kitCommand153ktodayMITA13Claude Code
convergegithub/spec-kitCommand153ktodayMITA35Claude Code