error-handling
Installation
SKILL.md
Error Handling
This skill owns the boundary between thrown exceptions and Result values, plus correct Result consumption. Compose with define-errors for variant design, logging for diagnostics, query-layer for RPC presentation, and hono for response APIs.
Source Of Truth
Ground every Wellcrafted behavior claim in the official wellcrafted-dev/wellcrafted source and tests. When maintaining this guidance, confirm that Epicenter's installed version matches the source being read. If it does not, report the version drift; dependency freshness is handled outside this skill. Treat other skills, examples, generated documentation, and DeepWiki as leads, not authority.
Read the scoped references only when needed:
- Read references/wrapping-boundaries.md when deciding how much work one
trySyncortryAsyncshould cover, especially around cleanup. - Read references/toast-on-error.md when presenting tagged failures in UI code.
- Read references/http-boundaries.md when mapping failures into Hono responses or deciding which exceptions must keep propagating.