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.
npx skills add tmj-90/gaffer --skill write-adrgit clone --depth 1 https://github.com/tmj-90/gafferWrote 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.
[](https://agentmods.dev/skills/tmj-90/gaffer/write-adr)<a href="https://agentmods.dev/skills/tmj-90/gaffer/write-adr"><img src="https://agentmods.dev/badge/skills/tmj-90/gaffer/write-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.
<a href="https://agentmods.dev/skills/tmj-90/gaffer/write-adr"><img src="https://agentmods.dev/badge/skills/tmj-90/gaffer/write-adr.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00100 | $0.01336 |
| Opus 5.5 | $0.00040 | $0.00534 |
| Sonnet 5.5 | $0.00020 | $0.00267 |
| Haiku 4.5 | $0.00010 | $0.00134 |
Grade A, and why
write-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 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.
How it starts
The opening of the file, as written. The whole thing — 101 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Write an Architecture Decision Record
An ADR records one architecturally significant decision in Michael Nygard's format — Title, Status, Context, Decision, Consequences — so a future reader can see why, judge whether the reasons still hold, and supersede it deliberately. Keep it to one or two pages, dated, numbered, and immutable once accepted.
Template
# NNNN. <Imperative decision, e.g. "Use SQLite as the control-plane store">
Date: YYYY-MM-DD
Status: Proposed | Accepted | Rejected | Deprecated | Superseded by [NNNN](NNNN-slug.md)
## Context
The forces: requirements, constraints, what hurt, what is uncertain. Facts, not advocacy.
## Options considered
- **<Option A>** — why it lost, concretely.
- **<Option B>** — why it lost.
## Decision
We will <do X>. <Scope: where it applies and where it does not.>
## Consequences
Easier: … Harder: … Now forbidden: … Revisit if: <measurable trigger>.
"Options considered" extends Nygard's format; keep it unless the repo's template omits it.
Procedure
When you cannot write files (planning and spec roles), do not draft the file: put the
decision and its options in your output instead, as a ticket or acceptance criterion in
a plan or a decision clause in a spec, so a delivery ticket writes the ADR.
- Find the convention. Look for
docs/adr/,docs/decisions/,doc/adr/,architecture/decisions, or a numberedNNNN-title.mdseries; match its template, numbering, and status vocabulary. If none exists, createdocs/adr/0001-record-architecture-decisions.md(the convention itself) and write yours as0002-…. Numbers are sequential and never reused.search_lorefor decisions already recorded so you neither duplicate nor silently contradict one. - One decision, one sentence. The title is the decision in the imperative. If you need "and", write two ADRs.
- Context honestly. Enough that a reader in a year understands why the question arose: the requirement, constraint or incident that forced it, with links to the ticket or spec. Include the non-functional forces that actually mattered (consistency under concurrent writers, durability of acknowledged writes, operability, cost).
- Options actually weighed, each with the concrete reason it lost. "Considered Postgres; rejected because the factory must run with zero services on a laptop" is useful; "considered alternatives" is not. Include "do nothing" when it was viable.
- Decision in active voice ("We will…"), with its scope.
- Consequences — all of them. What becomes easier, what becomes harder, what is now forbidden, new risks and how they are mitigated, and a measurable revisit trigger. This is the most valuable section and the most often skipped.
- Set status truthfully. An agent-made choice within the ticket's authority may be
Acceptedand is flagged withrequest_decisionatlog_only/agent_can_choose. A product, architecture or security call you cannot make isProposedand escalated withrequest_decisionashuman_required; do not mark it accepted yourself. To change an accepted decision, write a new ADR that says "Supersedes NNNN" and change only the old one's status line to "Superseded by …". - Link both ways. Reference the ADR from where the decision bites (module header comment, README section, config file) and from the ADR index if the repo keeps one.
- Mirror into memory and evidence. Call
suggest_lorewith kinddecisionsummarising the choice and reason, citing the ADR path in the body (thesourcefield takes only a URL). Evidence the file with therecord-evidenceskill, then stop.
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.
- 2mo ago Changed · +39 lines e4772d5db308
- 2mo ago First seen · 62 lines · 100 tokens per session scan A 910e5317fd12
write-adr is a skill published in the GitHub repository tmj-90/gaffer (1 stars, last pushed 4d ago), licensed Apache-2.0. It adds 100 tokens to every session and 1,336 once invoked, about $0.0004 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-09-28.
write-adr compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| write-adrtmj-90/gaffer | Skill | 1 | 4d ago | Apache-2.0 | A | 100 | Claude Code, Codex |
| bulwark-brainstormQBall-Inc/the-bulwark | Skill | 9 | yesterday | MIT | A | 50 | Claude Code |
| plan-creationQBall-Inc/the-bulwark | Skill | 9 | yesterday | MIT | A | 38 | Claude Code |
| anthropic-validatorQBall-Inc/the-bulwark | Skill | 9 | yesterday | MIT | A | 40 | Claude Code |
| create-subagentQBall-Inc/the-bulwark | Skill | 9 | yesterday | MIT | A | 42 | Claude Code |
| test-auditQBall-Inc/the-bulwark | Skill | 9 | yesterday | MIT | A | 0 | Claude Code |
| code-reviewQBall-Inc/the-bulwark | Skill | 9 | yesterday | MIT | A | 61 | Claude Code |