fp-ts-validation

Community

Error-accumulating FP validation for forms.

Authorwhatiskadudoing
Version1.0.0
Installs0

System Documentation

What problem does it solve?

FP-TS validation code can become verbose and error-prone when validating multiple fields or API payloads. This Skill provides patterns to accumulate all errors and separate schema validation from business rules, improving UX for forms and API validation.

Core Features & Use Cases

  • Error accumulation with fp-ts using NonEmptyArray and applicative validation to report all field errors at once.
  • Compose independent validators for forms and API payloads using sequenceS/sequenceT and io-ts/Zod examples.
  • Real-world use: validate a user registration form or an API request body with structured failures for fields.

Quick Start

Load the fp-ts-validation skill and start by validating a sample payload with the provided validators to observe aggregated errors.

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: fp-ts-validation
Download link: https://github.com/whatiskadudoing/fp-ts-skills/archive/main.zip#fp-ts-validation

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.