Create Pydantic models following the multi-model pattern with Base, Create, Update, Response, and InDB variants. Use when defining API request/response schemas, database models, or data validation in Python applications using Pydantic v2.
Use pydantic-models-py to draft Pydantic v2 models for the resource and fields I provide. Follow the Base, Create, Update, Response, and InDB pattern, make Update fields optional, and use camelCase aliases where appropriate. Show the model code for review before integrating it.
Required inputs
Resource name and fields, including types and validation requirements.
A Python application using Pydantic v2, or a request for a standalone code draft.
Previously published starter task based on a pinned source version; check the source and required inputs before running. Task evidence ↗
SKILL.md
name: pydantic-models-pydescription: Create Pydantic models following the multi-model pattern with Base, Create, Update, Response, and InDB variants. Use when defining API request/response schemas, database models, or data validation in Python applications using Pydantic v2.license: MITmetadata: author: Microsoft version: "1.0.0"
Pydantic Models
Create Pydantic models following the multi-model pattern for clean API contracts.