effect-ts
Installation
SKILL.md
Effect-TS
Effect is a TypeScript library for building production-grade software with typed errors, structured concurrency, dependency injection, and built-in observability.
Version Detection
Before writing Effect code, detect which version the user is on:
# Check installed version
cat package.json | grep '"effect"'
- v3.x (stable, most production codebases):
Context.Tag,Effect.catchAll,Effect.fork,Data.TaggedError - v4.x (beta, Feb 2026+):
Context.Service,Effect.catch,Effect.forkChild,Schema.TaggedErrorClass
Note: v4 beta briefly used a
ServiceMapmodule, renamed back toContexton 2026-04-07 (PR #1961). If you seeServiceMap.*in any doc or older beta code, it is the currentContext.*. Both v3 and v4 importContextfrom"effect"; the exports inside differ (Context.Tagin v3 vsContext.Servicein v4).
If the version is unclear, ask the user. Default to v3 patterns for existing codebases, v4 for new projects.