plugins/dp-cto/skills/debug/SKILL.md
Use when encountering a bug, error, or failing test that needs structured investigation — 'this is broken', 'why does this fail', 'trace this error'. Enforces diagnosis before any fix attempt.
npx skillsauth add raisedadead/dotplugins debugInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Use ultrathink for diagnosis — symptoms mislead, root causes hide.
Read ${CLAUDE_PLUGIN_ROOT}/shared/cto-boundaries.md
NO FIXES WITHOUT ROOT CAUSE INVESTIGATION FIRST
If you have not completed the investigation phase, you are not allowed to propose a fix. No exceptions.
Collect from the user:
If the user's description is vague, ask clarifying questions before dispatch. One question per message.
Dispatch debugger via the Agent tool with subagent_type: "dp-cto:debugger".
The agent prompt must include:
The debugger agent runs the 4-phase root cause investigation protocol (reproduce, analyze, hypothesize, report). It is read-only — it cannot modify code.
On agent completion, extract the structured receipt from <!-- RECEIPT:START/END --> markers. Validate:
root_cause — file:line with explanation (not vague)evidence — commands run and their outputsuggested_fix — concrete change descriptionconfidence — high, medium, or lowIf the receipt is missing or incomplete, report the gap. Do not fabricate findings.
Present the debugger's findings to the user with root cause, evidence, and suggested fix. Then offer next steps:
/dp-cto:run) with the suggested fix and file scopeRead ${CLAUDE_SKILL_DIR}/references/red-flags.md before proceeding.
Read ${CLAUDE_SKILL_DIR}/references/user-signals.md before proceeding.
Read ${CLAUDE_SKILL_DIR}/references/anti-rationalization.md before proceeding.
Read ${CLAUDE_SKILL_DIR}/references/quick-reference.md before proceeding.
Read ${CLAUDE_SKILL_DIR}/references/no-root-cause-protocol.md before proceeding.
development
Use when the user shares a URL, names a resource from SOURCES.md, shares operational feedback, says 'adopt', 'learn from', 'what can we steal from', 'compare with', 'self-develop', or 'how do we get better'.
tools
Use when you need to set up or rebuild the dp-lsp Docker image after installing the plugin — 'set up LSP', 'build the image', 'install language servers'.
development
Use when you want to write tests first, enforce test-driven development, or add test coverage — 'write tests for this', 'TDD this feature', 'add test coverage'. Strict RED-GREEN-REFACTOR discipline.
testing
Use when starting major work that needs formal design review — cross-team changes, architectural decisions, or complex features where requirements need discovery before implementation.