effect-patterns-streams-getting-started

Create and run Effect-TS streaming pipelines with Stream and Effect operators.

785|26|Updated Jun 22, 2025
One-click install
npx skills add https://github.com/PaulJPhilp/EffectPatterns --skill effect-patterns-streams-getting-started
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: effect-patterns-streams-getting-started
Source: https://github.com/PaulJPhilp/EffectPatterns/tree/main/config/.claude-plugin/plugins/effect-patterns/skills/effect-patterns-streams-getting-started
Command: npx skills add https://github.com/PaulJPhilp/EffectPatterns --skill effect-patterns-streams-getting-started

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps developers master streams getting started in Effect-TS by providing guided patterns, practical examples, and best practices for building streaming data pipelines.

Core Features & Use Cases

  • Curated Stream patterns that illustrate how to create, transform, and consume streams in Effect-TS.
  • Practical guidance on when to use Stream vs Effect, with runnable examples for common operations like runCollect, runForEach, take, and drop.
  • Real-world use cases such as processing event streams, large datasets, and incremental data processing in a reactive pipeline.

Quick Start

Install the Effect library, create a small TS file that imports { Effect, Stream } from 'effect', builds a simple stream with Stream.make or Stream.fromIterable, and runs it with Effect.runPromise to observe output.

Frequently Asked Questions about effect-patterns-streams-getting-started

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

FAQPage Schema
How do I get started with streams in Effect-TS?

To get started with Effect-TS streams, install the Effect library and import { Effect, Stream }. Build a simple stream with Stream.make or Stream.fromIterable, then execute it with Effect.runPromise to observe the data output.

What is the difference between Stream and Effect in Effect-TS?

In Effect-TS, Effect handles single asynchronous computations, while Stream processes continuous sequences of values. Stream is specifically designed for reactive pipelines, event processing, and large datasets where multiple values flow over time.

How do I collect stream values using runCollect in Effect-TS?

Use the runCollect operator in Effect-TS to gather all stream values into a single array. This operator processes the entire stream pipeline and returns the collected results when the stream completes.

Can I use Effect-TS streams for real-time event processing?

Yes, Effect-TS streams support real-time workloads including event streams, large datasets, and incremental data processing. You can transform and consume continuous data reactively using operators like runForEach.

How do I take or drop elements from an Effect-TS stream?

Use the take operator to keep a specified number of elements from the start of an Effect-TS stream, and use drop to skip elements. Both operators transform the stream pipeline without consuming it until run.