cyberneticlibrary

Build robust error handling patterns

error-handlingskillsetup L10
Sheshiyer/skill-clusters
What it does

Structure typed errors, boundaries, retries, and circuit breakers

Best for

Production systems needing consistent error semantics across TypeScript/Python/Go.

Inputs
  • · error types
  • · external dependency specs
  • · user-facing message rules
Outputs
  • · error class hierarchy
  • · API error handler
  • · retry/circuit-breaker logic
Requires
  • · zod (optional)
  • · Next.js/Express (optional)
Preconditions

Error contract defined, retry policy scoped

Failure modes

Silent swallows, message leaks, untyped errors, retry storms

Trust signals
  • · AppError base class
  • · Result<T,E> pattern
  • · user-message vs dev-message split