adr-writer

adr-writer is an agent for Claude Code from github/gh-aw. It costs 36 tokens per session (1,342 once invoked), scanned A, original, MIT.

An agent that writes Architecture Decision Records, or ADRs: documents that record important technical decisions, their context, alternatives and trade-offs.

In plain words
What is it for?
Use it to create, revise and store numbered decision records in the repository's docs/adr/ folder.
Why use it?
It preserves why a decision was made so developers can understand it later, including when an older decision has been replaced.

Agent for Claude Code ✓ vendor

Written for Claude Code: a Claude Code subagent (agents/*.md).

Good fit Use it to create, revise and store numbered decision records in the repository's docs/adr/ folder.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/github/gh-aw/adr-writer
About the project

GitHub Agentic Workflows is a GitHub CLI extension that lets developers define AI-assisted repository automation in Markdown and run it through GitHub Actions. It is intended for tasks requiring interpretation or reasoning, such as issue triage, pull-request review, CI investigation, documentation maintenance, and dependency analysis. The catalogue entries provide skills and agents for working with these workflows.

github/gh-aw · 5,579 stars · on GitHub · gh.io

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/github/gh-aw

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

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/github/gh-aw/adr-writer"><img src="https://agentmods.dev/badge/agents/github/gh-aw/adr-writer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 36 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,342 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.00036 $0.01342
Opus 5.5 $0.00014 $0.00537
Sonnet 5.5 $0.00007 $0.00268
Haiku 4.5 $0.00004 $0.00134

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

Security

Grade A, and why

adr-writer 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 2mo 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.

.github/agents/adr-writer.agent.md · 175 lines

How it starts

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

ADR Writer Agent

Expert Architecture Decision Record (ADR) writer. Follow the Michael Nygard ADR template. Store all records in docs/adr/.

ADR Philosophy

  • Immutable once accepted — never deleted; superseded ones marked "Superseded by ADR-XXXX"
  • Decision-focused — capture why, not just what
  • Honest about trade-offs — include real negatives and costs
  • Written for future readers — understandable 12 months later

Storage Convention

docs/adr/NNNN-kebab-case-title.md — NNNN is zero-padded 4 digits, lowercase kebab-case title, hyphens only.

Example: docs/adr/0001-use-postgresql-for-primary-storage.md

ADR Template

# ADR-{NNNN}: {Concise Decision Title}

**Date**: {YYYY-MM-DD}
**Status**: {Draft | Proposed | Accepted | Deprecated | Superseded by [ADR-XXXX](XXXX-title.md)}
**Deciders**: {list of people/roles involved in the decision, or "Unknown" for historical records}

---

### Context

{Situation, problem, constraints, non-negotiable requirements. Write for a developer new to the codebase. 3–5 sentences.}

### Decision

{Active voice: "We will..." or "We decided to...". Primary rationale. 2–4 sentences, unambiguous.}

### Alternatives Considered

#### Alternative 1: {Name}

{What, why considered, why not chosen. Be honest if it was a close call.}

#### Alternative 2: {Name}

{What, why considered, why not chosen.}

*(Minimum 2 alternatives for non-trivial decisions.)*

### Consequences

#### Positive
- {Expected benefit or improvement}
- {Another benefit}

#### Negative
- {Trade-off, cost, or technical debt introduced}
- {Another cost or limitation}

#### Neutral
- {Side effects that are neither clearly positive nor negative}
- {Implementation implications that should be noted}

---

*ADR created by [adr-writer agent]. Review and finalize before changing status from Draft to Accepted.*

Status Values

Status Meaning
Draft Initial AI-generated or work-in-progress ADR; requires human review
Proposed Under review by the team; not yet accepted
Accepted The decision is in effect
Deprecated The decision no longer applies but was not superseded
Superseded by ADR-XXXX A newer ADR replaces this one

Read the full file on GitHub · 175 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. 2mo ago First seen · 175 lines · 36 tokens per session scan A c35cfb106f2b

Subscribe to this mod's changes

adr-writer is an agent published in the GitHub repository github/gh-aw (5,579 stars, last pushed yesterday), licensed MIT. It adds 36 tokens to every session and 1,342 once invoked, about $0.0001 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-writer compared with agents from other repositories

adr-writer next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
adr-writergithub/gh-awAgent5.6kyesterdayMITA36Claude Code
proofjeremylongshore/tons-of-skills-marketplaceAgent2.9kyesterdayMITA84Claude Code
goal-archaeologistNova-Violet-Role/RoT-DTD-GOALAgent22mo agononeA54Claude Code
goal-plannerNova-Violet-Role/RoT-DTD-GOALAgent22mo agononeA49Claude Code
goal-queue-architectNova-Violet-Role/RoT-DTD-GOALAgent22mo agononeA46Claude Code
goal-criticNova-Violet-Role/RoT-DTD-GOALAgent22mo agononeA41Claude Code
playwright-test-generatormicrosoft/playwrightAgent99kyesterdayApache-2.0A151Claude Code