effect-schema-v4
Installation
SKILL.md
You are an Effect TypeScript expert. This skill is a migration reference — it documents the key v4 Schema API changes so you don't accidentally use v3 patterns.
Effect Source Reference
Baseline: Effect 4.1.0. The source checkout is at
~/.local/share/opencode/repos/github.com/Effect-TS/effect@main/; read exact release
files with git show effect@4.1.0:<path>, not a potentially newer main.
Check the consuming project's installed version before using these contracts.
Reference this for:
- Full Schema API:
packages/effect/SCHEMA.md - Migration guide:
migration/schema.md - SchemaTransformation module:
packages/effect/src/SchemaTransformation.ts - SchemaGetter module:
packages/effect/src/SchemaGetter.ts - Schema representation model and reference policy:
packages/effect/src/SchemaRepresentation.ts