/open-python-skills:pydanticfrom open-python-skills
Validates and serializes data using Pydantic models with type hints, field validators, and JSON schema generation. Useful for defining schemas and validating input/output.
Ships in open-python-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Type-driven validation and serialization using Pydantic models.
Pydantic validates data using Python type hints and provides rich serialization via model_dump() and JSON schema output.
uv pip install pydantic
from pydantic import BaseModel
class User(BaseModel):
id: int
email: str
user = User(id=1, email="[email protected]")
model_dump() and model_dump_json().BaseSettings.from pydantic import BaseModel, field_validator
class Model(BaseModel):
name: str
@field_validator("name")
@classmethod
def ensure_not_empty(cls, v: str):
if not v:
raise ValueError("name required")
return v
from pydantic import BaseModel
class Model(BaseModel):
foo: int
model = Model.model_validate({"foo": 1})
print(model.model_dump())
default_factoryWhat SKILL.md sets; muted values are Claude Code's defaults
8 skills in this plugin
/commit-messageAnalyze git changes and generate conventional commit messages. Supports batch commits for multiple unrelated changes. Use when: (1) Creating git commits, (2) Reviewing staged changes, (3) Splitting large changesets into logical commits.
/error-handlingPython error handling patterns for FastAPI, Pydantic, and asyncio. Follows "Let it crash" philosophy - raise exceptions, catch at boundaries. Covers HTTPException, global exception handlers, validation errors, background task failures. Use when: (1) Designing API error responses, (2) Handling RequestValidationError, (3) Managing async exceptions, (4) Preventing stack trace leakage, (5) Designing custom exception hierarchies.
/excalidraw-ainpx claudepluginhub jiatastic/open-python-skills --plugin open-python-skills