Error Handling Patterns
Decides which failures are values and which are exceptions.
Install
/plugin marketplace add wshobson/agents; /plugin install developer-essentials
When error handling is being designed for a feature, an API surface, or a distributed call path.
- Author
- wshobson
- License
- MIT
The skill separates expected failures — validation, a rejected payment, a rate limit — from genuinely exceptional ones, and picks the mechanism accordingly: Result and Option types for the first, exceptions for the second, a hard stop for programmer bugs. Around that it covers retries, circuit breakers and graceful degradation for calls that cross a network boundary. Context preservation runs through all of it, since an error that loses its stack and its metadata costs more in debugging than it saved in code.
Similar skills
context-guard
SkillWarns before the context window fills, while there is still room.
scope-guard
SkillCatches an edit that lands outside the project you are in.
Systematic Debugging
SkillForces reproduce-first debugging instead of speculative patching
Comments(0)
Sign in to comment