pbf: Skill for Claude Code

.claude/skills/adr-writer/SKILL.md

adr-writer is a skill for Claude Code from maguro/pbf. It costs 101 tokens per session (1,319 once invoked), scanned A, original, Apache-2.0.

A guide for writing an Architecture Decision Record, or ADR: a short document that records an important software design choice and why it was made. It helps turn a rough decision into a record that people outside the original discussion can understand and check.

In plain words
What is it for?
Use it to draft a new ADR, restructure a rough one, or document an architectural decision before treating the record as complete.
Why use it?
It avoids vague decisions and made-up alternatives by requiring the author to gather the decision, constraints, trade-offs, alternatives, and boundaries first. This leaves future developers with a reliable explanation of the choice.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

This is maguro/pbf's own configuration. It tells Claude Code how to work on pbf itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything pbf configures →

View source ↗ maguro/pbf
Reuse

Borrowing it

Nothing to install: this file belongs to maguro/pbf. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/maguro/pbf/master/.claude/skills/adr-writer/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/maguro/pbf

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/skills/maguro/pbf/adr-writer/github.svg)](https://agentmods.dev/skills/maguro/pbf/adr-writer)
Your own site
<a href="https://agentmods.dev/skills/maguro/pbf/adr-writer"><img src="https://agentmods.dev/badge/skills/maguro/pbf/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/skills/maguro/pbf/adr-writer"><img src="https://agentmods.dev/badge/skills/maguro/pbf/adr-writer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 101 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,319 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.00101 $0.01319
Opus 5.5 $0.00040 $0.00528
Sonnet 5.5 $0.00020 $0.00264
Haiku 4.5 $0.00010 $0.00132

Measured yesterday against content hash 0ff5d6763903, 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 yesterday.

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/skills/adr-writer/SKILL.md · 130 lines

How it starts

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

Writing an ADR for this project

An ADR earns its place by outliving the conversation that produced it. It must be readable, and checkable, by someone who was not in the room — including a future agent that has forgotten everything discussed here. That constraint drives every rule below.

Interview before drafting

Don't draft from a one-line request. Ask what's actually needed to write a decision someone else can evaluate cold:

  • What is the decision, stated as a single sentence a reader could act on?
  • What forces made this a decision rather than an obvious default — a constraint, a prior failure, a real trade-off?
  • What alternatives were actually considered — not ones invented to fill out a section. If nothing else was seriously considered, say that; don't manufacture a rejected alternative just because the template has a place for one. A section existing to be filled is not a reason to invent its contents.
  • What does this decision deliberately not cover? An ADR that doesn't state its own boundary invites scope creep in its own body later.

If the answers aren't available, ask the user rather than filling gaps with plausible-sounding content. A confident invented answer is worse than an honest gap, because it reads as settled when it isn't.

The template

Use this section set and order. If docs/adr/ already has ADRs, check two or three of them for exact heading style before writing:

# ADR-NNN: <Title>

## Status
Proposed

## Context
<the forces, the problem, why this needed a decision>

## Decision
<the decision itself, stated plainly>

## Rationale
### <reason 1, as a heading>
### <reason 2, as a heading>
...

## Consequences
### Positive
### Negative
### Accepted Trade-Off

## Rejected Alternatives
### <alternative 1, as a heading>
...

## Non-Goals
<what this decision does not cover, and doesn't try to>

Status starts as Proposed, never Accepted — see docs/adr/README.md's own convention: an ADR moves to Accepted only after a prototype or spike has exercised the decision, not on the strength of the argument alone.

Read the full file on GitHub · 130 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. yesterday First seen · 130 lines · 101 tokens per session scan A 0ff5d6763903

Subscribe to this mod's changes

adr-writer is a skill published in the GitHub repository maguro/pbf (57 stars, last pushed 2d ago), licensed Apache-2.0. It adds 101 tokens to every session and 1,319 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-11-05.

Related

adr-writer compared with skills from other repositories

adr-writer next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
adr-writermaguro/pbfSkill572d agoApache-2.0A101Claude Code
brutileznlgis/opengis-skillsSkill7610d agoMITA107Claude Code, Codex
location-sucheellmos-ai/skillsSkill93d agoMITA40Claude Code, Codex
reiserouteellmos-ai/skillsSkill93d agoMITA31Claude Code, Codex
routecraft-corequinnsprouse/routecraftSkill03mo agoMITA26Claude Code, Codex
osmnx-urbanxjtulyc/awesome-rosetta-skillsSkill356mo agononeA38Claude Code, Codex
imagegenopenai/codexSkill133kyesterdayApache-2.0A113Codex