effect
Installation
SKILL.md
Effect
Use this skill to write Effect code that reads like normal TypeScript where business logic matters, while still using Effect's composition model for errors, observability, retries, layers, and dependency wiring.
First Steps
- Inspect the project before editing:
- Check
package.jsonforeffect,@effect/*, TypeScript settings, test scripts, and lint/typecheck commands. - Search existing code for
Effect.gen,pipe,Layer,Context.Tag,Data.TaggedError, andcatchTag. - Match the repo's import style and Effect version. Do not introduce a second style casually.
- Check
- If the task is nontrivial, read Gen vs Pipe Patterns before changing code.
- Prefer a small typed Effect boundary over rewriting an entire module. Keep normal synchronous pure helpers as plain functions unless Effect adds real value.
Style Rule
Use Effect.gen for business logic and .pipe(...) for composition.