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.
From genienpx claudepluginhub elmmly/genie-team --plugin genieThis skill is limited to using the following tools:
Provides process, architecture, review, hiring, and testing guidelines for engineering teams relying on AI code generation.
Enables AI agents to execute x402 payments with per-task budgets, spending controls, and non-custodial wallets via MCP tools. Use when agents pay for APIs, services, or other agents.
Guides agentic engineering workflows: eval-first loops, 15-min task decomposition, model routing (Haiku/Sonnet/Opus), AI code reviews, and cost tracking.
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. |