Agent skill · software engineering · sickn33
pydantic-models-py
Create Pydantic models following the multi-model pattern for clean API contracts.
Why this skill is useful
Provides a structured approach to creating Pydantic models that the AI wouldn't reliably generate on its own, including specific patterns and field configurations.
What it needs
About 1k tokens when loaded. Last updated 2026-08-07. 44,571 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 Use the inline model patterns below and adapt class names and fields to the actual API contract. Inspect the installed Pydantic version before selecting configuration syntax; these fragments require the imports and application types shown by your project. Do not assume a standalone template file is bundled. 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 When to Use This skill is applicable to execute the workflow or actions described in the overview. Limitations Use this skill only when the task clearly matches the scope described above. Do not treat the output as a substitute for environment-specific validation, testing, or expert review. Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills sickn33/pydantic-models-py--4d2980