The Input Validation skill provides Claude with standardized patterns to eliminate common security vulnerabilities by enforcing strict validation across API request bodies, query parameters, and file uploads. It guides the implementation of production-ready schemas using Zod (TypeScript) and Pydantic (Python), ensuring that all untrusted data is vetted against allowlists, properly coerced into safe types, and sanitized before processing. By focusing on server-side enforcement and preventing anti-patterns like blocklisting or string concatenation, this skill significantly reduces the risk of injection attacks, XSS, and data corruption in modern web applications.
주요 기능
01Strict type coercion for query parameters and form data
02Automated schema validation using Zod v4 and Pydantic
03Secure file upload validation via magic byte signatures
04Implementation of allowlists to prevent injection attacks
05Discriminated union patterns for complex data structures
0669 GitHub stars