From claude-leverage
Creates a numbered MADR ADR in `docs/adr/` documenting load-bearing architectural decisions (database, framework, auth model, integration choice). Prompts for context, decision, and alternatives, then updates the index.
How this skill is triggered — by the user, by Claude, or both
Slash command
/claude-leverage:adr-new [title] [--status proposed|accepted] [--noninteractive][title] [--status proposed|accepted] [--noninteractive]This skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Creates a new numbered ADR file in `docs/adr/` and adds an entry to the
Creates a new numbered ADR file in docs/adr/ and adds an entry to the
index. ADRs are the lightweight memory of why the architecture looks
the way it does — without them, six months from now nobody (human or
agent) remembers why we chose A instead of B.
The convention is documented in
docs/adr/README.md: MADR-flavored,
numbered, immutable status (proposed → accepted → deprecated /
superseded).
Find target dir. Default docs/adr/ from the current repo root
(via git rev-parse --show-toplevel). If no docs/adr/ exists,
ask the user: "create it now?". If yes, also copy
templates/adr-template.md if shipped (the plugin ships its own
template under docs/adr/template.md — useful as a reference even
when the target repo doesn't have one yet).
Pick next number. List existing docs/adr/NNNN-*.md files,
parse the leading number, take the max + 1. Pad to 4 digits.
Get the title.
$ARGUMENTS has a positional, use it as the title.--noninteractive, fail if no title was given (we won't
hallucinate one).0042-replace-polling-with-webhooks.md.Ask for context (skip in --noninteractive):
status: proposed (default) or accepted (if
the team already decided in conversation and just needs the
record).Generate the file at docs/adr/<NNNN>-<kebab-title>.md using
the MADR template (the plugin ships
docs/adr/template.md for reference).
Substitute:
NNNN → resolved numberTitle → user-provided titleYYYY-MM-DD → today (date +%Y-%m-%d)Status → resolved value<TODO: fill in> placeholders if user skipped themUpdate the index. Append the new ADR to the bulleted list in
docs/adr/README.md (or create it if it doesn't exist). Preserve
the existing index style:
- [NNNN — Title](NNNN-kebab.md)
Report. Print the new file path and remind the user that ADRs
are immutable once accepted — future revisions are new ADRs
superseding the old one, not edits.
accepted. Edits to an accepted ADR
should be limited to typos and link fixes. Substantive changes ship
as a new ADR that explicitly supersedes the old one
(Status: superseded by NNNN).--status accepted — start the ADR as accepted rather than
proposed. Use when the decision is already settled and you're just
recording it.--noninteractive — skip prompts; requires a title positional and
fills the context/decision/alternatives with <TODO> placeholders.--dry-run — print what would be written, write nothing.Write an ADR for:
Don't write an ADR for:
If you're not sure: write it. Three sentences in docs/adr/0042.md
is cheap; re-arguing the same point six months later is expensive.
docs/specs/
document (or superpowers:brainstorming), not an ADR.Status: superseded by NNNN.npx claudepluginhub filip-podstavec/claude-leverage --plugin claude-leverageCreates Architecture Decision Records (ADRs) with title, status, and MADR/basic/extended templates. Auto-numbers sequentially, prompts for context/options/rationale, writes to docs/decisions/ or docs/adr/.
Records concise Architecture Decision Records (ADRs) capturing what was decided and why, for decisions that are hard to reverse, surprising without context, or involve real trade-offs.
Generates Architectural Decision Records (ADRs) in MADR, Nygard, Alexandrian, or project formats. Researches directory for conventions, gathers context, numbers sequentially, validates, and saves. Use for documenting technical decisions.