effect-incremental-migration
CommunityMigrate async modules to Effect safely
Software Engineering#error handling#effect#layer design#async migration#context service#managed runtime#typed effects
Authormpsuesser
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Incrementally migrating Promise-based modules to Effect services without breaking existing callers, while making the dependency graph explicit in service and layer design.
Core Features & Use Cases
- Service Interface Extraction: Convert module methods to
Effect.Effecttypes while keeping signatures aligned with the original Promise API. - Layer-Driven Dependency Wiring: Build
Layer.effectimplementations that capture real requirements viayield*, then compose adefaultLayerfor the normal runtime path. - Runtime Bridge for Backward Compatibility: Provide temporary async facades via
ManagedRuntimeand a sharedmemoMap, then prune once all Effect callers yield the service directly. - Call-Site Migration Rules: Replace
Effect.promise(() => facade())with directyield* Serviceusage and update error handling from defect-catching to typed channel errors. - Pattern Transformations: Migrate
Promise.allfan-out toEffect.forEachwith explicit concurrency control.
Quick Start
Run the effect-incremental-migration skill to convert your module’s Promise-based functions into a Context Service plus Layer wiring, keeping temporary async facades only until your internal Effect callers yield the service directly.
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-incremental-migration Download link: https://github.com/mpsuesser/pi-effect-harness/archive/main.zip#effect-incremental-migration 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.