npx skills add smithery/mepuka --skill effect-streams-pipelines
mepuka/effect-ontology · Archived
effect-streams-pipelines
Stream creation, transformation, sinks, batching, and resilience. Use when building data pipelines with concurrency and backpressure.
Installation
npx skills add mepuka/effect-ontology --skill effect-streams-pipelines
Stronger alternatives
This repository is archived — consider an actively maintained alternative.
Skill index and decision guide. Use to pick the right Effect Skill quickly and follow a minimal…
331 installsComplete catalog of 130+ Effect-TS patterns from EffectPatterns repository. Use when looking fo…
50 installsError modeling and recovery with TaggedError, catchTag(s), mapError, and retry schedules. Use w…
43 installsConcurrency with Effect.all, forEach concurrency, Fiber lifecycle, race and timeouts. Use for p…
41 installsSimilar popular skills
Related neighbors and high-traction skills in the same topics — useful to compare before installing.
Guidance for distinctive, intentional visual design when building new UI or reshaping an existi…
866.4K installsBrowser automation CLI for AI agents. Use when the user needs to interact with websites, includ…
810.4K installsReview UI code for Web Interface Guidelines compliance. Use when asked to "review my UI", "chec…
617.3K installsBuild, deploy, evaluate, optimize, fine-tune, and manage Microsoft Foundry agents, models, and …
576.5K installsDebug Azure production issues on Azure using AppLens, Azure Monitor, resource health, and safe …
568.9K installsAlso in this package
Other skills from mepuka/effect-ontology · top by installs.
npx skills add mepuka/effect-ontology
More details
Agent compatibility
Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.
Also listed on
Alternate registries and mirrors of this skill.
Repository health
main
Skill metadata
Parsed from SKILL.md frontmatter.
Read, Grep, Glob, Edit, Write, mcp__effect-docs__effect_docs_searchPackage contents
Files included with this skill beyond the listing page.
-
skill md
SKILL.md3,841 B -
docs
SUMMARY.md165 B
History
- First seen on skills.sh
- First recorded snapshot · 32 installs
SKILL.md
Streams & Pipelines
When to use
- You’re building data pipelines with batching/backpressure
- You need controlled concurrency per element
- You must process large inputs with constant memory
Create
const s = Stream.fromIterable(items)
Transform
const out = s.pipe(
Stream.mapEffect(processItem, { concurrency: 4 }),
Stream.filter((a) => a.valid),
Stream.grouped(100)
)
Consume
yield* Stream.runDrain(out)
// or
const all = yield* Stream.runCollect(out)
Resource-Safe
const fileLines = Stream.acquireRelease(open(), close).pipe(
Stream.flatMap(readLines)
)
Resilience
const resilient = s.pipe(
Stream.mapEffect((x) => op(x).pipe(Effect.retry(retry)))
)
Real-world snippet: Stream to S3 with progress and scoped background ticker
let downloadedBytes = 0
yield* Effect.gen(function* () {
// background progress ticker
yield* Effect.repeat(
Effect.gen(function* () {
const bytes = yield* Effect.succeed(downloadedBytes)
yield* Effect.log(`Downloaded ${bytes}/${contentLength} bytes`)
}),
Schedule.forever.pipe(Schedule.delayed(() => "2 seconds"))
).pipe(Effect.delay("100 millis"), Effect.forkScoped)
yield* s3.putObject(key,
resp.stream.pipe(
Stream.tap((chunk) => { downloadedBytes += chunk.length; return Effect.void })
),
{ contentLength }
)
}).pipe(Effect.scoped)
Guidance
- Prefer
Stream.mapEffectwithconcurrencyto control parallel work - Use
grouped(n)for batching network/DB operations - Always model resource acquisition with
acquireRelease
Pitfalls
- Collecting massive streams into memory → prefer
runDrainor chunked writes - Doing blocking IO in transformations → keep operations effectful and non-blocking
Cross-links
- Concurrency: pools and timeouts for per-item work
- Resources: scope/finalizers for pipeline resources
- EffectPatterns inspiration: https://github.com/PaulJPhilp/EffectPatterns
Local Source Reference
CRITICAL: Search local Effect source before implementing
The full Effect source code is available at docs/effect-source/. Always search the actual implementation before writing Effect code.
Key Source Files
- Stream:
docs/effect-source/effect/src/Stream.ts - Sink:
docs/effect-source/effect/src/Sink.ts - Channel:
docs/effect-source/effect/src/Channel.ts
Example Searches
# Find Stream creation patterns
grep -F "fromIterable" docs/effect-source/effect/src/Stream.ts
grep -F "make" docs/effect-source/effect/src/Stream.ts
grep -F "fromEffect" docs/effect-source/effect/src/Stream.ts
# Study Stream transformations
grep -F "mapEffect" docs/effect-source/effect/src/Stream.ts
grep -F "filter" docs/effect-source/effect/src/Stream.ts
grep -F "grouped" docs/effect-source/effect/src/Stream.ts
# Find Stream consumption
grep -F "runDrain" docs/effect-source/effect/src/Stream.ts
grep -F "runCollect" docs/effect-source/effect/src/Stream.ts
# Look at Stream test examples
grep -F "Stream." docs/effect-source/effect/test/Stream.test.ts
Workflow
- Identify the Stream API you need (e.g., mapEffect, grouped)
- Search
docs/effect-source/effect/src/Stream.tsfor the implementation - Study the types and pipeline patterns
- Look at test files for usage examples
- Write your code based on real implementations
Real source code > documentation > assumptions
References
- Agent Skills overview: https://www.anthropic.com/news/skills
- Skills guide: https://docs.claude.com/en/docs/claude-code/skills