Agent skill
obra-superpowers-systematic-debugging
Systematic debugging approach with 4-phase root cause analysis. Use when troubleshooting complex bugs, identifying root causes, or following structured debugging methodology.
Install this agent skill to your Project
npx add-skill https://github.com/cpa03/blueprintify/tree/main/.opencode/skill/obra-superpowers-systematic-debugging
SKILL.md
Systematic Debugging Skill
Overview
This skill provides a systematic approach to debugging based on the obra/superpowers framework.
4-Phase Root Cause Analysis
Phase 1: Reproduction
- Create a minimal reproduction case
- Verify the issue is consistent
- Document exact steps to trigger
- Isolate variables
Phase 2: Hypothesis Generation
- Brainstorm potential causes
- Consider recent changes
- Review error messages and stack traces
- Check configuration drift
Phase 3: Testing
- Test each hypothesis systematically
- Use binary search to isolate the problem
- Check logs and metrics
- Validate assumptions
Phase 4: Resolution
- Implement the fix
- Verify the fix resolves the issue
- Check for regressions
- Document the solution
Defense in Depth
- Prevention: Static analysis, type checking, tests
- Detection: Logging, monitoring, alerting
- Containment: Error boundaries, fallbacks
- Recovery: Auto-restart, retry logic, circuit breakers
Techniques
Root Cause Tracing
- Follow the error chain backward
- Identify the first failure point
- Distinguish symptoms from causes
Condition-Based Waiting
- Wait for specific conditions, not arbitrary time
- Use timeouts to prevent infinite waits
- Verify state before proceeding
Usage
Apply this skill when:
- Debugging CI/CD failures
- Investigating production issues
- Analyzing test failures
- Troubleshooting configuration problems
Integration
Works with CMZ self-heal protocol for automated issue detection and resolution.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
ci-pipeline-update
Updates CI/CD pipelines for DevOps Engineer
obra-superpowers-test-driven-development
Use when implementing any feature or bugfix, before writing implementation code
typescript-refactor
Safely refactor TypeScript code while maintaining type safety and test coverage. Includes verification steps.
obra-superpowers-using-git-worktrees
Use when starting feature work that needs isolation from current workspace or before executing implementation plans - creates isolated git worktrees with smart directory selection and safety verification
react-component-create
Create new React components following project patterns and best practices. Includes proper typing, testing, and documentation.
madappgang-claude-code-debugging-strategies
Universal debugging strategies and techniques applicable across all technology stacks. Use when approaching unknown bugs or need language-agnostic debugging methodology.
Didn't find tool you were looking for?