check

A read-only review command for checking whether a plan follows the project's recorded architecture decisions. Architecture decisions are written records explaining important technical choices.

In plain words
What is it for?
Use it to review the paths a plan will modify, identify the decisions governing them, and report any departures.
Why use it?
It helps find when a plan conflicts with an existing decision before code is changed.

Command

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 commands/mbeacom/adrkit/check
Clone the repo
git clone --depth 1 https://github.com/mbeacom/adrkit
Per session 14 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 568 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.00014 $0.00568
Opus 5 $0.00007 $0.00284
Sonnet 5 $0.00003 $0.00114
Haiku 4.5 $0.00001 $0.00057

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

Security

Grade A, and why

check 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 yesterday.

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.

packages/adapters/spec-kit/commands/check.md · 52 lines

How it starts

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

adrkit — check this plan

Runs after a plan exists, and answers one question: does this plan sit inside the decisions already made, or does it quietly cross one?

This is the command the optional after_plan hook offers to run.

User Input

$ARGUMENTS

Steps

  1. Treat any arguments as the repo-relative paths this plan intends to touch. Pass them — the check is only as sharp as the paths it is given. With no arguments it falls back to the plan artifact itself.
  2. Run {SCRIPT} with those paths.
  3. Read the output. It is one or two marker-introduced sections, each followed by a single JSON document:
    • ==> adrkit:check — the CheckOutcome: which decisions govern these paths, and findings for any changed ADR. Always present.
    • ==> adrkit:evaluate — the deterministic evaluator's routing report for this plan. Present only when ADRKIT_SNAPSHOT points at an offline snapshot bundle. When it is absent, the script says so on stderr; that is an omission you have been told about, not a check that passed.
  4. Report back, in the plan's own terms:
    • Every governing decision the plan touches, named by id.
    • Any place the plan departs from one. Say so explicitly. A departure that is deliberate and recorded is fine; a departure nobody noticed is the thing this catches.
    • If the evaluator ran, its routing outcome and any escalation trigger. The evaluator routes; it does not approve. Do not read a clean route as sign-off.
  5. If the plan does cross a decision, the next step is /speckit.adrkit.draft — record the new decision rather than letting the plan silently overrule the old one.

Notes

  • Read-only, and that is load-bearing rather than incidental: this command is reachable from a lifecycle hook, so it must never write.
  • Exit code 1 means findings exist (corpus errors, or the evaluator returned the proposal). The report is still complete. Exit code 2 is a usage error.
  • Configuration: ADRKIT_DIR (corpus, default docs/adr), ADRKIT_SNAPSHOT (evaluator snapshot bundle), ADRKIT_AS_OF (evaluation date, default today UTC), ADRKIT_CLI (explicit path to the adr entry point).

Read the full file on GitHub · 52 lines

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. yesterday First seen · 52 lines · 14 tokens per session scan A 5c307c4c9f05

Subscribe to this mod's changes

check is a command published in the GitHub repository mbeacom/adrkit (11 stars, last pushed 2d ago), licensed Apache-2.0. It adds 14 tokens to every session and 568 once invoked, about $0.0001 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-30.