/adr-kit:audit [--whole-codebase | a diff path; defaults to the working tree]from adr-kit
Runs adr-lint and adr-judge together to audit Architecture Decision Records and check code compliance. Reports whether decisions are well-formed and whether the code follows them.
Ships in adr-kit. 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.
Reply in the language the user writes in; default to English. Keep command output, identifiers, paths, and ADR file content unchanged.
Use $ARGUMENTS to pick the scope. Empty means the whole codebase, because
that is the question people mean when they ask whether the project is still on
course. Read-only: this skill reports, it never edits an ADR or a source file.
Two answers are needed and either one alone is misleading:
bin/adr-audit runs adr-lint and adr-judge together so the caller does not
have to know the answers come from two binaries.
# The whole codebase: every tracked file judged as if newly added, so forbid
# rules reach code no recent diff touched.
"$ADR_KIT/bin/adr-audit" --whole-codebase --adr-dir docs/adr --repo-root .
# A specific diff: the hook and pull-request case.
git diff --unified=0 origin/main...HEAD | "$ADR_KIT/bin/adr-audit" --diff -
# Machine-readable, for a CI job or another tool.
"$ADR_KIT/bin/adr-audit" --whole-codebase --format json
Add --llm to include the judge's LLM pass for llm_judge ADRs. It costs
money and time proportional to the number of opted-in ADRs, so confirm with the
user before adding it — never on your own initiative.
The two failures have different owners, so they have different codes:
| Exit | Meaning | Who fixes it |
|---|---|---|
| 0 | on course | nobody |
| 1 | the code violates an Accepted ADR | the author of the code, or supersede the decision |
| 3 | the ADR set fails its own gates | the author of the records |
| 4 | both | both, and report them separately |
| 2 | the audit could not run | tooling or configuration; it did not answer "no" |
Never collapse 1 and 3 into "the audit failed". Say which one, and to whom it belongs. Exit 2 is not a finding: report that the audit could not run and why, and do not present its silence as a pass.
/adr-kit:adr.
Never work around an Accepted ADR silently./adr-kit:grill ADR-NNN for a Proposed record. An Accepted record's body is
immutable: the honest routes are a supersession or a retirement, never a
rewrite.By default the lint half runs completeness, audit and consistency -- the
structural gates, which have exact answers. A green audit at the default set
is not a statement that the records are sharp, and this command's own
rationale turns on that distinction: a clean judge over vague ADRs proves
nothing, because vague rules cannot be violated.
--gates passes a set through to adr-lint. --gates all adds schema,
evidence, clarity, policy and quality.
| Question | Gate set |
|---|---|
| Are the records structurally sound? | default |
| Are they sharp enough to be violated? | --gates all |
| Would they survive release? | --strict |
Say which set produced the answer when you report it. "The audit is green" is a different claim depending on the set, and the reader cannot tell from the verdict line alone.
/adr-kit:judge judges one staged diff at commit time. Narrower and faster./adr-kit:lint checks the records alone./adr-kit:guardian runs a version of this combination on a cadence./adr-kit:audit is the on-demand form a person, a hook or a CI job can
simply demand, and the only one that reaches code no diff has touched.bin/adr-discover is a different thing despite the old name: it is the init
scanner that looks for decision-shaped artefacts. It does not audit anything.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
adr, architecture-decision-records, code-compliance, governance, audit
npx claudepluginhub rvdbreemen/adr-kit --plugin adr-kit17 skills in this plugin
/adrCreate or review Architecture Decision Records. Use for ADRs, architecture decisions, durable trade-offs, new dependencies, contracts, or patterns./contextFind ADRs relevant to a task before implementation. Use for ADR context, governing decisions, architecture constraints, or why a design exists. Read-only./grillInteractively complete, reconstruct, or revalidate Architecture Decision Records from repository facts, pull requests, git ranges, chat logs, or documents. Use when an ADR is Proposed, rationale or alternatives are uncertain, shipped code needs a decision record, or an Accepted decision may need supersession or retirement.Other plugins' skills for the same job