Agent skill · writing content · sickn33
fp-types-ref
Quick reference for fp-ts types. Use when user asks which type to use, needs Option/Either/Task decision help, or wants fp-ts imports.
Why this skill is useful
Provides specific guidance on choosing between fp-ts types and common import patterns 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
fp-ts Quick Reference When to Use You need help choosing between Option, Either, Task, TaskEither, or related fp-ts types. The task is about imports, decision guidance, or selecting the right abstraction for a TypeScript flow. You want a compact reference for common fp-ts type choices and patterns. Which Type Should I Use? Common Imports One-Line Patterns Need Code ------ ------ Wrap nullable O.fromNullable(value) Default value O.getOrElse(() => fallbackValue) Transform if exists O.map(fn) Chain optionals O.flatMap(fn) Wrap try/catch E.tryCatch(() => risky(), toError) Wrap async TE.tryCatch(() => fetch(url), toError) Run pipe pipe(value, fn1, fn2, fn3) Pattern Match 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-types-ref--5af635