Agent skill · software engineering · aiskillstore

data-validation

Use when implementing data validation for API payloads, form inputs, or database writes. Triggers for: Pydantic models, Zod schemas, input sanitization, type validation, field constraints, or request/response schemas. NOT for: business logic (use domain services) or authentication/authorization.

Why this skill is useful

Provides specific Pydantic and Zod schema patterns for type-safe validation that the AI wouldn't reliably generate on its own.

What it needs

Requires bleach, mypy, pydantic, strip-html, zod installed locally. About 7k tokens when loaded. Last updated 2026-08-07. 405 stars on the source repository.

What this skill does

Data Validation Skill Expert data validation for Python backends (Pydantic) and TypeScript frontends (Zod) with type-safe validation pipelines. Quick Reference Layer Tool Purpose ------- ------ --------- Backend Pydantic v2 Request/response validation Frontend Zod Form validation, schema inference Sanitization bleach, strip-html Input cleaning Types mypy, TypeScript Compile-time safety Project Structure Backend: Pydantic Models Separate In/Out Models Custom Validators Common Schemas Frontend: Zod Schemas Basic Schemas Advanced Zod Patterns Form Integration Input Sanitization Backend Sanitization Validator with Sanitization Schema Sharing Strategy Field Consistency Contract Documentation Quality Checklist [ ] All external inputs validated: Every API input has a schema [ ] Helpful error messages: Each field has clear, actionable validation messages [ ] No trust on client-only validation: Backend re-validates all inputs [ ] Length/format constraints defined: All string fields have min/max [ ] Separate in/out models: Create/Update (input) vs Output (response) [ ] Type-safe pipeline: Frontend Zod infers TypeScript types [ ] Sanitization applied: Input cleaning before validation Integration Points Skill Integration ------- ------------- @api-route-design Use schemas in responsemodel, Body() @error-handling Validation errors return proper error codes @fastapi-app Auto-generated OpenAPI docs from Pydantic @sqlmodel-crud Create/Update schemas match model fields

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills aiskillstore/data-validation

View the source on GitHub

Browse the @skills marketplace