/ck:deepen runs instead · from ck
Finds shallow modules in the codebase and proposes refactors that shrink interfaces and hide decisions while keeping tests green. Run when you have spare token budget and the build is green.
This skill never runs in Claude Code
It ships in ck at skills/, but /ck:deepen (a command, or a skill Claude Code finds first) has the same name: typing it, or Claude choosing it, runs that one instead.
Behavior is sacred: tests green before AND after. Every change shrinks an interface or hides a decision — deepen, don't churn.
A deep module hides a lot behind a small interface; a shallow one's interface costs as much to use as writing the code yourself. Complexity = dependencies + obscurity, and it compounds. Deepen spends spare usage paying that down before it becomes a §B. Run it when the build is green & you have budget to drain — not under deadline.
⊥ run mid-feature or under pressure. Deepen is the deliberate pass, not the reflex.
Scan the modules the spec touches. Rank by shallowness — interface surface vs work done. Pick the one worst offender. Tells:
? or §B that traces back to a confusing interface.One module per pass. Deepening is surgical, ⊥ a codebase sweep.
Name the design defect in caveman, citing file:line:
src/auth/token.go: 6-arg ctor leaks rotation policy to every caller. shallow. Complexity is real only if it shows: change amplification, high cognitive load, or an unknown-unknown (caller must know a hidden fact to call it right).
What does a deeper version look like? Pull a known pattern (hand to research for the external case → §R) or derive from the codebase's own better modules. Moves that deepen:
Draft the change as spec edits, not a silent rewrite:
Refactor ≠ rewrite. Full suite green before you start AND after. A deepening that
changes behavior is a feature in disguise — stop, route through /spec + /build.
New interface gets a test proving the old callers still work.
Done when the chosen module's interface is strictly smaller, its hidden decision no longer leaks, tests are green, and §I/§V record the new shape. One module deepened beats five churned. Budget left → pick the next shallowest, fresh pass.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub juliusbrussee/cavekit --plugin ck9 skills in this plugin
/backpropBug → spec protocol. When a bug is found or a test fails, trace the cause,
decide whether a new §V invariant would catch recurrence, append to §B.
This is the one non-obvious thing SDD does that plan-then-execute doesn't.
Triggers on test failure, bug report, post-mortem, or explicit user ask.
/buildPlan-then-execute implementation against SPEC.md. Native single-thread
loop, no sub-agents. On test or build failure, auto-invokes the backprop
skill before retrying — a failed verification always considers whether
a new §V invariant would prevent recurrence. Triggers when the user asks
to build, implement, execute the spec, or tackle a specific §T task
(`build §T.3`, `build --next`, `implement next task`, `run the build`).
Expects SPEC.md to exist; if not, defers to the spec skill.
/cavemanCaveman encoding for SPEC.md and spec-adjacent writes. Loaded by /spec, /build,
/check. Cuts tokens vs prose while staying precise. Triggers on any write
to SPEC.md or when user says "caveman", "compress this", "be brief".
/checkRead-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".
/grillCalibrated interrogation of a fuzzy idea before it becomes a spec. Asks one
question at a time, recommends an answer, and lands each answer in §G (goal)
or §C (constraints) — unknowns parked as `?` items, never guessed. The
cheapest place to kill a bad idea is before §T exists. Triggers when the user
has a vague idea, says "grill me", "stress-test this", "challenge my plan",
"interview me before I spec", or invokes /ck:grill. Defers the actual write to
the spec skill.
/researchGather external knowledge the spec needs and distill it into §R — the durable
research log — so build grounds in facts instead of hallucinating library
behavior. Each finding cites a source; unsourced claims are flagged, never
written as fact. Triggers when a spec decision hinges on a library/API/best
practice the agent is unsure of, when the user says "research this", "what's
the best lib for…", "check current best practice", or invokes /ck:research.
Defers the §R write to the spec skill.
Other plugins' skills for the same job