From genie
Structured root cause investigation when tests fail unexpectedly or fixes don't resolve the issue. Use when a test fails that you expected to pass, when a previous fix attempt didn't work, or when an error occurs during implementation.
How this skill is triggered — by the user, by Claude, or both
Slash command
/genie:debuggingThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
When a test fails unexpectedly or a fix attempt doesn't work, follow this protocol.
When a test fails unexpectedly or a fix attempt doesn't work, follow this protocol. Do NOT improvise. Do NOT try random changes.
Track your fix attempts. Each time you modify code to fix the issue, increment the counter.
Output: A 1-2 sentence root cause hypothesis based on reading the error.
git diff to see recent changesOutput: Refined hypothesis with specific location (file:line).
Rules:
Once root cause is confirmed:
This phase hands off to the tdd-discipline skill.
TRIGGERED AT: 3 failed fix attempts.
STOP. Do not attempt another fix. Instead:
In headless mode: After escalation, set execution report status to blocked
with a clear description of what was tried and what failed.
| Anti-Pattern | Signal | Response |
|---|---|---|
| Shotgun debugging | You're changing multiple things at once | STOP. Revert all. Pick ONE hypothesis. |
| Symptom fixing | Your fix suppresses the error without understanding why it occurs | STOP. Return to Phase 1. Find root cause. |
| "It works now" | Tests pass but you can't explain why your change fixed it | STOP. Revert and reproduce. Understand the mechanism. |
| Escalating complexity | Each fix attempt is more complex than the last | STOP. Trigger escalation — your mental model is wrong. |
| Test modification | You're tempted to change the test to match your code | STOP. The test defines expected behavior. Fix implementation. |
npx claudepluginhub elmmly/genie-team --plugin genieEnforces systematic root cause analysis before fixes for bugs, test failures, unexpected behavior, performance issues, and build failures.
Guides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.