Skill
Data Validation Pydantic
Validates API payloads, files and config in Python with Pydantic v2 models, strict types and error reports a user can understand.
data-validation-pydantic/SKILL.md
1Validate once at the edge, then pass typed models inward.
2Steps
31. Find boundaries: request bodies, queue messages, files, environment variables, third-party API responses. List what each should contain.
42. Write one `BaseModel` per shape. Use precise types (`EmailStr`, `HttpUrl`, `conint(ge=0)`, `Literal[...]`, `datetime`) instead of bare `str` and `int`.
53. Decide strictness per model. Use `model_config = ConfigDict(strict=True, extra="forbid")` for internal contracts so typos fail loudly. Keep coercion only where the source is text, such as CSV.
python
{ }
Data Validation Pydantic
Skillpython
Free