name: debugging description: Debugging skill for disciplined investigation, evidence-based fixes, and documented outcomes license: MIT compatibility: opencode metadata: audience: developers workflow: troubleshooting
Debugging Skill
Use This Skill For
- runtime failures
- incorrect behavior without clear cause
- build, type, dependency, or configuration issues
- regressions after recent changes
Do Not Use This Skill For
- greenfield feature implementation without a failure signal
- speculative refactors without a concrete problem statement
Investigation Order
- Understand the relevant project structure.
- Read the exact failing code, config, or logs.
- Reproduce or confirm the failure signal if possible.
- Check official docs for the affected tool or framework.
- Use
gh_greporwebfetchonly to reduce uncertainty, not to skip analysis. - Fix the cause, then verify the result.
Rules
- Do not propose speculative fixes without evidence.
- Do not stop after identifying a symptom if the root cause is accessible.
- Do not ignore adjacent config or version mismatches.
Documentation Expectations
For meaningful bug fixes, update the main documentation with:
- what broke
- what caused it
- what changed
- any operational follow-up
Common Checks
- imports and path resolution
- config drift
- version incompatibility
- missing environment variables documented only in local state
- stale generated artifacts
Environment Rule
If the fix requires environment variables:
- update
.env.example - do not inspect
.env - assume matching local keys exist
Done Criteria
- root cause is identified or clearly bounded
- the fix is validated with available evidence
- important operational context is documented