adr-generator

adr-generator is a skill for Claude Code, Codex from sananthanarayan/skilldrop. It costs 72 tokens per session (763 once invoked), scanned A, original, MIT.

A skill for writing an Architecture Decision Record, a short file that records an important technical choice and why it was made. It supports MADR, a detailed Markdown format, and Nygard's simpler format.

In plain words
What is it for?
Use it to document a chosen design, select the next sequential ADR number, and create a consistently named decision file.
Why use it?
It preserves the reasoning behind an architecture choice, including the alternatives and trade-offs, so future developers do not have to reconstruct the decision.

Skill for Claude CodeCodex

Part of the skilldrop plugin — 51 skills, 4 agents shipped together

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.

agentmods
npx agentmods add skills/sananthanarayan/skilldrop/adr-generator
Any agent
npx skills add sananthanarayan/skilldrop --skill adr-generator
Clone the repo
git clone --depth 1 https://github.com/sananthanarayan/skilldrop

Made for: Claude Code, Codex.

Or install skilldrop, the plugin that ships this one along with the rest of its 51 skills, 4 agents.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/sananthanarayan/skilldrop/adr-generator.svg)](https://agentmods.dev/skills/sananthanarayan/skilldrop/adr-generator)
Your own site
<a href="https://agentmods.dev/skills/sananthanarayan/skilldrop/adr-generator"><img src="https://agentmods.dev/badge/skills/sananthanarayan/skilldrop/adr-generator.svg" alt="Measured on agentmods" height="20"></a>
Per session 72 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 763 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00072 $0.00763
Opus 5 $0.00036 $0.00381
Sonnet 5 $0.00014 $0.00153
Haiku 4.5 $0.00007 $0.00076

Measured 5d ago against content hash ebc2b54533fd, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

adr-generator 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 5d 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.

skills/adr-generator/SKILL.md · 50 lines

How it starts

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

adr-generator

You help the user produce a clean, properly-numbered Architecture Decision Record.

How to respond

  1. Pick the format. Default to MADR (richer, has decision drivers + pros/cons per option). Use Nygard when the user explicitly asks for the "classic" or "simple" ADR, or when the decision is small enough that MADR feels heavyweight.

  2. Gather the essentials. Before drafting, make sure you know:

    • The decision being made (one sentence — what changed)
    • The context / forces (why was a decision needed?)
    • The options that were considered (at least 2 — if only one option exists, this isn't really a decision)
    • Why the chosen option won (the trade-off)

    Ask at most 2 clarifying questions if essentials are missing. Don't fish for nice-to-haves like "decision drivers" — infer reasonable ones from the context.

  3. Number it correctly. ADRs are numbered sequentially starting at 0001. Ask the user where their ADRs live (commonly docs/adr/ or doc/architecture/decisions/) and find the next number by listing the existing files. If no ADRs exist yet, start at 0001.

  4. Pick the filename. Use the slug form: NNNN-short-title-in-kebab-case.md. Examples:

    • 0001-record-architecture-decisions.md
    • 0007-use-postgres-as-primary-datastore.md
    • 0014-adopt-event-driven-checkout.md
  5. Output. Write the file using the appropriate template, then summarize the decision in 2–3 sentences for the chat.

Templates

Quality bar

  • Status must be one of: Proposed, Accepted, Deprecated, Superseded by ADR-NNNN. Default to Proposed unless the user says it's already been agreed.
  • Title is a noun phrase, not a verb phrase. ✅ "Use Postgres as primary datastore" — ❌ "Decide what database to use".
  • Consequences must include trade-offs, not just upsides. If you can't list a downside, the decision wasn't real.
  • Reference previous ADRs by number, not by URL, so the cross-references survive folder restructures.
  • Don't editorialize. An ADR records what was decided, not what you (the AI) think was wisest.

Read the full file on GitHub · 50 lines

Files

What ships with it

5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 5d ago First seen · 50 lines · 72 tokens per session scan A ebc2b54533fd

Subscribe to this mod's changes

adr-generator is a skill published in the GitHub repository sananthanarayan/skilldrop (2 stars, last pushed 21d ago), licensed MIT. It adds 72 tokens to every session and 763 once invoked, about $0.0004 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-31.

Related

Other skills, from other repositories

openlore-brainstorm

Transform a feature idea into an annotated story using a Domain Sketch or Constrained Option Tree. Use when asked to brainstorm, explore, or shape a feature before implementation.

clay-good/OpenLore · 40 tokens

openlore-execute-refactor

Apply a confirmed .openlore/refactor-plan.md with a test gate after each change. Use when asked to execute or continue an OpenLore refactoring plan.

clay-good/OpenLore · 41 tokens

openlore-plan-refactor

Identify a high-priority refactoring target, assess its blast radius, and write .openlore/refactor-plan.md without changing code. Use when asked to plan or prioritize a refactor.

clay-good/OpenLore · 46 tokens

openlore-debug

Debug with OpenLore structural context, an explicit root-cause hypothesis, and RED/GREEN verification. Use when a bug, failure, or regression needs diagnosis and repair.

clay-good/OpenLore · 39 tokens

openlore-analyze-codebase

Run a full static OpenLore analysis and summarize architecture, call graph, refactoring issues, and duplicate code. Use when asked to analyze, map, or assess a codebase without LLM inference.

clay-good/OpenLore · 48 tokens

team-repair

Re-index OKF v0.2 index.md/log.md files, derive CDR.md, rebuild .skills.json and AGENTS.md in team-ai-directives, migrate v0.1→v0.2 frontmatter, scan for rule conflicts, and verify directive freshness. Use when indexes are inconsistent, orphans are detected, after bulk changes, or for periodic team AI directives…

tikalk/adlc-team-skills · 84 tokens