effect-error-handling

Installation
SKILL.md

Effect Error Handling

Master type-safe error handling in Effect applications. This skill covers expected errors, error recovery, selective error handling, and error transformations using Effect's error management operators.

Expected Errors vs Defects

Effect distinguishes between two types of failures:

  • Expected Errors (E channel): Recoverable errors tracked in the type system
  • Defects: Unexpected failures (bugs, programming errors)
import { Effect } from "effect"

// Expected error - tracked in type
interface ValidationError {
  _tag: "ValidationError"
Related skills
Installs
30
GitHub Stars
152
First Seen
Jan 22, 2026