pydantic-ai — Claude Code plugin: Pydantic AI agent code
A Claude plugin that steers Claude toward correct Pydantic AI code: patterns, decision trees and notes on common pitfalls.
/plugin install pydantic-ai@claude-plugins-official
/plugin marketplace add anthropics/claude-plugins-community
/plugin install pydantic-ai@claude-community
/plugin marketplace add anthropics/claude-plugins-officialWhat pydantic-ai does
The plugin ships a skill for Pydantic AI. SKILL.md covers the basics: agents, tools, structured output, testing and multi-agent setups. Companion references go into hooks, specs, streaming, fallback models and delegation.
Migration skills sit alongside, one per source framework: LangChain and LangGraph, Anthropic Agents SDK, Google ADK, Mastra, Agno, Pi, Claude Agent SDK, Vercel AI SDK and Eve. That suits a codebase you want to port rather than rewrite by hand.
It targets Claude only. Pydantic does not list it as a Claude plugin, yet Claude users can pick up a standalone cross-agent skill under skills/building-pydantic-ai-agents/.
What it helps with
- write Pydantic AI agents without guessing at patterns
- wire up tools and structured output correctly
- handle streaming and fallback models
- port an existing LangChain app to Pydantic AI
- build and test a multi-agent system
Example prompts for the agent
- Build a Pydantic AI agent with two tools and structured output
- Show me how to set up streaming responses in Pydantic AI
- Port this LangGraph app over to Pydantic AI
How to install pydantic-ai
Plugin marketplace
/plugin install pydantic-ai@claude-plugins-official/plugin marketplace add anthropics/claude-plugins-community/plugin install pydantic-ai@claude-community/plugin marketplace add anthropics/claude-plugins-officialStep by step, with commands for each platform: Claude Code plugins: marketplaces, installing, and building your own
Questions about pydantic-ai
How do I install pydantic-ai in Claude Code?
From the marketplace: run /plugin marketplace add anthropics/claude-plugins-official first, then /plugin install pydantic-ai@claude-plugins-official.
What does pydantic-ai do?
It gives Claude reference material for Pydantic AI — agents, tools, structured output, testing, multi-agent apps — plus skills for migrating from other frameworks.
Can I use it with Claude?
Pydantic's marketplace does not list a Claude plugin. Claude users can use the standalone cross-agent skill in skills/building-pydantic-ai-agents/ instead.
Source text
ai · MIT
# ai Build production-grade AI agents with [Pydantic AI](https://ai.pydantic.dev/). ## Features - SKILL.md with core Pydantic AI patterns (agents, tools, capabilities, structured output, testing, multi-agent systems) - Reference docs for common tasks (hooks, specs, streaming, fallback models, delegation) - Migration skills for porting an existing application from another framework, one per source framework: LangChain and LangGraph, the OpenAI Agents SDK, Google ADK, Mastra, Agno, Pi, the Claude Agent SDK, and the Vercel AI SDK and Eve ## Install ```bash claude plugin marketplace add pydantic/skills claude plugin install ai@pydantic-skills ``` ## Codex `ai` is not currently listed as a Codex plugin in the Pydantic marketplace. Codex users can still use the standalone cross-agent skill at `skills/building-pydantic-ai-agents/`.
© pydantic · MIT · pydantic/skills