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.
npx skills add sickn33/agentic-awesome-skills --skill fp-types-ref --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# 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? ``` Is the operation async? ├─ NO: Does it involve errors? │ ├─ YES → Either<Error, Value> │ └─ NO: Might value be missing? │ ├─ YES → Option<Value> │ └─ NO → Just use the value └─ YES: Does it involve errors? ├─ YES → TaskEither<Error, Value> └─ NO: Might value be missing? ├─ YES → TaskOption<Value> └─ NO → Task<Value> ``` ## Common Imports ```typescript // Core import { pipe, flow } from 'fp-ts/function' // Types import * as O from 'fp-ts/Option' // Maybe exists import * as E from 'fp-ts/Either' // Success or failure import * as TE from 'fp-ts/TaskEither' // Async + failure import * as T from 'fp-ts/Task' // Async (no failure) import * as A from 'fp-ts/Array' // Array utilities ``` ## One-Line Patterns | Need | Code | |------|------| | Wrap nullable | `O.fromNullable(value)` | | Default value | `O.getOrElse(() => default)` | | Transform if
- When to Use
- Which Type Should I Use?
- Common Imports
- One-Line Patterns
- Pattern Match
- Limitations
What does the fp-types-ref skill do?
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.
How do I install it?
Run `npx skills add sickn33/agentic-awesome-skills --skill fp-types-ref --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From sickn33/agentic-awesome-skills, a repository with 44,414 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.