Error Handling Skill: Wrap, Propagate, Never Swallow
Finds unhandled async paths and silent catches in your diff and adds the minimal fix. Silent error swallowing is the most common production-debugging blocker.
An installable error-handling skill. Reviews the changed code, finds unhandled async paths and silent catches, and adds the minimal fix that propagates errors with context.
What It Does
- Unhandled awaits — finds async calls with no upstream handler
- Silent catches — flags
catch (e) {}and.catch(() => null) - Context-rich messages — propagates which input failed
- Doesn't over-wrap — leaves already-correct code alone
Install in 30 Seconds
Pick your tool above and download:
- Claude Code:
~/.claude/skills/error-handling/SKILL.md - OpenAI Codex CLI: append to
AGENTS.md - Cursor: append to
.cursorrules
Same content, three install paths. Reload and ask for the audit on your next change.
Why This Skill Earns Its Keep
Silent error swallowing is the most common production-debugging blocker. This skill enforces the rule that every catch either re-throws with context, logs and re-throws, or documents why it's intentional — and it refuses to touch code that's already handling errors well.
Install once, run before every push.