effect-ts

Implement idiomatic Effect-TS patterns for services, layers, and typed error handling.

Updated Apr 12, 2026
One-click install
npx skills add https://github.com/antoinersw/pbi-versioning --skill effect-ts-antoinersw
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: effect-ts
Source: https://github.com/antoinersw/pbi-versioning/tree/main/.claude/skills/effect-ts
Command: npx skills add https://github.com/antoinersw/pbi-versioning --skill effect-ts-antoinersw

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides clear guidance for implementing robust, idiomatic Effect-TS patterns across services, layers, error handling, and testing, helping developers write maintainable functional code.

Core Features & Use Cases

  • Idiomatic use of Effect-TS for services and layers with dependency injection
  • Structured error handling and typed errors following best practices
  • Patterns for composability, testing, and Next.js integration with Effect-TS

Quick Start

Provide a minimal Effect-TS example implementing a simple service with dependency injection and error handling

Frequently Asked Questions about effect-ts

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

FAQPage Schema
How do I implement dependency injection in Effect-TS?

Implement dependency injection in Effect-TS using Context.Tag-based services and Layer composition to provide dependencies safely. This approach structures functional apps by isolating service logic and passing contexts through typed layers.

What is the best way to handle typed errors in Effect-TS?

Handle typed errors in Effect-TS by leveraging Effect primitives for safe error management and structured error handling. This Skill provides patterns to define typed errors and manage failures functionally without breaking application composability.

How do I test Effect-TS layers and services?

Test Effect-TS layers and services by utilizing Layer composition to swap dependencies with test mocks. This Skill covers testing patterns that ensure your functional services remain isolated, composable, and verifiable during unit tests.

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

You can integrate Effect-TS with Next.js applications using specific patterns for functional app development. This Skill provides guidance on combining Effect primitives, dependency injection, and typed error handling within the Next.js framework.

When should I use Layer composition in Effect-TS?

Use Layer composition in Effect-TS when building complex applications that require safe dependency injection and modular error handling. Layers allow you to assemble services functionally, ensuring dependencies are resolved safely and testably at application boundaries.