/adrkit:adr-check [paths-or-plan-file...]from adrkit — decision memory
Checks current changes or a plan against governing Architecture Decision Records (ADRs), reporting a verdict per decision: complies, departs, supersedes, unreconciled, or re-proposes-rejected. Read-only.
Ships in adrkit — decision memory. Installing the plugin adds it to Claude Code.
Try, in order: $ADRKIT_CLI, then ./node_modules/.bin/adr, then adr on
PATH. @adrkit/cli is normally a dev dependency, so a bare adr is not on
PATH in most projects — trying only that and concluding "no CLI is available"
is a false negative. If all three fail, say so and tell the user to install
@adrkit/cli. Never fall back to reading ADR frontmatter by hand: it cannot
expand glob matchers, cannot read inbound @adr markers, and has no exit code,
so it produces an answer that looks complete and is not.
Reconcile $ARGUMENTS against the decision record that governs it.
Establish the target paths.
Arguments that are paths are the target set.
An argument that is a plan or spec document: read it and extract the paths it touches.
No arguments: use the working tree's changed paths — both tracked and untracked:
git diff --name-only HEAD
git ls-files --others --exclude-standard
The second command is not optional. git diff reports only tracked files,
so a brand-new source file — the case most likely to introduce something a
decision governs — is invisible to it, and the check would report a clean
result for a change it never looked at.
If both are empty, say the check is unscoped and ask for paths rather than checking everything and reporting noise.
Run the check.
adr check <paths...> --json
Or call get_decision_context(files: [...]) on the adrkit MCP server.
Add the non-binding context: adr queue for decisions still proposed, and
search_decisions with status: ["rejected"] for anything already ruled
out. Do not use list_superseded for that — it returns only records
whose status is superseded, never a rejected one, so it answers the
rejected-option question with a well-formed empty result. Re-proposing a
rejected option is a finding even when it conflicts with nothing currently
binding.
Run adr lint before you report anything as ungoverned. adr check reports
findings only for the paths you passed it, and a record that fails to parse
or validate is dropped from the corpus entirely — so a malformed ADR that
intends to govern your path yields "No decisions govern the changed files"
at exit 0. Treat "nothing governs this" as unverified whenever adr lint
is not clean, and name the broken records.
Give one verdict per governing decision, never one verdict for the whole
change: complies, departs, supersedes, unreconciled, or
re-proposes-rejected. For anything other than complies, state what the
decision requires, what the work does instead with a path:line, and which
resolution applies — comply, justify the departure in the plan, or supersede
the record.
Close with the honest gaps: paths that resolved to nothing, affects
matchers too coarse to be conclusive, and whether a corpus error finding is
polluting the result.
Interpret the exit code rather than collapsing it: 0 clean; 1 findings, with
a complete report still worth reading — for check that means a changed ADR
record carries an error-severity finding, since a governed source file changing
is reported rather than failed; 2 usage error or unreachable corpus.
Read-only. If the answer is "this needs a new ADR," say so and stop — use
/adr-draft deliberately rather than writing a record as a side effect.
Files this command reads when invoked
What the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
5 commands in this plugin
/adr-backfillResolve the CLI firstAudit code, documentation, and history for potential architecture decisions that were never recorded, then return a deduplicated evidence report. Read-only./adr-contextResolve the CLI firstLoad the architecture decisions that govern the paths you are about to change, before planning against them. Read-only./adr-draftResolve the CLI firstDraft one new ADR from a current decision or a selected backfill handoff. Writes a single new record, as proposed./adr-queueResolve the CLI firstShow the review queue — every decision still proposed, with its SLA state — so open questions are visible before they are planned around. Read-only.npx claudepluginhub mbeacom/adrkit --plugin adrkitOther plugins' commands for the same job