effect-layer-design

Community

Design clean dependency layers in Effect

Authormpsuesser
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Effect layer design becomes error-prone when dependencies, resource lifecycles, and composition semantics are handled inconsistently, leading to tangled wiring and brittle services.

Core Features & Use Cases

  • Layer dependency modeling: Defines services with explicit input requirements and construction errors using Effect layer types.
  • Resource-safe layer construction: Uses Layer.effect with scoped lifecycle patterns, including acquireRelease-style cleanup.
  • Composition strategies: Applies the right composition approach (merge vs provide vs provideMerge) to build production and test layer stacks cleanly.

Quick Start

Tell the assistant: "Create an Effect v4 layer design for a Logger service that depends on Config, using Layer.effect with correct dependency types and a defaultLayer suitable for production."

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: effect-layer-design
Download link: https://github.com/mpsuesser/pi-effect-harness/archive/main.zip#effect-layer-design

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.