domain-modeling
Installation
SKILL.md
Effect Domain Modeling Skill
Use this skill when creating domain models, entities, value objects, or any types that represent core business concepts. This skill covers the complete lifecycle from type definition to runtime utilities.
Core Pattern: Schema.TaggedStruct + Schema.Data
The foundation of Effect domain modeling combines three key features:
- Schema.TaggedStruct - Automatic
_tagdiscriminator for union types - Schema.Data - Automatic
Equalimplementation for structural equality - Schema.decodeSync - Type-safe constructors with validation
import { Schema, Equal } from "effect"