No slash command · from cc10x
Provides a structured debugging methodology: build a fast repro loop first, then investigate root cause and blast radius. Covers the construction ladder, LSP tracing, and hypothesis quality criteria.
Ships in cc10x. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Feedback Loop FIRST: No hypothesis without a repro loop. No fix without root cause. No fix without blast radius scan.
references/investigation-hygiene.md — investigation discipline, evidence handlingreferences/root-cause-playbooks.md — scenario-specific debugging playbooksA hypothesis without a repro loop is a guess. Before H1, build a fast, deterministic, agent-runnable signal that turns red on the bug.
curl/HTTP request with asserted responsegit bisect run (regression with existing test)Tighten the loop — treat it as a product. Once you have a loop, keep tightening:
Red-capable completion criteria — the loop is done when you can name one command (a script path, a test invocation, a curl) that you have already run at least once (paste the invocation and its output), and it is:
Flaky bugs: run in a tight loop (for i in $(seq 1 N); do ...; done), record hit rate (e.g. 3/50), treat raising that rate as loop iteration.
STOP. Do NOT advance to hypothesis. Return BLOCKED with:
Use LSP to trace root causes through the codebase:
Don't guess where a value comes from — trace it with LSP. Don't grep for a function name — use Find References to get every caller with type info.
git log --oneline -20 -- <files>, git blame, git diff BASE..HEADdocs/solutions/debugging/ exists, check for a prior write-up matching this symptom before starting fresh investigationRepro Minimisation: After reproducing the bug, shrink to the smallest scenario that still goes red before forming hypotheses. Cut inputs, callers, config, and environment one at a time. Re-run after each cut. Every remaining element is load-bearing — removing it should make the bug disappear.
Why: A minimal repro shrinks the hypothesis space. The fewer moving parts, the fewer places the bug could hide.
git diff the files involvedGenerate 3-5 ranked hypotheses (H1, H2, ...) with 0-100 confidence BEFORE testing any of them — fewer than 3 means you anchored. Rank by explanatory power — which hypothesis explains the most symptoms with the fewest assumptions. Testing the first plausible hypothesis anchors you; generating multiple first prevents anchoring bias and surfaces connections between hypotheses. Proceed to fix only when one reaches 80+.
Hypothesis Quality Criteria:
Instrumentation preference: Each probe must map to a specific prediction. Change one variable at a time. Tool preference:
[DEBUG-a4f2]) so cleanup is a single grep.Performance branch: For performance regressions, logs are usually wrong. Establish a baseline measurement first (timing harness, performance.now, profiler, query plan), then bisect. Measure first, fix second.
Hypothesis Confidence Scoring:
| Score | Meaning |
|---|---|
| 90-100 | Verified: traced with LSP, reproduces the bug, fix resolves it |
| 80-89 | Strong: consistent with all evidence, mechanism is clear |
| 60-79 | Plausible: fits some evidence but gaps remain — investigate more |
| <60 | Speculative: do not act — gather more evidence |
When to Restart Investigation: If 3 hypotheses fail, you're pattern-matching, not investigating. Re-read the loop output. Re-trace with LSP. Consider you're looking at the wrong layer. If two or more fixes that share one premise failed the same gate, write the premise down — the premise, not the next fix variant, is now the suspect. Ask what the premise predicts beyond that gate: where the failure should concentrate, which variant should stay green. Test the prediction with the repro loop before the next fix; a prediction the observation contradicts disposes of the premise, not just the fix.
[DEBUG-...] tagged instrumentation (must return nothing). Confirm the repro loop no longer fires.Read references/root-cause-playbooks.md for scenario-specific guidance:
Track failed hypotheses: [DEBUG-N]: {what was tried} → {result}. After 3 failed hypotheses, set NEEDS_EXTERNAL_RESEARCH: true. After research files provided and still stuck, return BLOCKED.
Do not propose a fix until you can explain the full causal chain from trigger to symptom with no gaps. "Somehow X leads to Y" is a gap, not an explanation.
Predictions for uncertain links: When the causal chain has an uncertain link, form a prediction — something in a different code path that must also be true if your hypothesis is correct. If the prediction is wrong but the fix "works," you found a symptom fix, not the root cause.
| Excuse | Reality |
|---|---|
| "Emergency, no time for process" | Systematic debugging is FASTER than guess-and-check thrashing (15-30 min vs 2-3 hours) |
| "I'll just try changing X and see" | Random changes destroy evidence. Form a hypothesis first. |
| "Quick fix for now, investigate later" | "Later" never comes. Ship the real fix now. |
| "This should work" (without prediction) | If you can't predict what will happen, you don't understand the bug. |
| "It worked before" | Something changed. Find what. git bisect or git log --oneline -20 -- <files>. |
| "The tests pass so it's fixed" | Tests can pass for the wrong reason. Verify the test actually exercises the bug path. |
| "I'm confident this is the cause" | Confidence without a prediction is a feeling, not evidence. |
| "Let me just add a try/catch" | Catching the error hides the bug. Find the root cause first. |
The gates in this skill must hold under pressure — deadline, complexity, "obvious bug" overconfidence. Before trusting a debug cycle:
Pressure is exactly when these gates pay for themselves — a gate that can be talked out of under pressure was never protecting you.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub romiluz13/cc10x --plugin cc10x22 skills in this plugin
/agent-commonUse when a cc10x agent starts a task: the shared preamble for the memory protocol, the contract format, and the output rules./architectureGreenfield architecture design: map functionality flows, draw components, design APIs,
classify dependencies, plan observability. For multi-component, API, schema, auth, or
integration-heavy work. For retrofitting existing code, use codebase-hygiene instead.
/buildingUse when writing production code test-first: the RED-GREEN-REFACTOR cycle, false-RED
detection, vertical slicing, scope escalation, test process discipline, and code
generation patterns.
/cc10x-guideAnswers questions about cc10x itself — what it is, how to install and configure it,
how the router, workflows, memory, and hooks operate, and how to troubleshoot.
Use this skill when: the user asks ABOUT cc10x — "what is cc10x", "how do I
configure cc10x", "why isn't cc10x activating", "how do cc10x workflows work",
"how does cc10x memory work", "cc10x troubleshooting".
NOT for performing work: "set up cc10x for me", build, debug, review, or plan
requests route to cc10x-router. "Update cc10x" / "upgrade cc10x" route to the
update skill. This skill answers questions; it never edits project code, never
writes files, never runs workflows.
Triggers: what is cc10x, cc10x help, cc10x guide, how to use cc10x, configure cc10x,
cc10x setup, cc10x faq, cc10x troubleshooting, cc10x not working, cc10x not activating.
/cc10x-routerRoutes build, debug, review, plan, QA, and triage requests through the cc10x workflows (task graphs, workflow artifacts, gates); it is the single entry point for cc10x code work.
Activates when the user asks to implement, fix, review, plan, test, refactor, or continue code work.
Trigger keywords: build, implement, create, write, add, review, audit, debug, fix, error, bug, broken, plan, design, architect, spec, brainstorm, test, refactor, optimize, update, change, research, cc10x, c10x.
Hand-off: questions about cc10x itself belong to `cc10x-guide`, and "update cc10x" belongs to the `update` skill.
/codebase-designCanonical deep-module vocabulary (module, interface, depth, seam, adapter,
leverage, locality) for designing a module's shape — a lot of behaviour
behind a small interface at a clean seam, testable through that interface.
The single source of truth for these terms; other skills (architecture,
codebase-hygiene) point here instead of restating them.
Use when designing or improving a module's interface, finding deepening
opportunities, deciding where a seam goes, or making code more testable.
Other plugins' skills for the same job