Read-only drift detector that diffs SPEC.md against current code and reports violations by severity without writing anything.

CCM score
74 of 100
skills.sh installs
2.7K
GitHub stars
1.2K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers invariant (§V), interface (§I), and task (§T) checks, each classified as HOLD, VIOLATE, DRIFT, MATCH, MISSING, EXTRA, or STALE with file:line evidence
  • Accepts scope arguments §V, §I, §T, or --all, with invariants checked by default when no argument is given
  • Enforces zero writes, with no edits to SPEC.md or code and no invocation of spec or build skills
  • Ends each report with one-line remedy hints that point to the spec or build skill to run, leaving the fix to the user

Install

$ npx -y skills add juliusbrussee/cavekit --skill check -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

check — drift report

Pure diagnostic. Reports violations. Writes nothing. User decides remedy.

Spec drifting silently from code is the #1 SDD failure mode. check is the detector. Run it after each /build and before each ship — drift caught here is a diff; drift caught in prod is a §B.

LOAD

  1. Read SPEC.md. If missing → "no spec, nothing to check." Stop.
  2. Parse invocation args:
    • §V → check invariants only (default)
    • §I → check interfaces
    • §T → audit task status vs code
    • --all → all three

CHECK §V — invariants

For each V:

  1. Translate invariant into verifiable claim about code.
  2. Grep / read relevant files.
  3. Classify: HOLD / VIOLATE / UNVERIFIABLE.
  4. Record address + file:line evidence.

CHECK §I — interfaces

For each I item:

  1. Locate implementation.
  2. 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:

Details

Repository
github.com/juliusbrussee/cavekit
Categories
Agent Workflow & Planning, Code Review & Quality
First seen
May 16, 2026

More from juliusbrussee/cavekit

All 5