schema-composition
Installation
SKILL.md
Schema Composition Skill
Expert guidance for composing, transforming, and validating data with Effect Schema.
Core Concepts
The Schema Type
Every schema in Effect has the type signature Schema<Type, Encoded, Context> where:
- Type: The validated, decoded output type (what you get after successful decoding)
- Encoded: The raw input type (what you provide for decoding)
- Context: External dependencies required for encoding/decoding (often
never)
Example:
import { Schema } from "effect"