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.

referencesruntime.md

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

Runtime, Resources, and Concurrency

Resource Lifetimes

Acquire resources with Effect.acquireRelease or Effect.acquireUseRelease and run them in a Scope. Put long-lived clients and background processes in Layer.scoped; keep the Layer's Scope owned by the application runtime.

Every forked fiber needs an owner and a completion policy: join it, interrupt it, or place it in a Scope that closes. Do not create fire-and-forget fibers whose failures and finalizers become invisible.

Time and Scheduling

Use Effect Clock, Duration, and Schedule instead of ambient time and ad hoc timer loops. Duration inputs accept human-readable strings; preserve the project's established representation rather than normalizing for style alone.

Choose retry schedules from failure semantics: retry only transient failures, bound attempts or elapsed time, and keep non-retryable domain failures outside the retry predicate.

Coordination Primitives

  • Ref owns mutable state accessed by Effects.
  • Deferred is a one-shot synchronization or result handoff.
  • SubscriptionRef owns state plus a stream of changes; construct it with the safe make API.

Do not reach for unsafe constructors merely to avoid yielding an Effect. For concurrency-sensitive behavior, test the coordination point explicitly rather than assuming a forked fiber has already run.

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