effect-service-implementation
CommunityBuild focused Effect services that compose
Software Engineering#effect-ts#dependency injection#layer composition#service architecture#context service#capability design#testing with layers
Authormpsuesser
Version1.0.0
Installs0
System Documentation
What problem does it solve?
It solves the problem of building large, monolithic or poorly separated Effect codebases by guiding you to implement each capability as a small, composable Effect service with clear dependency wiring.
Core Features & Use Cases
- Namespace-module service structure: Keep
Interface,Servicetag,layer, and (optionally)defaultLayertogether for an explicit service graph. - Dependency-safe construction: Use
Layer.effectwith captured dependencies viayield*, while ensuring service method Requirements stay asnever(no requirement leakage). - Production composition by default: Build
defaultLayerviaLayer.provideso wiring is straightforward, testable, and maintainable. - Capability-based design: Split features into single-responsibility services like repositories, gateways, coordinators, and run-state.
- Testing-friendly layers: Promote implementation details into layers so you can swap behavior using
Layer.succeedorLayer.mock.
Quick Start
Implement your capability as a namespace that defines an Interface, an empty Context.Service tag, a layer built with Layer.effect and Effect.gen, and a defaultLayer that wires in dependencies with Layer.provide only when needed.
Dependency Matrix
Required Modules
None requiredComponents
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-service-implementation Download link: https://github.com/mpsuesser/pi-effect-harness/archive/main.zip#effect-service-implementation Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.