What problem does it solve?
Provides a single authoritative set of mandatory coding patterns to prevent inconsistent types, unsafe error handling, and fragile service wiring across the Reactive Agents TypeScript codebase, ensuring compile-time safety and predictable runtime behavior.
Core Features & Use Cases
- Type Safety Enforcement: Mandates Schema.Struct and branded IDs to produce consistent runtime-validated types and derived TypeScript types.
- Error and Service Patterns: Requires Data.TaggedError for structured errors and Context.Tag + Layer.effect for service implementations to enable composable, testable layers.
- Resource and Concurrency Rules: Prescribes Layer.scoped with acquireRelease, Ref for mutable state, and Effect.sync/tryPromise usage to standardize resource cleanup and async error mapping.
- Use Case: Use during development, code review, and CI to validate new packages, implement services, and ensure all packages export a createXxxLayer factory and index re-exports.
Quick Start
Use the effect-ts-patterns skill to validate a new TypeScript service against the repository's Effect-TS coding patterns before committing.