home / skills / vadimcomanescu / codex-skills / error-resolver
This skill helps you diagnose errors methodically, reproduce issues, and validate safe, minimal fixes with clear verification steps.
npx playbooks add skill vadimcomanescu/codex-skills --skill error-resolverReview the files below or copy the command above to add this skill to your agents.
---
name: error-resolver
description: Use when debugging errors, crashes, or failing commands. Focus on reproducing the issue, isolating the root cause, and producing a minimal, safe fix with validation steps.
---
# Error Resolver
Diagnose failures methodically and propose safe, verified fixes.
## Quick Start
1) Reproduce and capture the exact error message.
2) Isolate the smallest repro or failing test.
3) Identify root cause before proposing changes.
4) Apply the smallest fix and re-verify.
## Debugging Checklist
- Read stack traces top-to-bottom.
- Check recent changes (diff, dependency updates).
- Validate environment (versions, env vars, config).
- Confirm inputs and assumptions.
## Fix Criteria
- Fix targets the root cause, not the symptom.
- Tests or manual verification are specified.
- Any side effects or trade-offs are called out.
## Guardrails
- Don’t apply changes without confirming the root cause.
- For production issues, include rollback steps.
## References
- Extended examples: `references/examples.md`
This skill helps debug errors, crashes, and failing commands by guiding a methodical diagnosis and producing minimal, safe fixes. It emphasizes reproducing the issue, isolating a minimal repro, and validating fixes with clear verification steps. The goal is to resolve the root cause while limiting risk and side effects.
The skill walks you through capturing exact error messages and stack traces, then reducing the problem to the smallest failing test or reproduction. It prompts checks for recent changes, dependency and environment mismatches, and incorrect inputs or assumptions. Once the root cause is identified, the skill proposes the smallest corrective change and specifies verification and rollback steps.
What if I cannot reproduce the issue?
Collect as much context as possible: logs, environment details, user steps, and sample inputs. Create lightweight instrumentation or additional logging to capture the failing path and retry reproduction.
How large should the fix be?
Aim for the minimal change that addresses the root cause. Avoid broad refactors in hotfixes; instead, implement a small, well-tested fix and schedule larger improvements separately.