Error Management

Community

Master Effect error handling with typed errors.

Authorandrueandersoncs
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Effect-TS applications encode domain errors and defects differently, leading to brittle error handling. This skill provides patterns and conventions to model recoverable errors with typed error channels, differentiate defects, and compose robust error handling across effects.

Core Features & Use Cases

  • Create Typed Errors with Schema.TaggedError and explicit Error types for domain failures.
  • Catch and recover using Effect.catchAll, Effect.catchTag, and Effect.catchTags; aggregate errors with Effect.all and Effect.validate.
  • Transform and map errors with Effect.mapError and Effect.mapBoth; compose fallback strategies via Effect.orElse and Effect.orElseSucceed.
  • Reason about defects, sandboxing, and retry/timeouts to build resilient async workflows.
  • Use best practices to maintain clear error boundaries, testability, and predictable failure modes.

Quick Start

  • Define a typed error (e.g., UserNotFound) and demonstrate a recoverable path via catchTag, with a fallback value when the error occurs.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: Error Management
Download link: https://github.com/andrueandersoncs/claude-skill-effect-ts/archive/main.zip#error-management

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.