adr-format-madr

adr-format-madr is a skill for Claude Code, Codex from zircote-plugins/adr. It costs 63 tokens per session (1,499 once invoked), scanned A, original, MIT.

A Markdown template for an Architecture Decision Record (ADR), a written record of an important technical choice. MADR focuses on the alternatives considered and their advantages and disadvantages.

In plain words
What is it for?
Use its full, minimal, or bare templates to document technical decisions in Markdown.
Why use it?
It gives developers a version-control-friendly structure for comparing options and recording the final decision and its consequences.

Skill for Claude CodeCodex

Installs and runs on its own, but its text points at files inside its plugin — anything it tells you to read at a ${CLAUDE_PLUGIN_ROOT} path is only there once the plugin is installed. Installing the plugin gets both.

Part of the adr plugin — 12 skills, 7 commands, 3 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/zircote-plugins/adr/adr-format-madr
Any agent
npx skills add zircote-plugins/adr --skill adr-format-madr
Clone the repo
git clone --depth 1 https://github.com/zircote-plugins/adr

Made for: Claude Code, Codex.

Or install adr, the plugin that ships this one along with the rest of its 12 skills, 7 commands, 3 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-format-madr

README.md
[![agentmods](https://agentmods.dev/badge/skills/zircote-plugins/adr/adr-format-madr.svg)](https://agentmods.dev/skills/zircote-plugins/adr/adr-format-madr)
Your own site
<a href="https://agentmods.dev/skills/zircote-plugins/adr/adr-format-madr"><img src="https://agentmods.dev/badge/skills/zircote-plugins/adr/adr-format-madr.svg" alt="Measured on agentmods" height="20"></a>
Per session 63 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,499 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.00063 $0.01499
Opus 5 $0.00032 $0.00749
Sonnet 5 $0.00013 $0.00300
Haiku 4.5 $0.00006 $0.00150

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

Security

Grade A, and why

adr-format-madr 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-format-madr/SKILL.md · 285 lines

How it starts

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

MADR Format

MADR (Markdown Architectural Decision Records) is a lean, developer-friendly ADR format that emphasizes considered options and their pros/cons. It is the default format for the ADR plugin.

About MADR

MADR is:

  • Lean - Focuses on essential decision documentation
  • Markdown-native - Designed for version control
  • Option-focused - Emphasizes alternatives considered
  • Flexible - Offers full and minimal variants

Current version: MADR 4.0.0

Template Variants

Full Template

All sections including optional ones. Use for important decisions requiring comprehensive documentation.

Sections:

  1. Title (H1)
  2. Status
  3. Context and Problem Statement
  4. Decision Drivers
  5. Considered Options
  6. Decision Outcome
  7. Consequences (Good/Bad)
  8. Confirmation
  9. Pros and Cons of the Options
  10. More Information

Minimal Template

Only mandatory sections. Use for simpler decisions or when brevity is preferred.

Sections:

  1. Title (H1)
  2. Status
  3. Context and Problem Statement
  4. Decision Outcome

Bare Templates

Same sections as full/minimal but without explanatory text. For experienced teams who know the format.

Section Guide

Title (Required)

Format: # {Short Title}

The title should:

  • Be a short noun phrase
  • Describe the decision topic
  • Use title case

Examples:

  • # Use PostgreSQL for Primary Storage
  • # Adopt Event-Driven Architecture

Status (Required)

The current status of the decision.

Valid values: proposed, accepted, deprecated, superseded

Include metadata if needed:

## Status

Accepted

Supersedes ADR-0003

Context and Problem Statement (Required)

Describe the context and the problem requiring a decision.

Format options:

  1. Free-form prose (2-3 sentences)
  2. Illustrative story
  3. Question format

Example:

## Context and Problem Statement

Our order processing system experiences high latency during peak hours.
We need to decouple order submission from order processing to improve
responsiveness. The current synchronous architecture cannot scale to
meet projected growth of 5x order volume.

Read the full file on GitHub · 285 lines

Files

What ships with it

3 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 · 285 lines · 63 tokens per session scan A 2a9c9cef2027

Subscribe to this mod's changes

adr-format-madr is a skill published in the GitHub repository zircote-plugins/adr (5 stars, last pushed 18d ago), licensed MIT. It adds 63 tokens to every session and 1,499 once invoked, about $0.0003 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

bootstrap

Scaffold or retrofit documentation-led conventions (AGENTS.md, CLAUDE.md, CONVENTIONS.md, ADR catalogue, plan/ queue, agent/ coordination) into a repo. Use when the user asks to "set up conventions", "bootstrap ADRs", "scaffold the documentation-led layout", "add AGENTS.md and a plan queue", or invokes /bootstrap.…

EvolveHQ/docflow · 118 tokens

audit

Audit a documentation-led repo against its own conventions — contiguous ADR numbering, INDEX sync, plan/ coverage, required sections, status validity, cross-reference resolution, language mandate, ADR-privacy leaks into user-visible code, cross-worktree collisions (duplicate numbers, duplicate plan ownership, same ADR…

EvolveHQ/docflow · 145 tokens

agent-wave

Orchestrate a wave of parallel agents over the plan/todo queue in a documentation-led repo — asks how many agents, the budget (items/waves, with hours as a soft cap), and whether to checkpoint after each wave or run continuously. Spawns isolated worktree subagents, assigns one queue item each, collects results. Use…

EvolveHQ/docflow · 105 tokens

new-adr

Author a new ADR — record a DECISION (what the system must do, or how it is built) in a documentation-led repo. Picks the next contiguous number, chooses the shape (capability vs technology), fills the template, sets status Proposed, regenerates INDEX, updates domain READMEs, handles supersede/deprecate linkage…

EvolveHQ/docflow · 147 tokens

add-convention

Assess and add a CONVENTION (a reusable rule, practice, or naming/process standard) to a documentation-led repo — decides FIRST whether it is worth codifying at all, then routes it to the right home (AGENTS.md hard rule, CONVENTIONS.md guidance, GLOSSARY term, or to /new-adr if it is really a one-off decision). Pushes…

EvolveHQ/docflow · 150 tokens

new-plan

Queue a UNIT OF WORK in the plan/todo queue of a documentation-led repo, tracing to an existing ADR — names the owning ADR(s), scope, exit criteria mapped to acceptance criteria, dependencies, and queue position. Use when the user says "add a plan item", "queue this work", "create a todo for ADR X", "new plan", "put…

EvolveHQ/docflow · 118 tokens