Agent skill · software engineering · aiskillstore
pydantic-models-py
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.
Why this skill is useful
Provides a structured template for creating Pydantic models that ensures consistency in API request/response schemas and database models, which the AI may not generate reliably on its own.
What it needs
About 1k tokens when loaded. Last updated 2026-08-07. 405 stars on the source repository.
What this skill does
Pydantic Models Create Pydantic models following the multi-model pattern for clean API contracts. Quick Start Copy the template from assets/template.py and replace placeholders: {{ResourceName}} → PascalCase name (e.g., Project) {{resourcename}} → snakecase name (e.g., project) Multi-Model Pattern Model Purpose ------- --------- Base Common fields shared across models Create Request body for creation (required fields) Update Request body for updates (all optional) Response API response with all fields InDB Database document with doctype camelCase Aliases Optional Update Fields Database Document Integration Steps 1. Create models in src/backend/app/models/ 2. Export from src/backend/app/models/init.py 3. Add corresponding TypeScript types
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills aiskillstore/pydantic-models-py