cc-debug

A guided workflow for investigating and fixing software bugs. It first describes the problem, considers possible causes, and reviews the proposed fix before applying it.

In plain words
What is it for?
Use it to document symptoms and reproduction steps, investigate likely causes, apply a reviewed fix, and validate the result.
Why use it?
It gives bug fixing a repeatable process and helps catch fixes that might create new failures or miss unusual cases.

Command for Claude Code

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/yeisonrestrepo/code-conductor/cc-debug
Clone the repo
git clone --depth 1 https://github.com/yeisonrestrepo/code-conductor

Made for: Claude Code.

Per session 11 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 361 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00011 $0.00361
Opus 5 $0.00005 $0.00180
Sonnet 5 $0.00002 $0.00072
Haiku 4.5 $0.00001 $0.00036

Measured yesterday against content hash 89b04a446c4e, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

cc-debug scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

project-template/.claude/commands/cc-debug.md · 43 lines

What it actually says

Phase 0 — Skill activation

Before doing anything else, invoke both skills in order:

Skill({ skill: "subagent-driven-development", args: "$ARGUMENTS" })
Skill({ skill: "critical-review" })

subagent-driven-development delegates investigation to sub-agents (graph query + git log — no inline file reads). critical-review Phase 2 RESILIENCE check then runs on the proposed fix before it is applied — confirm the fix doesn't introduce a silent failure or new boundary condition. The fix must pass Phase 3 self-correction before being committed. End with [VALIDATION].


Characterize the problem before investigating:

Symptom: [what is observed] Expected: [what should happen] Reproduction: [exact steps to reproduce] Frequency: [always / intermittent / only under condition X] Context: [environment, recent changes, logs]

List 2–4 hypotheses ordered by probability. Present them and confirm which to investigate first before touching any code.

For visual bugs or UI flow problems, activate Playwright MCP: "This looks like a visual/UI issue. I'll use Playwright MCP to inspect it — confirm?"

Investigation:

  • Use grep to locate relevant code — never read whole files
  • Read only the sections that match the hypothesis
  • Check git log for recent changes to the area

Report:

  • Root cause: [file:line]
  • Why it happens: [explanation]
  • Impact: [what else could be affected]
  • Proposed fix: [exact change]

Apply the fix only after the developer confirms. After fixing, suggest a test that would have caught this bug.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 43 lines · 11 tokens per session scan A 89b04a446c4e

Subscribe to this mod's changes

cc-debug is a command published in the GitHub repository yeisonrestrepo/code-conductor (6 stars, last pushed 1mo ago), licensed MIT. It adds 11 tokens to every session and 361 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.