What is parse-dont-validate?
Code review and design assistance based on the "Parse, don't validate" principle. Converts validate patterns (check and discard the result) to parse patterns (retain the check result in the type), promoting designs that enforce invariants through the type system. Use when validation functions need improvement during code review, new implementation, or refactoring. Target languages: Rust, Haskell, TypeScript, Scala, Java, Go, Python. Trigger: activated by type-safety-related requests like "improve validation," "guarantee with types," "fix shotgun parsing," "prevent invalid states with types," or "reduce Maybe." Source: j5ik2o/okite-ai.