define-errors
Installation
SKILL.md
defineErrors
Related Skills: See
error-handlingfor trySync/tryAsync usage and toast-on-error patterns. Seeservices-layerfor service architecture and namespace exports.
Ground API claims in the official wellcrafted-dev/wellcrafted source and
tests for Epicenter's installed version. This skill owns variant construction,
naming, fields, and type extraction. error-handling owns catch adaptation and
Result consumption; logging owns diagnostic severity and sinks.
Import
import {
defineErrors,
extractErrorMessage,
type InferErrors,
type InferError,
} from 'wellcrafted/error';