# building-pydantic-ai-agents

> Claude/Codex skill by [@pydantic](https://omgskills.com/library/pydantic/index.md) · 143 stars · Updated 2026-10-16

Build AI agents with Pydantic AI — tools, capabilities (including on-demand loading), workspaces, structured output, streaming, testing, and multi-agent patterns. Use when the user mentions Pydantic AI, imports pydantic\_ai, or asks to build an AI agent, add tools/capabilities, attach a workspace, defer capability loading, stream output, define agents from YAML, or test agent behavior.

## Install

```sh
git clone https://github.com/pydantic/skills /tmp/skills && ln -s /tmp/skills/skills/building-pydantic-ai-agents ~/.claude/skills/building-pydantic-ai-agents
```

## From README

Building AI Agents with Pydantic AI Pydantic AI is a Python agent framework for building production-grade Generative AI applications. This skill provides patterns, architecture guidance, and tested code examples for building applications with Pydantic AI.

## Links

- HTML page: https://omgskills.com/library/pydantic/skills/building-pydantic-ai-agents/
- GitHub: https://github.com/pydantic/skills
- Author: [@pydantic](https://omgskills.com/library/pydantic/index.md)

## More from this repo

- [migrating-agno-to-pydantic-ai](https://omgskills.com/library/pydantic/skills/skills/migrating-agno-to-pydantic-ai/index.md) — Migrate Python Agno applications to Pydantic AI and, only when needed, Pydantic AI Harness.
   - [@pydantic](https://omgskills.com/library/pydantic/index.md) · 145 stars
- [migrating-claude-agent-sdk-to-pydantic-ai](https://omgskills.com/library/pydantic/skills/skills/migrating-claude-agent-sdk-to-pydantic-ai/index.md) — Migrate Python applications from the Claude Agent SDK to Pydantic AI and, only when needed, Pydantic AI Harness.
   - [@pydantic](https://omgskills.com/library/pydantic/index.md) · 145 stars
- [migrating-google-adk-to-pydantic-ai](https://omgskills.com/library/pydantic/skills/skills/migrating-google-adk-to-pydantic-ai/index.md) — Migrate Python Google Agent Development Kit (ADK) applications to Pydantic AI.
   - [@pydantic](https://omgskills.com/library/pydantic/index.md) · 145 stars
