effect-ts

Apply idiomatic Effect-TS patterns in TypeScript projects for reliable error handling and DI via Layers.

6|2|Updated Jan 25, 2026
One-click install
npx skills add https://github.com/PaulRBerg/dot-agents --skill effect-ts-paulrberg
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: effect-ts
Source: https://github.com/PaulRBerg/dot-agents/tree/main/skills/effect-ts
Command: npx skills add https://github.com/PaulRBerg/dot-agents --skill effect-ts-paulrberg

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps developers apply idiomatic Effect-TS patterns and best practices in TypeScript projects, improving reliability and maintainability of functional code.

Core Features & Use Cases

  • Error handling: Use Effect's typed errors, catchAll/catchTag, and Effect.gen patterns to model failures clearly.
  • Dependency injection & composition: Implement services and layers, compose them, and provide dependencies via Effect.provide.
  • Resource management & testing: Manage resources with scoped effects and harness tests with Effect's testing utilities.

Quick Start

Use the Skill to scaffold a minimal Effect-TS program: define a simple service, wrap it in a Layer, and run a small Effect that uses the service.

Frequently Asked Questions about effect-ts

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I handle typed errors in TypeScript using Effect-TS?▼

Effect-TS handles typed errors using typed error channels with catchAll and catchTag patterns. You model failures clearly by defining typed errors within your Effect computations, ensuring type safety across error-handling flows.

What's the best way to structure dependency injection in TypeScript with Layers?▼

Layers provide dependency injection in TypeScript by defining services and composing them. You provide dependencies to your Effect using Effect.provide, enabling type-safe service composition and modular architecture.

How do I test Effect-TS programs in a TypeScript project?▼

You test Effect-TS programs using Effect's built-in testing utilities. The Skill guides harnessing tests with these utilities, allowing you to verify functional code, error handling, and resource management within your TypeScript project.

Can I integrate Effect-TS with Next.js applications?▼

Yes, Effect-TS integrates with Next.js applications. The Skill provides patterns for applying idiomatic Effect-TS in Next.js projects, covering type-safe service composition and reliable error handling within the framework.

How do I manage resources safely in TypeScript using Effect?▼

Effect manages resources safely using scoped effects. You define resource acquisition and release within a scope, ensuring proper cleanup and resource management during the execution of your Effect computations.