principle-type-system-discipline - Type System Discipline
Guide type design and code review in statically-typed languages to eliminate illegal states, parse external data, and ensure exhaustive matching.
Tags
Updated: 2026-09-15Capabilities
Typical Inputs
Typical Outputs
What this skill does
- Make illegal states unrepresentable
- Brand semantic primitives
- Parse external data at boundaries
- Match sum types exhaustively
- Derive types from authoritative schemas
Inputs
- Type definitions and function signatures
- Authoritative schemas and specifications
- Unstructured external data payloads
Outputs
- Refactored type definitions
- Parsed domain data models
- Exhaustive pattern match expressions
- Type safety review recommendations
Requirements
- Statically-typed language compiler or typechecker
