All skills
paulrberg avatar

/effect-ts

@5a97bbf
by Paul Bergpaulrberg/agent-skills94 stars
7

Use for nontrivial Effect 3 work including services/layers, typed errors, Schema/JSONSchema, Config, runtime/concurrency, @effect/vitest, @effect/ai, @effect/sql, Effect Atom, or @prb/effect-next.

Use this Skill: https://skilld.dev/gh/paulrberg/agent-skills/effect-ts

This session only. Nothing lands on disk.

referencesstreams.md

≈311 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Streams and Backpressure

Streams are lazy and may be infinite. Before consuming one, determine its termination, backpressure, error, and resource semantics.

Bound Consumption

Never collect a stream that may be infinite without a bound. Use Stream.take, Stream.takeUntil, a domain termination condition, or an Effect timeout. Prefer runForEach, runFold, or another incremental consumer when the whole result does not need to be retained.

Preserve Backpressure and Chunking

Streams are pull-based; avoid converting them to eager arrays merely for familiar collection APIs. Use mapEffect or flatMap when a transformation is effectful, and choose concurrency explicitly. Batch with grouped or groupedWithin only when the downstream system benefits from the chosen size or time window.

Own Resources and Failures

Use Stream.acquireRelease, Stream.scoped, or Stream.ensuring for resources and cleanup. A consuming Scope must outlive the stream. Recovery with catchTag, catchAll, or retry must preserve the intended domain semantics; do not turn a required failure into an empty stream.

Tests must bound streams, advance TestClock for scheduled producers, and interrupt or scope background consumers.

Source: SKILL.md on GitHub

No alerts7d5 checks · Risk SAFE
  • Gen Agent Trust Hub7d

    The skill provides comprehensive guidelines and best practices for developing with the Effect 3 library ecosystem. It focuses on correct usage of functional programming patterns, error handling, configuration management, and testing, while promoting security-aware practices like secret redaction and runtime schema validation.

  • Socket7d

    No alerts

  • Snyk7d

    Risk: LOW · No issues

  • Runlayer6mo

    7 files scanned · No issues

  • ZeroLeaks5mo

    Score: 93/100 · 2 sections analyzed

Signed by skilld at 5a97bbf. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub yesterday.

Activeupdated 2 months ago
Other metadata
compatibility
Requires a project using current stable Effect 3 packages; verify exact APIs against the target's installed package source.

README badge

README badge for paulrberg/agent-skills/effect-ts