pydantic · manutej — Claude Code skill: what it does, how to install
Guides your agent in writing Pydantic V2 models, field constraints, and application settings.
npx skills add manutej/luxor-claude-marketplace --skill pydantic -a claude-codeWhat pydantic does
This skill guides coding assistants to draft data schemas aligned with Pydantic V2 patterns. It focuses on BaseModel construction, serialization via model_dump, and custom logic inside @field_validator. Examples center on support workflows such as ticket verification and input cleaning.
Code generation relies on Annotated typing and Field constraints for numbers, lengths, or regex patterns. You need pydantic>=2.0.0, pydantic-settings>=2.0.0, email-validator>=2.0.0, and python-dotenv>=1.0.0 installed in your Python environment. Integrating endpoints requires fastapi>=0.100.0. Without email-validator, EmailStr checks fail immediately.
What it helps with
- validate support ticket payloads and filter out spam
- enforce text, URL, and phone constraints using
Field - define environment variable schemas with
BaseSettings - serialize Python objects using
model_dumpandmodel_dump_json
Example prompts for the agent
- Write a Pydantic V2 support ticket model with length limits on description and allowed priority values
- Add a custom
@field_validatorto reject temporary email domains - Create a
BaseSettingsclass to parse app secrets from a.envfile
How to install pydantic
1Skills CLI (Vercel)
npx skills add manutej/luxor-claude-marketplace --skill pydantic -a claude-code2Manually: put the files in place
~/.claude/skills/pydantic/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/pydantic/
1Skills CLI (Vercel)
npx skills add manutej/luxor-claude-marketplace --skill pydantic -a codex2Manually: put the files in place
.agents/skills/pydantic/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add manutej/luxor-claude-marketplace --skill pydantic -a cursor2Manually: put the files in place
.cursor/skills/pydantic/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install manutej/luxor-claude-marketplace pydantic2Manually: put the files in place
.github/skills/pydantic/SKILL.md1Skills CLI (Vercel)
npx skills add manutej/luxor-claude-marketplace --skill pydantic -a gemini-cli2Platform CLI
gemini skills install https://github.com/manutej/luxor-claude-marketplace --path plugins/luxor-specialized-tools/skills/pydanticManually: put the files in place
.devin/skills/pydantic/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add manutej/luxor-claude-marketplace --skill pydantic -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about pydantic
How do I install pydantic in Claude Code?
Run npx skills add manutej/luxor-claude-marketplace --skill pydantic -a claude-code.
What does the pydantic skill do?
It teaches your agent to construct Pydantic V2 models, apply field constraints, write custom validators, and handle settings parsing.
Which Python packages are required?
Your project needs pydantic>=2.0.0, pydantic-settings>=2.0.0, email-validator>=2.0.0, and python-dotenv>=1.0.0. Web API modeling also requires fastapi>=0.100.0.
Similar skills
All skills for Backend and APIs →pydantic by other authors comes first.