effect-ts

Guide functional programming with Effect-TS for typed error handling and dependency injection.

1|Updated Jul 22, 2026
One-click install
npx skills add https://github.com/wyattjoh/skills --skill effect-ts-wyattjoh
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: effect-ts
Source: https://github.com/wyattjoh/skills/tree/main/skills/effect-ts
Command: npx skills add https://github.com/wyattjoh/skills --skill effect-ts-wyattjoh

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This skill addresses the complexity of functional programming in TypeScript by providing expert guidance on error handling, dependency injection, and resource management using the Effect library.

Core Features & Use Cases

  • Typed Error Handling: Replace error-prone try-catch blocks with Effect's robust, type-safe error system.
  • Dependency Injection: Implement clean, testable service layers using Context and Layers.
  • Use Case: When refactoring a legacy Node.js service to be more resilient, use this skill to implement proper concurrency, telemetry, and failure recovery patterns.

Quick Start

Ask the effect-ts skill to refactor the current service layer to use Effect Context tags and provide a live implementation layer.

Frequently Asked Questions about effect-ts

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

FAQPage Schema
How do I handle errors in TypeScript without try-catch blocks?

Effect-TS provides a typed error handling system to replace try-catch blocks with type-safe error propagation. This ensures compile-time tracking of failure cases, making your TypeScript code robust and predictable.

What is the best way to implement dependency injection in a TypeScript service?

Implement dependency injection in TypeScript using Effect's Context tags and Layers. This approach constructs clean, testable service layers, allowing you to easily swap implementations and manage dependencies functionally.

How do I refactor a legacy Node.js service for better concurrency and resilience?

Refactor a legacy Node.js service using Effect-TS to implement proper concurrency, telemetry, and failure recovery patterns. This skill guides the transition to canonical functional programming structures for complex engineering tasks.

Does functional programming in TypeScript work well with concurrent operations?

Yes, functional programming in TypeScript supports complex concurrent operations using Effect-TS. The library provides robust patterns for stream-based processing and resource management within a highly composable structure.

Why should I use Effect Layers instead of standard classes for dependency management?

Effect Layers offer typed dependency injection and composability that standard classes lack. They enforce canonical Effect patterns, ensuring clean separation of concerns and highly testable service implementations.