# building-pydantic-ai-agents

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

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.

Tags: agent-framework, genai, harness, harness-engineering, llm, pydantic, python

## Install

```sh
git clone https://github.com/pydantic/pydantic-ai /tmp/pydantic-ai && ln -s /tmp/pydantic-ai/pydantic_ai_slim/pydantic_ai/.agents/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/skills/pydantic/pydantic-ai/building-pydantic-ai-agents/
- GitHub: https://github.com/pydantic/pydantic-ai
- Author: [@pydantic](https://omgskills.com/library/pydantic/index.md)

## More skills by this author

- [fastmod](https://omgskills.com/skills/pydantic/monty/dot-claude/skills/fastmod/index.md) — Use fastmod to make mass code updates to avoid many repetitive changes.
   - [@pydantic](https://omgskills.com/library/pydantic/index.md) · 8.7k stars
- [migrating-agno-to-pydantic-ai](https://omgskills.com/skills/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/skills/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
