What problem does it solve?
Inconsistent, poorly designed error handling leads to silent failures, unactionable error messages, and time-consuming production debugging, as errors are often swallowed, stringly typed, or lack context for callers and operators to respond appropriately.
Core Features & Use Cases
- Typed Error Taxonomies: Define named error types (e.g. NotFoundError, TransientUpstreamError) so callers can dispatch on failure modes without parsing error strings.
- Propagation & Cause Preservation: Enforce deliberate error flow and preserve cause chains to maintain debugging context across system boundaries.
- Retry & Exit Code Standards: Guide bounded, jittered retry policies for idempotent operations and distinct exit codes for CLI tools to enable reliable CI dispatch.
- Use Case: For a polyglot team building Rust backend services, TypeScript frontends, and Python automation scripts, use this skill to align all codebases on a consistent error model, reducing mean time to resolve production incidents and eliminating brittle CI error handling.
Quick Start
Use the error-handling skill to audit your project's error propagation, retry policies, and exit code conventions for consistency and safety.