When to use this skill:
- When creating API endpoints that accept request bodies
- When implementing validation middleware factory for Express/Bun/Hono
- When defining Zod schemas for data validation with type inference
- When creating forms with React Hook Form and zodResolver
- When validating file uploads (MIME type whitelist, size limits with multer)
- When writing Firestore security rules (firestore.rules) for database validation
- When writing Supabase Row Level Security (RLS) policies
- When implementing input sanitization with DOMPurify to prevent XSS
- When adding validation to service layer methods (fail-early)
- When creating custom Zod refinements (e.g., password complexity) or transforms (e.g., string to Date)
- When writing user-friendly validation error messages (not technical jargon)
- When validating environment variables with Zod on application startup
- When working on any code that accepts user input or external data
- When implementing FluentValidation for .NET API validation
- When creating complex nested schemas with arrays and optional fields
This Skill provides Claude Code with specific guidance on how to adhere to coding standards as they relate to how it should handle global validation.
Instructions
For details, refer to the information provided in this file: