cc-debug

cc-debug is a command for Claude Code from yeisonrestrepo/code-conductor. It costs 11 tokens per session (360 once invoked), scanned A, original, MIT.

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

Written for Claude Code: $ARGUMENTS substitution. Also seen: mentions subagents.

Good fit Use it to document symptoms and reproduction steps, investigate likely causes, apply a reviewed fix, and validate the result.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/yeisonrestrepo/code-conductor/cc-debug
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.

Clone the repo
git clone --depth 1 https://github.com/yeisonrestrepo/code-conductor

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for cc-debug

README.md
[![agentmods](https://agentmods.dev/badge/commands/yeisonrestrepo/code-conductor/cc-debug/github.svg)](https://agentmods.dev/commands/yeisonrestrepo/code-conductor/cc-debug)
Your own site
<a href="https://agentmods.dev/commands/yeisonrestrepo/code-conductor/cc-debug"><img src="https://agentmods.dev/badge/commands/yeisonrestrepo/code-conductor/cc-debug/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for cc-debug

Your own site · 80×15
<a href="https://agentmods.dev/commands/yeisonrestrepo/code-conductor/cc-debug"><img src="https://agentmods.dev/badge/commands/yeisonrestrepo/code-conductor/cc-debug.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
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 360 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00011 $0.00360
Opus 5.5 $0.00004 $0.00144
Sonnet 5.5 $0.00002 $0.00072
Haiku 4.5 $0.00001 $0.00036

Measured 16d ago against content hash 8de1924f81e6, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 16d ago.

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 (grep + 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. 16d ago Changed 8de1924f81e6
  2. 1mo ago 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 (16 stars, last pushed 2d ago), licensed MIT. It adds 11 tokens to every session and 360 once invoked, about $0.0000 per session on Opus 5.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.