adr-ops

adr-ops is a skill for Claude Code from 0xDarkMatter/claude-mods. It costs 62 tokens per session (3,264 once invoked), scanned A, original, MIT.

A procedure for creating and maintaining Architecture Decision Records, or ADRs. An ADR is a short project document that records one important design choice, its reasons, rejected alternatives, and costs.

In plain words
What is it for?
It is for writing, numbering, indexing, linting, and superseding ADRs when architectural choices constrain future work or have non-obvious reasoning.
Why use it?
It preserves why a system was shaped a certain way so future developers do not have to reconstruct the reasoning from code, commits, or chat history.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions AGENTS.md.

Part of the claude-mods plugin — 103 skills, 3 commands, 3 agents, 4 hooks shipped together

Good fit It is for writing, numbering, indexing, linting, and superseding ADRs when architectural choices constrain future work or have non-obvious reasoning.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/0xdarkmatter/claude-mods/adr-ops
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.

Any agent
npx skills add 0xDarkMatter/claude-mods --skill adr-ops
Clone the repo
git clone --depth 1 https://github.com/0xDarkMatter/claude-mods

Made for: Claude Code.

Or install claude-mods, the plugin that ships this one along with the rest of its 103 skills, 3 commands, 3 agents, 4 hooks.

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-ops

README.md
[![agentmods](https://agentmods.dev/badge/skills/0xdarkmatter/claude-mods/adr-ops.svg)](https://agentmods.dev/skills/0xdarkmatter/claude-mods/adr-ops)
Your own site
<a href="https://agentmods.dev/skills/0xdarkmatter/claude-mods/adr-ops"><img src="https://agentmods.dev/badge/skills/0xdarkmatter/claude-mods/adr-ops.svg" alt="Measured on agentmods" height="20"></a>
Per session 62 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,264 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00062 $0.03264
Opus 5 $0.00031 $0.01632
Sonnet 5 $0.00012 $0.00653
Haiku 4.5 $0.00006 $0.00326

Measured 8d ago against content hash 8d5549ce11b5, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

adr-ops 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 8d ago.

The scan reads SKILL.md. This mod also ships 6 executable files (scripts/adr-index.sh, scripts/adr-init.sh, scripts/adr-lint.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

skills/adr-ops/SKILL.md · 294 lines

How it starts

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

ADR Ops

An Architecture Decision Record (ADR) captures one architectural decision: what was decided, why, what was rejected, and what it costs. ADRs are append-only project memory — they exist so a future maintainer touching a subsystem can recover the reasoning behind its shape without archaeology through git history or chat logs.

This skill encapsulates a battle-tested ADR protocol and generalizes it to any repo. The default location is docs/adr/, but every script takes --dir so a repo can keep records anywhere (docs/decisions/, architecture/adr/, …).


When to write an ADR

Write one when a change has any of these properties:

  • It constrains future options — a boundary, an invariant, a "we will always / never do X" rule that later work must respect.
  • Multiple alternatives were seriously evaluated and the choice is not obvious in hindsight.
  • The rationale is non-obvious from the code — the code shows what, the ADR preserves why.

Write one decision per ADR. If a change bundles two separable decisions, write two.

When NOT to write one

  • A bug fix, refactor, or feature that follows existing architecture without changing it — that is a commit message.
  • A reversible, low-stakes choice — that is a code comment.
  • A point-in-time event with no forward constraint (a benchmark run, an incident write-up) — that is an audit/log entry, not an ADR.

Rule of thumb: if someone could plausibly undo this next month without re-litigating a trade-off, it is not an ADR.


Naming, location, numbering

  • Path: <adr-dir>/ADR-NNN-slug.md (default <adr-dir> = docs/adr).
  • NNN is zero-padded three digits, assigned sequentially: the next number is highest existing + 1. Numbers are never reused, never reordered — a superseded ADR keeps its number forever.
  • slug is short kebab-case naming the subject (oauth-only-auth, per-trial-container).
  • A protocol/how-to file (e.g. 00_*) sorts above the numbered records and is not part of the sequence.

Read the full file on GitHub · 294 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. 8d ago First seen · 294 lines · 62 tokens per session scan A 8d5549ce11b5

Subscribe to this mod's changes

adr-ops is a skill published in the GitHub repository 0xDarkMatter/claude-mods (33 stars, last pushed 15d ago), licensed MIT. It adds 62 tokens to every session and 3,264 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-30.

Related

Other skills, from other repositories

Vizra ADK Memory System

Implement persistent memory, session context, and vector memory (RAG) for AI agents.

vizra-ai/vizra-adk · 24 tokens

cco-patterns

Share learned file patterns across a team — export an anonymized digest of what's usually waste/useful/co-edited, and import a teammate's so a fresh clone benefits day one.

egorfedorov/claude-context-optimizer · 39 tokens

ai-session-search

Search, recover, inspect, export, and analyze local AI session history with AI Session Search (aise) across Claude Code, Claude Desktop local agent, Codex, Cursor, Antigravity, Pi coding agent, Prime Agent, Google AI Studio, and Gemini CLI. Use when asked to "find prior AI work", "recover context after compaction"…

ahundt/ai-session-search · 108 tokens

patterns

This skill should be used when the user says 'patterns', 'what do I keep building?', 'meta', 'trends', or wants cross-project insight into recurring themes and habits. Analyzes fascination index and project history to surface patterns, abandonment trends, and deepest fascinations.

pyros-projects/limitless · 59 tokens

memory-help

This skill should be used when the agent needs a reminder of what the memory system can do, what commands are available, or how the memory system works. Responds to 'memory help', 'what memory commands exist', 'how does my memory work', 'what can I remember', or any confusion about the memory system's capabilities.…

pyros-projects/limitless · 86 tokens

fascination

This skill should be used when the user says 'fascination', 'what am I into', 'patterns', 'show my interests', or wants to browse their fascination index. Displays themes, intensities, and cross-fascination connections in list or Mermaid map mode.

pyros-projects/limitless · 59 tokens