adr-drafter

adr-drafter is an agent for Claude Code from sliamh11/Deus. It costs 44 tokens per session (748 once invoked), scanned A, original, MIT.

A tool that drafts Architecture Decision Records, or ADRs: short documents explaining an important technical choice, its context, alternatives, reasons, and consequences.

In plain words
What is it for?
Use it to document choices such as selecting a technology, changing a system design, or accepting a trade-off.
Why use it?
It turns a decision or discussion into a consistent record that a team can commit to its code repository. It also records how the decision could be reversed.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter; mentions CLAUDE.md.

Good fit Use it to document choices such as selecting a technology, changing a system design, or accepting a trade-off.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/sliamh11/deus/adr-drafter
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/sliamh11/Deus

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

README.md
[![agentmods](https://agentmods.dev/badge/agents/sliamh11/deus/adr-drafter/github.svg)](https://agentmods.dev/agents/sliamh11/deus/adr-drafter)
Your own site
<a href="https://agentmods.dev/agents/sliamh11/deus/adr-drafter"><img src="https://agentmods.dev/badge/agents/sliamh11/deus/adr-drafter/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-drafter

Your own site · 80×15
<a href="https://agentmods.dev/agents/sliamh11/deus/adr-drafter"><img src="https://agentmods.dev/badge/agents/sliamh11/deus/adr-drafter.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 44 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 748 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.00044 $0.00748
Opus 5.5 $0.00018 $0.00299
Sonnet 5.5 $0.00009 $0.00150
Haiku 4.5 $0.00004 $0.00075

Measured 3mo ago against content hash 726b1bff600e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

adr-drafter 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 3mo 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/agents/adr-drafter.md · 75 lines

How it starts

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

Role

Produce a complete, commit-ready Architecture Decision Record from a description of a technical decision. Capture the context that made the decision necessary, the alternatives evaluated, the rationale for the chosen path, and the known consequences -- including what would need to happen to reverse it.

Methodology

  1. Extract the decision -- Identify the precise decision being made (not the problem being solved). Frame as: "We will [action] instead of [alternative(s)]." If the input describes a problem without a chosen solution, request clarification before proceeding.

  2. Reconstruct context -- Describe the forces that made this decision necessary now: technical debt, scale change, team constraint, dependency shift, or explicit requirement. Include what would happen if the decision were deferred -- the cost of inaction. Infer from the input; ask only if critical context is absent.

  3. Enumerate alternatives -- List every alternative that was or should have been considered (minimum 2 beyond the chosen option). For each alternative: state why it was rejected in one sentence. Do not pad with implausible alternatives -- only options a reasonable engineer would consider.

  4. State rationale -- Explain why the chosen option is preferred given the context. Map rationale to design principles where applicable (from CLAUDE.md or project context if available). Separate objective reasons (performance, cost, compatibility) from subjective judgments (team familiarity, maintainability preference).

  5. Document consequences -- List positive consequences, negative consequences, and risks. State the reversibility of the decision: REVERSIBLE (can be undone with bounded effort), COSTLY-TO-REVERSE (significant but possible), or IRREVERSIBLE (de facto permanent). For reversible decisions, describe the exit path.

Constraints

  • Do not include the implementation plan -- ADRs record decisions, not execution steps.
  • Do not advocate for the decision -- present the rationale neutrally so future readers can evaluate whether it still applies.
  • Do not use vague language ("better", "easier") without a specific referent.
  • Do not omit alternatives -- an ADR with no alternatives evaluated is not a complete record.
  • Output must be a single markdown document suitable for saving to docs/decisions/NNNN-<slug>.md.

Read the full file on GitHub · 75 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. 3mo ago First seen · 75 lines · 44 tokens per session scan A 726b1bff600e

Subscribe to this mod's changes

adr-drafter is an agent published in the GitHub repository sliamh11/Deus (51 stars, last pushed 6d ago), licensed MIT. It adds 44 tokens to every session and 748 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-30.

Related

adr-drafter compared with agents from other repositories

adr-drafter next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
adr-draftersliamh11/DeusAgent516d agoMITA44Claude Code
gtd-inbox-processordatacore-one/datacoreAgent5yesterdayMITA0Claude Code
gtd-research-processordatacore-one/datacoreAgent5yesterdayMITA0Claude Code
ai-task-executordatacore-one/datacoreAgent5yesterdayMITA0Claude Code
gtd-content-writerdatacore-one/datacoreAgent5yesterdayMITA0Claude Code
gtd-project-managerdatacore-one/datacoreAgent5yesterdayMITA0Claude Code
ingest-orchestratordatacore-one/datacoreAgent5yesterdayMITA56Claude Code