anchors verify
Run EVERYTHING the phase requires: Anchors gates + external tools.
One invocation per PHASE, instead of one command per tool.
Runs the gates declared in anchors.yaml that apply to the requested phase — including theexternal ones (`run:`), which delegate to tsc/eslint/spellcheck. The project declaresAT WHICH MOMENT each gate is charged (`when:`), HOW MUCH it costs (`cost:`)and WHAT it measures (`category:`); this command only obeys.
anchors verify --phase pre-commit --staged # what the hook calls anchors verify --phase ci --all # the full picture anchors verify --category types # only one family
Scope of the external gates (`scope:`): node (default) one execution per file — the gate measures one isolated file batch ONE execution receiving the files in "$@" — eslint, prettier project ONE execution with no targets — tsc, knip, madge (they look at the whole project)
A project/batch scoped gate only runs if THERE IS a relevant file in the cut: aREADME-only commit does not trigger the monorepo's typecheck.anchors verify [flags]| Flag | Default | What it does |
|---|---|---|
--all |
scan every node (the full picture; expensive) | |
--category |
enforces only the gates of this nature (types|style|traceability…) | |
--changed |
file(s) to verify (repeatable) | |
--commit-msg |
path to the commit message file (the commit-msg hook passes it) |
|
--no-record |
report only: neither stamps the map nor opens issues | |
--phase |
the phase to enforce (pre-commit|pre-push|ci|manual) | |
--root |
. |
project root |
--skip-slow |
skip gates declared cost: slow |
|
--staged |
uses the files staged in git (the pre-commit mode) |
Confronting the project — family
Section titled “Confronting the project — family”Commands of the same family — what tells each apart:
| Command | What it does |
|---|---|
anchors check |
Run the quality gates (the pipeline) |
anchors verify |
Run EVERYTHING the phase requires: Anchors gates + external tools |
anchors coverage |
Show coverage by scenario, by line, of the DIFF and the delta |
anchors stale |
List stale edges — what changed and has not been reconfronted |
anchors impact |
Impact analysis: what a change to this file reaches |
anchors failures |
The observed failures that the spec has not yet explained |