with one click
kotlin-sum-types
Parse, don't validate - using sealed classes for type-safe validation and state representation. Model valid/invalid states explicitly, validate at boundaries, operate on valid types internally. Use when implementing validation with sealed classes, modeling valid/invalid states, or applying parse-don't-validate patterns in Kotlin. The pattern is transferrable to other languages, though the mechanism will differ.
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.