effect-ts

Model typed effects, errors, and dependencies in TypeScript with Effect-TS.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/aitchwhy/dotfiles --skill effect-ts
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: effect-ts
Source: https://github.com/aitchwhy/dotfiles/tree/main/config/quality/generated/skills/effect-ts
Command: npx skills add https://github.com/aitchwhy/dotfiles --skill effect-ts

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Shows how to use Effect-TS to model typed effects and service dependencies.

Core Features & Use Cases

  • Defining services with Context and Layer patterns
  • Typed errors and decoding
  • Client/server usage patterns

Quick Start

Create a small program using Effect.ts to fetch data.

Frequently Asked Questions about effect-ts

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

FAQPage Schema
How do I model typed effects and dependencies in TypeScript?

Effect-TS provides a typed Effect<A, E, R> core for modeling effects with explicit error handling and dependency injection. Use Effect.gen for generator-based composition, Context.Tag for service definitions, and Layer for dependency routing across environments.

What's the best way to handle errors in Effect-TS programs?

Effect-TS supports typed error handling through the Effect type's error channel. Define error types explicitly, use Effect.gen to compose workflows with error propagation, and apply anti-patterns guidance to avoid common pitfalls in asynchronous error handling.

How do I structure services and layers in Effect-TS?

Define services using Context.Tag to create tagged dependencies, implement them as Layers, and compose layers to build modular service stacks. This pattern enables client/server usage across different environments with explicit type safety.

Can I use Effect-TS for typed decoding and schema validation?

Yes, Effect-TS integrates typed error handling with schema patterns for decoding. Combine Effect.gen workflows with typed error channels to validate and decode data while maintaining explicit error types throughout your application.

When should I use Effect-TS instead of other TypeScript patterns?

Effect-TS excels when you need explicit typed effects, structured error handling, and modular dependency management. It's suited for building robust effectful programs where error paths and dependencies are first-class concerns in the type system.

Does Effect-TS work with asynchronous dependencies and external services?

Effect-TS handles asynchronous dependencies through its typed Effect model and Layer composition. Define async operations as Effects, compose them with Context and Layer patterns, and manage client/server interactions with explicit type safety.