effect-patterns-core-concepts

Provide structured Effect-TS core concept patterns for type-safe combinators and Layer-based dependency management.

785|26|Updated Jun 22, 2025
One-click install
npx skills add https://github.com/PaulJPhilp/EffectPatterns --skill effect-patterns-core-concepts
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: effect-patterns-core-concepts
Source: https://github.com/PaulJPhilp/EffectPatterns/tree/main/config/.claude-plugin/plugins/effect-patterns/skills/effect-patterns-core-concepts
Command: npx skills add https://github.com/PaulJPhilp/EffectPatterns --skill effect-patterns-core-concepts

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Effect-TS core concepts patterns provide a practical guide to modeling effects, errors, and dependencies in TypeScript applications, enabling safer, more composable code.

Core Features & Use Cases

  • Pattern guidance for core concepts including Effect.map, Effect.flatMap, Option, Either, and Stream to build robust apps.
  • Clear guidance on dependency injection with Layer and safe error handling and resource management.
  • Real-world use cases spanning data processing, I/O, streaming, and API integrations.

Quick Start

Install the Effect library, import the core pattern modules, and write a minimal program that uses Effect.succeed and Effect.map to transform a value, then experiment with Option, Either, and Layer-based services.

Frequently Asked Questions about effect-patterns-core-concepts

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

FAQPage Schema
How do I handle errors and dependencies in Effect-TS?

Effect-TS uses three-channel Effects (A, E, R) to model errors and dependencies. Use Layer for dependency injection and safe error handling to build robust, composable TypeScript applications.

What is the best way to structure Effect-TS core concepts in a TypeScript app?

Structure Effect-TS apps using core concept patterns like Effect.map, Effect.flatMap, Option, and Either. Apply these combinators for type-safe data processing, I/O, and API integrations.

How do I manage streaming data with Effect-TS?

Effect-TS provides Stream patterns for processing streaming data. Combine streams with Layer-based dependency management to handle real-world data processing and I/O operations safely.

Do I need to understand functional programming to use Effect-TS patterns?

Effect-TS patterns apply functional programming concepts like type-safe combinators and immutable data flows. Prior knowledge of TypeScript and functional composition helps build robust apps faster.

How do I set up dependency injection in an Effect-TS application?

Set up dependency injection in Effect-TS using Layer. Define services with Layer-based management to satisfy the R channel in Effects, enabling safe and testable dependency resolution.

When should I use Option versus Either in Effect-TS?

Use Option in Effect-TS for optional values that may be absent, and Either for operations that can fail with a specific error. Both provide type-safe combinators for robust error handling.