LogoClawIndex
CasesSkillsAbout
LogoClawIndex

ClawIndex

OpenClaw Skills & Use Case Index

ClawIndex is an ecosystem-driven index of OpenClaw skills and real-world use cases.

Index

Skills·
Cases

Meta

About·
Disclaimer·
Email·
GitHub
© 2026 ClawIndex All Rights Reserved.

fp-errors - Handle TypeScript errors with fp-ts values

Provides practical fp-ts patterns for representing errors as Either or TaskEither values, chaining fallible operations, and accumulating validation errors.

Tags

Updated: 2026-10-16

Capabilities

Typical Inputs

Typical Outputs

What this skill does

  • Replace exceptions with values
  • Chain fallible operations
  • Accumulate validation errors
  • Transform Either values
  • Handle multiple error types
  • Use Either and TaskEither

Inputs

  • TypeScript code
  • Validation rules
  • Domain error types
  • Fallible operations

Outputs

  • fp-ts error-handling code
  • Either-based results
  • Accumulated validation errors
  • Explicit error contracts

Requirements

  • TypeScript project
  • fp-ts package

Source

  • Spec: SKILL.md
fp-ts
error handling
Either
TaskEither
TypeScript
validation
Replace exceptions with values
Chain fallible operations
Accumulate validation errors
Transform Either values
TypeScript code
Validation rules
Domain error types
fp-ts error-handling code
Either-based results
Accumulated validation errors