Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Is that skill safe to install?
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
Are you the author of Error Handling?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/karthikrshet-error-handling)
---
name: error-handling
description: "Consistent error handling: typed errors, propagation rules, user-facing messages, logging and retries."
tags: [core, quality, backend]
---
# Error Handling
## When to use
- Designing a module or API
- Reviewing try/catch-heavy code
## Procedure
1. Define domain error types
2. Handle errors where you can act; otherwise propagate with context
3. Map errors to user-facing responses at the boundary
4. Log once with correlation ID
5. Retry only idempotent operations with backoff and jitter
## Checklist
- [ ] No swallowed errors
- [ ] No stack traces to end users
- [ ] Retries bounded
## Anti-patterns
- catch (e) {}
- Logging the same error at every layer
- Retrying non-idempotent writes