parse-dont-validate
CommunityBuild robust systems with type-driven design.
Authorcaidanw
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill helps developers avoid common pitfalls in input validation and data modeling by promoting a "parse, don't validate" approach, leading to more robust and maintainable code.
Core Features & Use Cases
- Type Safety: Transforms unstructured data into strongly-typed structures at system boundaries, making illegal states unrepresentable.
- Refactoring Guidance: Provides principles for improving data types, function signatures, error handling, and domain logic.
- Use Case: When reviewing code that uses numerous boolean flags for validation or handles loosely typed string data, this Skill can guide the refactoring towards a more type-safe and less error-prone design.
Quick Start
Use the parse-dont-validate skill to refactor a function that currently validates user input with boolean flags into one that uses discriminated unions.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: parse-dont-validate Download link: https://github.com/caidanw/skills/archive/main.zip#parse-dont-validate Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.