error-handling

Installation
SKILL.md

Error Handling with wellcrafted trySync and tryAsync

When to Apply This Skill

Use this pattern when you need to:

  • Replace recoverable try-catch blocks with trySync or tryAsync.
  • Handle fallback success paths via Ok(...) and propagate failures with Err(...).
  • Wrap caught exceptions as cause for typed domain error constructors.
  • Refactor nested error branches into immediate-return linear control flow.
  • Convert handler failures into HTTP status responses with explicit guards.

References

Load these on demand based on what you're working on:

Installs
81
GitHub Stars
4.7K
First Seen
Jan 20, 2026
error-handling — epicenterhq/epicenter