effect-stream

Build pull-based streaming pipelines with Effect Stream primitives and backpressure.

22|1|Updated Apr 14, 2026
One-click install
npx skills add https://github.com/mpsuesser/pi-effect-harness --skill effect-stream-mpsuesser
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: effect-stream
Source: https://github.com/mpsuesser/pi-effect-harness/tree/main/harnesses/effect/skills/effect-stream
Command: npx skills add https://github.com/mpsuesser/pi-effect-harness --skill effect-stream-mpsuesser

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Effect Stream helps you build pull-based streaming pipelines that emit values over time while handling errors and resources correctly, without loading everything into memory or losing control of backpressure.

Core Features & Use Cases

  • Create streams from multiple sources: values, iterables, effects (with schedules), pagination, async iterables, DOM/Node events, callback-based queues, and readable streams.
  • Transform and control flow: map/filter/flatMap, scan/group/batch, rate control (debounce/throttle/timeout), indexing/zipping, and error recovery.
  • Consume and encode data: collect/drain/fold/run for each element, and encode/decode NDJSON or Msgpack via channels with schema validation.
  • Manage concurrency and sharing: merge/interleave/broadcast/share with scoped safety and deterministic or arrival-order behavior.

Quick Start

Use the effect-stream skill to take an NDJSON stream, decode it with a schema, filter error entries, and re-encode it back to NDJSON for collection.

Frequently Asked Questions about effect-stream

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

FAQPage Schema
How do I build a streaming pipeline with backpressure and resource safety?

Build pull-based streaming pipelines using Effect Stream primitives like Stream, Sink, and Channel to handle backpressure semantics and ensure resource safety via scoped constructs without loading entire datasets into memory.

Can I decode and encode NDJSON streams with schema validation?

Yes, you can process NDJSON streams by applying schema-aware channel-based decoding and encoding to safely transform and consume sequences of values while validating data integrity.

Does Effect Stream work with async iterables and Node readable streams?

Effect Stream supports creating streams from multiple sources including async iterables, readable streams, pagination, callback-based queues, and DOM or Node events for comprehensive data ingestion.

How do I manage concurrency when merging or broadcasting multiple streams?

Manage concurrency and sharing by using merge, interleave, broadcast, and share operations to combine streams with scoped safety and deterministic or arrival-order behavior.

What is the best way to handle rate control and error recovery in a stream?

Apply transform and control flow operations like debounce, throttle, timeout, and error recovery directly within your Effect streaming pipeline to regulate value emission and handle failures gracefully.

How do I encode data using Msgpack in an Effect streaming pipeline?

Use schema-aware channel-based encoding to serialize stream data into Msgpack format, allowing you to efficiently consume and encode sequences of values within your pipeline.