dougtrajano/pydantic-ai-skills/pydanticai-docs
Claude Code and agent skill by dougtrajano/pydantic-ai-skills
- community
Checking that the SKILL.md file is still in the repository.
Use this skill whenever the user is working with the Pydantic AI framework — including building AI agents, defining structured outputs with Pydantic models, wiring up tools/function calling, configuring model providers (OpenAI, Anthropic, Gemini, etc.), managing dependencies via agent context, handling streaming responses, or debugging agent runs. Trigger this skill even for adjacent tasks like "how do I make my agent return JSON", "set up a multi-step agent", "add a tool to my agent", or "validate LLM output with Pydantic" — any time Pydantic AI is mentioned or implied as the target framework.
Install
npx vskill@latest install dougtrajano/pydantic-ai-skills/pydanticai-docsSKILL.md
Pydantic AI Documentation Skill
What is Pydantic AI?
Pydantic AI is a production-grade Python agent framework for building type-safe, dependency-injected Generative AI applications. It supports multiple LLM providers, structured outputs via Pydantic models, and composable multi-agent patterns.
Doc: <https://ai.pydantic.dev/>
Core Concepts
1. Agent Instantiation
For full constructor parameters, run methods, and streaming: load references/AGENT.md.
2. Function Tools (@agent.tool)
Use @agent.tool_plain when you don't need RunContext. For tool registration, return types, and retries: load references/FUNCTION_TOOLS.md.
3. Dependency Injection (RunContext)
For RunContext fields, injection into system prompts and output validators: load references/DEPENDENCIES.md.
4. Structured Output
For union types, plain scalars, output_validator, and partial validation: load references/OUTPUT.md.
Additional Topics
For these topics, load the named reference file or follow the doc link — no implementation code is provided here.
| Topic | Reference file | Doc link | |
|---|---|---|---|
| Message history / multi-turn conversations | references/MESSAGES.md | <https://ai.pydantic.dev/core-concepts/message-history/index.md> | |
| Model / provider setup (all providers) | references/MODELS.md | <https://ai.pydantic.dev/models/overview/index.md> | |
Toolsets (FunctionToolset, composition) | references/TOOLS_AND_TOOLSETS.md | <https://ai.pydantic.dev/tools-toolsets/toolsets/index.md> | |
| MCP server integration | references/MCP.md | <https://ai.pydantic.dev/mcp/client/index.md> | |
| Multi-agent applications | doc link only | <https://ai.pydantic.dev/guides/multi-agent-applications/index.md> | |
| Graphs (pydantic-graph) | doc link only | <https://ai.pydantic.dev/graph/graph/index.md> | |
| Evals (pydantic-evals) | doc link only | <https://ai.pydantic.dev/evals/evals/index.md> | |
| Durable execution | doc link only | <https://ai.pydantic.dev/durable_execution/overview/index.md> | |
| Retries | doc link only | <https://ai.pydantic.dev/core-concepts/retries/index.md> | |
Testing (TestModel, override) | doc link only | <https://ai.pydantic.dev/guides/testing/index.md> | |
| Logfire integration | doc link only | <https://ai.pydantic.dev/integrations/logfire/index.md> | |
| Native tools (formerly builtin tools) | doc link only | <https://ai.pydantic.dev/tools-toolsets/native-tools/index.md> | |
| Streaming | doc link only | <https://ai.pydantic.dev/core-concepts/agent/index.md> |
Agent Behavior Rules
- Default to this file — answer from core concepts first; load only the specific
references/<CONCEPT>.mdrelevant to the user's question when more depth is needed. - Never fabricate API details — always end with "For details, see: \<URL\>" using a link from the official index above.
- No implementation code for non-core topics — return a doc link only for topics listed in the Additional Topics table.
- Prefer specificity — route to the most specific page (e.g.,
models/anthropic/index.md) when the user's question targets a specific provider, not the overview. - Out of scope — do not debug user code passively, do not generate full production agent implementations, do not answer questions unrelated to the Pydantic AI ecosystem.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingexamples/skills/pydanticai-docs/SKILL.md
Popularity
- Repository stars
- 378
- Repository forks
- 29
- 7-day trend score
- 30
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 24 Mar 2026, 7 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/dougtrajano/pydantic-ai-skills/pydanticai-docs)