fp-types-ref

Guide fp-ts type selection for synchronous and asynchronous TypeScript workflows.

11|3|Updated Jan 30, 2026
One-click install
npx skills add https://github.com/whatiskadudoing/fp-ts-skills --skill fp-types-ref
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: fp-types-ref
Source: https://github.com/whatiskadudoing/fp-ts-skills/tree/main/skills/quick-ref/fp-types-ref
Command: npx skills add https://github.com/whatiskadudoing/fp-ts-skills --skill fp-types-ref

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This quick-reference skill helps developers decide which fp-ts type to use (Option, Either, Task, etc.) and simplifies imports when working with fp-ts.

Core Features & Use Cases

  • Decision guidance between Option, Either, Task, and related types based on sync/async and errors.
  • Quick import patterns for common fp-ts modules.
  • Use-case example: choosing a type for a nullable value and mapping over FP structures.

Quick Start

Ask the skill for a type decision: Which fp-ts type should I use for a nullable API response?

Frequently Asked Questions about fp-types-ref

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I choose the right fp-ts type for handling nullable or error-prone data in TypeScript?

Choosing the right fp-ts type in TypeScript requires evaluating whether your workflow is synchronous or asynchronous and whether it involves nullable values or recoverable errors. This guides you to select Option, Either, or Task based on those specific data-handling conditions.

When should I use Task instead of Either for asynchronous operations in fp-ts?

Use Task in fp-ts for asynchronous operations instead of Either when dealing with lazy asynchronous computations that do not inherently fail with recoverable errors. Task handles async workflows, whereas Either is meant for synchronous error handling.

What is the difference between Option and Either types in functional TypeScript?

The difference between Option and Either in functional TypeScript is that Option represents a nullable value or the absence of a value, while Either represents a computation that can fail and return an error. This skill maps your specific data scenario to the correct structure.

How do I import fp-ts modules for mapping over Option or Task structures?

To import fp-ts modules for mapping over Option or Task structures, you can use the quick import patterns provided by this skill. It offers actionable guidance on the correct module paths for common fp-ts structures to quickly apply functional operations.

Do I need external tooling to decide between fp-ts types for a nullable API response?

You do not need external tooling to decide between fp-ts types for a nullable API response. This skill provides quick, actionable guidance and a concise decision tree to help you choose the appropriate type without requiring any external dependencies.