Agent skill
root-cause-tracing
Systematically trace bugs and issues to their root cause using debugging techniques and analysis methods
Install this agent skill to your Project
npx add-skill https://github.com/ljchg12-hue/dotfiles/tree/main/skills/root-cause-tracing
SKILL.md
Root Cause Tracing Skill
Systematically identify root causes of bugs and system failures.
When to Use
- Bug investigation
- Production incidents
- Performance issues
- System failures
Analysis Frameworks
- 5 Whys: Ask "why?" repeatedly
- Fishbone Diagram: Categorize causes
- Fault Tree Analysis: Logic tree of failures
- Timeline Analysis: Chronological events
Debugging Process
- Reproduce: Create minimal reproduction
- Isolate: Narrow down location
- Trace: Follow execution path
- Hypothesis: Form theory
- Test: Verify theory
- Fix: Implement solution
- Verify: Confirm fix works
Tools
- Debuggers (gdb, lldb, pdb)
- Logging and tracing
- Profilers
- Stack traces
- Network analyzers
5 Whys Example
Problem: Website is slow
Why? Database queries are slow
Why? No indexes on frequently queried columns
Why? Database schema not optimized
Why? Initial design didn't account for scale
Why? No performance testing during development
Root Cause: Lack of performance testing
Best Practices
- Document investigation steps
- Don't jump to conclusions
- Test hypotheses systematically
- Consider multiple causes
- Implement preventive measures
Resources
- The Art of Debugging: https://nostarch.com/debugging
- Debugging Teams: https://www.oreilly.com/library/view/debugging-teams/9781491932049/
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
random-selection
Randomly select items from lists using various algorithms for fair and unbiased selection
threat-hunting
Proactive threat detection using Sigma rules, IOCs, and behavioral analytics
auth-implementation-patterns
Master authentication and authorization patterns including JWT, OAuth2, session management, and RBAC to build secure, scalable access control systems. Use when implementing auth systems, securing APIs, or debugging security issues.
debugging-strategies
Master systematic debugging techniques, profiling tools, and root cause analysis to efficiently track down bugs across any codebase or technology stack. Use when investigating bugs, performance issues, or unexpected behavior.
sql-optimization-patterns
Master SQL query optimization, indexing strategies, and EXPLAIN analysis to dramatically improve database performance and eliminate slow queries. Use when debugging slow queries, designing database schemas, or optimizing application performance.
monorepo-management
Master monorepo management with Turborepo, Nx, and pnpm workspaces to build efficient, scalable multi-package repositories with optimized builds and dependency management. Use when setting up monorepos, optimizing builds, or managing shared dependencies.
Didn't find tool you were looking for?