From role-backend
Implements data validation using Zod, Joi, class-validator, Pydantic, and JSON Schema. Covers API DTOs, input sanitization, custom validators, middleware, and error formatting for inputs, contracts, and forms.
How this skill is triggered — by the user, by Claude, or both
Slash command
/role-backend:data-validationThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
- Choosing a validation library for a new project or stack
references/validation-fundamentals.md — library selection table, four-layer validation model, request/response DTO rules, input sanitization checklist, and type coercion guidelinesreferences/validators-middleware-patterns.md — custom validator implementations (email, phone, slug, currency, password), cross-field validation, middleware pipeline wiring, error response format, schema composition patterns, and performance tuningnpx claudepluginhub rnavarych/alpha-engineer --plugin role-backendAudits codebases for validation libraries, maps trust boundaries, detects unvalidated inputs, and verifies type-runtime alignment for data contracts.
Creates reusable Zod v4 schemas to validate API payloads, forms, and config inputs in TypeScript apps. Handles coercion, transforms, errors, and type inference for runtime type safety.