paulrberg/agent-skills

effect-ts

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.

查看源码

使用方法

  1. 复制安装命令,在自己的智能体环境安装前先检查源码包。
  2. 从原始文档核对所需工具、凭据和支持的宿主。
  3. 说明输入材料与期望交付物,并对照来源检查输出。
npx skills add https://github.com/paulrberg/agent-skills --skill effect-ts

开始前需了解

  • 安装不包含模型订阅、API 额度或访问文件的权限。
  • 仓库星数和安装量反映活跃情况,不等于独立质量或安全测试。
仓库原始内容

按源仓库内容呈现,保留标题、案例、代码、表格、链接以及原文引用的演示图片。

Effect 3

Apply Effect 3 semantics from project-local architecture, the narrowest relevant reference, and source matching the target's installed packages.

Workflow

Do not activate this workflow merely because a file imports effect. For nontrivial Effect work:

  1. Resolve the target package or workspace and its exact installed effect and relevant @effect/* versions. If

effect is not 3.x, stop because this skill does not apply.

  1. Inspect neighboring services, layers, errors, schemas, runtime boundaries, and tests. Local conventions decide

organization; installed package evidence decides API facts.

  1. Read references/critical-rules.md, then only the task-specific references below.
  2. Verify every uncertain import, signature, or behavior against the package installation visible to the target

workspace before editing.

  1. Implement the smallest pattern consistent with the project and run the narrowest test or typecheck covering the

changed semantics.

Evidence Order

Use the target workspace's manifest and lockfile to identify versions. Prefer, in order:

  1. the installed package's src/, README, tests, and changelog;
  2. its emitted declarations when source is not shipped;
  3. the matching official package artifact or source tag.

Do not install or update dependencies solely to obtain documentation. Do not trust an unrelated checkout or a source branch that does not match the target's installed version. If exact behavior cannot be verified, stop rather than guessing.

Reference Router

TaskReference
Services, Layers, tags, Effect.fnreferences/services-layers.md
Config providers and secretsreferences/config.md
Schema, JSON Schema, encoded errors/modelsreferences/schema-jsonschema.md
@effect/vitest, clocks, fibers, retriesreferences/testing.md
resources, scheduling, refs, concurrencyreferences/runtime.md
streams and backpressurereferences/streams.md
pattern matching and tagged unionsreferences/pattern-matching.md
@effect/aireferences/ai.md
@effect/sqlreferences/sql.md
Next.js / @prb/effect-nextreferences/next-js.md
Effect Atomreferences/effect-atom.md
Option at nullable boundariesreferences/option-null.md

For platform/RPC APIs, collection utilities, deprecations, or constructor lookup, inspect the installed package source directly instead of loading a local API inventory.

Boundaries

  • Keep pure helpers, constants, and path manipulation pure unless an Effect boundary provides a concrete dependency,

testability, resource-safety, or error-model benefit.

  • Preserve existing domain facades and service/runtime boundaries unless the user requested redesign.
  • Prefer typed failures and scoped resources at IO boundaries; choose Schema-backed errors/models only when encoding or

boundary validation is needed.

  • Do not broaden environment requirements merely to replace a small platform call.

For changes, completion requires code consistent with local Effect architecture, selected references and installed source where needed, and the narrowest test/typecheck that exercises the changed semantics. Read-only work requires evidence for the reported conclusion. Finish with ### ⚡ Effect — ✅ change complete after verified edits or ### ⚡ Effect — 🔎 reviewed, no files written for read-only work, one sentence naming the boundary or pattern used, and ### 🧪 Verification with exact scoped commands/results. If required validation is incomplete, use ### ⚡ Effect — ⛔ blocked instead. Add ### ⚠️ Limitation only for non-blocking caveats. Never decorate typed errors, Schema messages, logs, tests, generated JSON/API responses, or command output.

按任务相关推荐

来自同一仓库

更多 Skills

全部 Skills