Skip to content
Development
Skill

/cad-debug

Systematic debugging - hypothesis and symptom tracked in a state file that survives /clear, with a user-gated second-model consult at dead ends

From plugin
cadence
534 skills30 agents3 hooks
Install
$ npx -y skills add crenshawdev/cadence --skill cad-debug --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.
  • Slash command/cad-debug

Context preview

The summary Claude sees to decide when to auto-load this skill.

Systematic debugging - hypothesis and symptom tracked in a state file that survives /clear, with a user-gated second-model consult at dead ends

SKILL.md

cad-debug.SKILL.md
name: cad-debug
description: "Systematic debugging - hypothesis and symptom tracked in a state file that survives /clear, with a user-gated second-model consult at dead ends"
argument-hint: "[list | status <slug> | continue <slug> | --diagnose] [symptom]"
allowed-tools:
  - Read
  - Write
  - Edit
  - Bash
  - Grep
  - Glob
  - AskUserQuestion

<objective> Debug a symptom by the scientific method - form hypotheses, run the cheapest discriminating test for each, confirm a root cause, fix it, verify the symptom is gone. The investigation is persisted to `.planning/debug/<slug>.md` after every step, so a `/clear` or a new session resumes it losslessly. At a genuine dead-end (repeated failed fixes, exhausted hypotheses), OFFER a second-model consult (references/consult.md) - user-gated, decision-support only.

Routing: parse `$ARGUMENTS` per the workflow's Route table (debug.md) - `list`, `status <slug>`, `continue <slug>`, `--diagnose`, else a new symptom. The table lives in the workflow, once. </objective>

<execution_context> @${CLAUDE_PLUGIN_ROOT}/cadence-core/workflows/debug.md </execution_context>

<process> Route on `$ARGUMENTS`, then run the debug workflow single-pass end-to-end. Persist the state file after every hypothesis test and fix attempt. Never auto-loop fixes and never auto-consult - both are deliberate, and the consult is always user-gated. </process>

Ships withcadence

Appearance is cheap. Verification is the work. Cadence is for developers using Claude Code on software they will still own after the session ends. Claude can write a convincing plan, produce working code, and tell you the job is finished.

Get the whole plugin

Other skills on cadence.