forge-error-handling
CommunityCatch, wrap, log, and surface failures safely.
Software Engineering#error handling#result types#structured logging#invariant violation#retry with backoff#request_id#client-safe errors
Authorf4rkh4d
Version1.0.0
Installs0
System Documentation
What problem does it solve?
It prevents production code from swallowing errors, leaking internal details to clients, and creating inconsistent failure modes that are hard to debug or recover from.
Core Features & Use Cases
- Catch only at process boundaries to avoid scattering error handling through business logic while still ensuring callers see consistent outcomes.
- Use Result types for expected failures and throw for unexpected ones, enabling exhaustive, type-safe routing on error codes.
- Sanitize client responses with request_id correlation while logging full structured error details server-side.
- Make retries safe by requiring idempotency for retried operations, enforcing attempt bounds, and using exponential backoff with jitter.
- Crash loud on invariant violations and exit on unhandled errors to avoid silent partial failures and corrupted state.
Quick Start
Use the forge-error-handling skill when writing or reviewing an HTTP handler, job entry point, or message consumer so that each failure path is correctly categorized, logged, and returned as a safe, consistent client response.
Dependency Matrix
Required Modules
None requiredComponents
scripts
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: forge-error-handling Download link: https://github.com/f4rkh4d/forge-skill/archive/main.zip#forge-error-handling Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.