Use when a problem isn't obvious, after 3+ failing tests with different symptoms, or when facing complex, cross-cutting bugs.
Debugging is science, not magic.
Core principle: Observe → Hypothesize → Experiment → Verify. Never guess.
Don't rush to fix. List EXACT symptoms.
List 2-3 potential causes. For each:
Adopt the persona by loading via . Follow the tracing instructions precisely:
root-cause-tracingagents/root-cause-tracing/SKILL.mdagent_skill_read_docbash for targeted logs).Before fixing, write a test that fails due to this specific root cause. Verify it fails (RED).
Implement the smallest possible fix that addresses the root cause. Verify the regression test passes (GREEN).
Run the full test suite to ensure no regressions.