Agent skill · software engineering · sickn33

fp-either-ref

Quick reference for Either type. Use when user needs error handling, validation, or operations that can fail with typed errors.

Why this skill is useful

Provides specific patterns and commands for using the Either type in fp-ts that the AI wouldn't reliably generate on its own.

What it needs

About 2k tokens when loaded. Last updated 2026-08-07. 44,571 stars on the source repository.

What this skill does

Either Quick Reference Either = success or failure. Right(value) or Left(error). When to Use You need a quick fp-ts reference for typed synchronous error handling. The task involves validation, fallible operations, or converting throwing code to Either. You want a compact cheat sheet rather than a long tutorial. Create Transform Extract Common Patterns vs try/catch Use Either when error type matters and you want to chain operations. Limitations Use this skill only when the task clearly matches the scope described above. Do not treat the output as a substitute for environment-specific validation, testing, or expert review. Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing. Reference scope These are fp-ts 2.x fragments. Supply application variables, types, validators and imports, and check the installed version. map does not catch thrown exceptions. Task has no typed error channel; an improperly wrapped promise can still reject. Use tryCatch at fallible boundaries. Official API: fp-ts modules.

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills sickn33/fp-either-ref--893dc9

View the source on GitHub

Browse the @skills marketplace