fp-pipe-ref

Compose and chain functions using pipe and flow in fp-ts.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill helps developers understand and apply the pipe and flow utilities from fp-ts to build readable, maintainable function pipelines, reducing boilerplate and cognitive load.

Core Features & Use Cases

  • Pipe: chain a value through a sequence of functions in a clear, data-last style.
  • Flow: create reusable pipelines that don't incur partial application friction until invoked.
  • Use Case: compose simple data transformations (trim, uppercase, split) and wire them into reusable components across modules.

Quick Start

Use the fp-pipe-ref skill to quickly reference how to apply pipe and flow for common data transformations in TypeScript.

Frequently Asked Questions about fp-pipe-ref

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

FAQPage Schema
How do I chain data transformations in fp-ts using pipe?

Pipe in fp-ts chains a value through a sequence of functions in a data-last style. It passes the initial value to the first function, then feeds each output directly into the next, reducing boilerplate and cognitive load.

What is the difference between pipe and flow in fp-ts?

Flow creates reusable pipelines that don't incur partial application friction until invoked, unlike pipe which immediately applies a value to the chain. Flow is ideal for defining reusable transformation logic across modules before data is introduced.

How do I create reusable function pipelines in TypeScript?

You can create reusable function pipelines in TypeScript by using flow from fp-ts. It composes simple data transformations like trim, uppercase, and split into a single function that can be wired into reusable components across modules.

When should I use functional composition for data transformations in TypeScript?

Use functional composition for data transformations when you need to build readable, maintainable pipelines. It is ideal for scenarios involving small in-module pipelines and wiring reusable transformation logic into components without increasing cognitive load.

Does fp-ts pipe support data-last style function chaining?

Yes, fp-ts pipe supports data-last style function chaining. This approach places the data as the first argument, allowing subsequent functions to be composed sequentially, which reduces partial application friction and improves readability.