What problem does it solve?
This Skill demystifies Effect-TS development by providing canonical patterns and best practices for services, schemas, and state management with effect-atom. It helps developers build robust, type-safe, and maintainable applications, avoiding common pitfalls and ensuring architectural consistency.
Core Features & Use Cases
- Service Definition: Guides on choosing the right Effect-TS service pattern (Effect.Service, Context.Tag) for various scenarios.
- Atom-as-State: Enforces the
Atom.make() pattern for React state, avoiding Effect.Ref complexity and ensuring reactive, performant UIs.
- Schema & Observability: Provides patterns for
Schema.TaggedStruct, Schema.TaggedClass, and Effect.withSpan for robust domain modeling, data validation, and tracing.
- Use Case: When designing a new backend service or a complex state management system in a React application, invoke this Skill to get the recommended Effect-TS service definition,
Atom-based state management, and error handling patterns, ensuring your architecture is sound from the start.
Quick Start
Explain the recommended Effect-TS service definition pattern for a new data fetching service that uses effect-atom for state.