check
Original:🇺🇸 English
Translated
Read-only drift detector. Diffs SPEC.md against current code and reports violations grouped by severity. Writes nothing — suggests remedies via the spec or build skills but never invokes them. Triggers when the user asks to check drift, audit the spec, verify invariants, or ask whether code still matches the spec. Phrasings: "check drift", "audit the spec", "does the code still match §V", "check invariants", "spec vs code".
11installs
Sourcejuliusbrussee/cavekit
Added on
NPX Install
npx skill4agent add juliusbrussee/cavekit checkTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →check — drift report
Pure diagnostic. Reports violations. Writes nothing. User decides remedy.
LOAD
- Read . If missing → "no spec, nothing to check." Stop.
SPEC.md - Parse invocation args:
- → check invariants only (default)
§V - → check interfaces
§I - → audit task status vs code
§T - → all three
--all
CHECK §V — invariants
For each V<n>:
- Translate invariant into verifiable claim about code.
- Grep / read relevant files.
- Classify: HOLD / VIOLATE / UNVERIFIABLE.
- Record address + file:line evidence.
CHECK §I — interfaces
For each I item:
- Locate implementation.
- Classify:
- MATCH — shape in code = shape in spec.
- DRIFT — impl exists, shape differs.
- MISSING — impl absent.
- EXTRA — code exposes surface not in §I.
CHECK §T — tasks
For each T<n>:
- If : verify claimed work present.
x - If : note as in-progress.
~ - If : note as pending.
. - Flag rows with no evidence as STALE.
x
REPORT
Caveman. Grouped by severity.
## §V drift
V2 VIOLATE: auth/mw.go:47 uses `<` not `≤`. see §B.1.
V5 UNVERIFIABLE: no test covers ∀ req path.
## §I drift
I.api DRIFT: POST /x returns `{result}` not `{id}`. route.go:112.
I.cmd MISSING: `foo bar` absent from cli/*.go.
## §T drift
T3 STALE: status `x`, no middleware file exists.
## summary
2 violate. 1 missing. 1 stale. 1 unverifiable.
next: spec skill with `bug:` or fix code at cited lines.REMEDY HINTS (not actions)
End report with one-line hint per class:
- VIOLATE / DRIFT → invoke spec skill or fix code.
bug: <V.n> - MISSING → invoke build skill on if task exists; else spec skill
§T.n.amend §T - STALE → spec skill to uncheck.
amend §T - EXTRA → spec skill to document, or delete code.
amend §I
Never invoke fixes. Report only.
NON-GOALS
- Zero writes. No SPEC.md edits. No code edits.
- No sub-agents. Main thread reads.
- No scores, no grades. Binary per item: holds or drifts.