Back to skills

pydantic-models-py

development

Generates Pydantic v2 model sets following a multi-model pattern with Base, Create, Update, Response, and InDB variants. Designed for Python APIs that need consistent request/response schemas and data

Setup & Installation

npx skills add https://github.com/microsoft/pydantic-models-py --skill pydantic-models-py
or paste the link and ask your coding assistant to install it
https://github.com/microsoft/pydantic-models-py
View on GitHub

What This Skill Does

Generates Pydantic v2 model sets following a multi-model pattern with Base, Create, Update, Response, and InDB variants. Designed for Python APIs that need consistent request/response schemas and database document types. Includes camelCase alias support and optional fields for PATCH endpoints. Instead of hand-writing five related model classes per resource and remembering to keep them in sync, this skill scaffolds all variants from a single template with the correct field inheritance already wired.

When to use it

  • Working with pydantic models py functionality
  • Implementing pydantic models py features
  • Debugging pydantic models py related issues