/claude-leverage:adr-new [title] [--status proposed|accepted] [--noninteractive]from claude-leverage
Creates MADR-format Architecture Decision Records (ADRs) to document load-bearing architectural choices (database, framework, auth model, etc.) with context, decision, and alternatives. Bootstraps numbered files and updates the index.
Ships in claude-leverage. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
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.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
16 skills in this plugin
/arch-mapUSE WHEN setting up a repo for AI-first work, after a major directory restructure, or when an agent needs structured answers like "which modules are stable?" / "what's the public surface of X?" that the prose AGENTS.md doesn't give cheaply. Bootstraps or refreshes `architecture.yml` at repo root — machine-readable module metadata (path / role / stability / public_surface / depends_on / paired_with / owners). Hand-curated; the skill drafts, the user confirms. See ADR 0005 for why this file lives at root and why YAML over JSON.
/codex-sandboxUSE WHEN setting up Codex CLI in a project, tightening sandbox for prod/CI, or when user asks about Codex permissions. Interactive helper for per-project `.codex/config.toml`: `dev` / `prod` / `custom` profiles, idempotent via markers, preserves unmanaged config below the block. Codex-only artifact.
/conventions-initUSE WHEN setting up a repo for AI-first work (after /init-repo), or when the context-surface hook should start feeding repo conventions to agents before edits. Drafts `conventions.yml` at repo root: per-kind casing (inferred from the code), a vague-name denylist seed, directory roles, and a hand-filled house-rules block. Idempotent — never overwrites a populated file; re-running prints suggested additions for manual merge. Read-only on code; never invents house rules. After writing, run /refresh-context-map so the hook picks it up.
/dynamic-checkUSE WHEN the user explicitly asks to verify that this repo's DECLARED build/test/lint commands actually run ("does the quickstart work?", "validate the commands in AGENTS.md"), typically after /repo-doctor or /repo-doctor --semantic raised suspicion. Executes only commands the repo itself declares (AGENTS.md build/test blocks, README quickstart), with preview + explicit confirmation, denylist tripwire, and timeouts. Advisory — results never enter /repo-doctor's deterministic score (ADR 0012/0013). Opt-in by invocation; never fired by hooks or other skills.
/explain-diffUSE WHEN about to open a PR, when teammate asks "what's in this diff?", or when returning to a branch and needing self-orientation. Three modes: `--for pr|review|self`. Reads `git diff HEAD` (or passed range), returns 3–5 bullet plain-English narration. Read-only — defers security/test concerns to other skills.
/glossary-initUSE WHEN setting up a repo for AI-first work, when an agent hallucinates domain term meaning, or when user asks to bootstrap / extend the repo's domain glossary. Surfaces candidate terms by identifier frequency, asks the user for 1-sentence definitions, writes `GLOSSARY.md` at repo root. Idempotent — re-running adds new terms without overwriting existing ones. Read-only on code; never invents domain meaning. Full Do/Don't list in this SKILL body. See ADR 0005 for why this file lives at root.
npx claudepluginhub filip-podstavec/claude-leverage --plugin claude-leverageOther plugins' skills for the same job