effect-machine Skill
CommunityDesign type-safe state machines that run as actors.
Software Engineering#event-driven#state machines#type-safe#actors#effect#async workflows#typed replies
Authorcevr
Version1.0.0
Installs0
System Documentation
What problem does it solve?
effect-machine Skill helps you model complex workflows as typed state machines (states, events, and transitions) and then run them safely as Effect-powered actors, avoiding scattered callback logic and “one status field” pitfalls.
Core Features & Use Cases
- Schema-first modeling: define
StateandEventschemas, then build transitions in a type-safe way. - Deterministic transition wiring: use
.on(...)for normal transitions,.onAny(...)for wildcard fallbacks, and.reenter(...)when you must re-run lifecycle even if the state tag doesn’t change. - Stateful async behavior: attach state-scoped work via
.spawn(...), run machine-lifetime work via.background(...), and schedule timeouts/postponed events with.timeout(...)and.postpone(...). - Typed replies and coordination: use
actor.call(...)for transition receipts andactor.ask(...)for typedEvent.reply(...)replies.
Quick Start
Build a checkout-style machine by defining State, Event, and Slot schemas, wiring transitions with .on(...), marking terminal states with .final(...), and then running it via Machine.spawn(...) followed by actor.start.
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-machine Skill Download link: https://github.com/cevr/effect-machine/archive/main.zip#effect-machine-skill 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.