effect-typeclass-design
Installation
SKILL.md
Typeclass Design Skill
Use this skill when implementing typeclasses that provide reusable abstractions across multiple types.
Source Reference
Baseline: Effect 4.1.0. Read git show effect@4.1.0:packages/effect/src/Function.ts,
Order.ts, and Duration.ts in the Effect source checkout; main may be newer.
The typeclasses below are application-defined, not built-in Effect services.
The dual and Order.mapInput contracts are unchanged from 4.0.0.
Pattern: Curried Typeclass Functions
All typeclass functions must be fully curried to enable partial application:
import { Duration } from 'effect';