tools-debugging-root-cause
Root Cause Tracing
Overview
Bugs often surface deep in a stack trace—far away from the code that actually caused them. This skill teaches you to walk the chain backward until you reach the true trigger, then reinforce defenses so the issue cannot recur.
Core principle: Never patch just the symptom. Follow the evidence upstream and fix the source.
When to Use
- Error occurs deep inside execution (nested call stack, worker, async task).
- Stack trace is long or unhelpful; unclear where invalid data originated.
- Behavior differs across tests/runs and you need to identify the polluting test.
- You suspect earlier code (setup, beforeEach, fixtures) seeded bad state.
Decision flow:
Bug surfaces deep? → yes → Can you trace back? → yes → Trace to original trigger → Add defense-in-depth → Done
↘ no → Temporary symptom fix (last resort)
More from tjboudreaux/cc-plugin-engineering-excellence
eng-tdd
Enforces disciplined RED-GREEN-REFACTOR cycle—write failing test first, watch it fail, write minimal code to pass, then refactor.
2eng-verification
Mandatory checklist before claiming work is complete—run the evidence-producing command, inspect output, and only then state a result.
2eng-performance
Guard latency, memory, battery, bandwidth, and gas/compute budgets by measuring before and after every change.
2eng-user-impact
Anchor every engineering decision in user value, measurable outcomes, accessibility, and cross-platform experience coherence.
2meta-superpowers
Startup protocol for every task—discover applicable skills, run them, announce usage, and follow required workflows (brainstorming, TodoWrite checklists, etc.).
2eng-observability
Design every change with traceability, diagnostics, and fast incident triage in mind across mobile, web, and web3 stacks.
2