# pydantic ai — Agent Skill

Write accurate Pydantic AI code from the start. Up-to-date patterns, decision trees, and common gotchas for agents, tools, structured output, streaming, and multi-agent apps.

## At a glance

pydantic-ai is an Agent Skill by pydantic in the Automation & Workflow category. In Claude Code it installs with `/plugin install pydantic-ai@claude-plugins-official` after adding the anthropics/claude-plugins-official marketplace; other assistants use its SKILL.md instructions as rules. Its source repository has 146 GitHub stars (as of Oct 28, 2026).

## Install

### How to install pydantic ai in Claude Code

1. Add the marketplace

```claude
/plugin marketplace add anthropics/claude-plugins-official
```

2. Install the skill

```claude
/plugin install pydantic-ai@claude-plugins-official
```

3. Use it

   These are slash commands for a Claude Code session, not your shell. Claude auto-invokes the skill when your request matches its description — or type its slash command if it exposes one.

### How to install pydantic ai in Claude Desktop

1. Clone the source

```bash
git clone https://github.com/pydantic/skills.git
```

2. Find the skill

   It lives in skills/plugins/ai — that folder contains the SKILL.md.

3. Add the SKILL.md to your Skills folder

   Settings → Capabilities → Skills → add the folder containing SKILL.md. Claude picks it up automatically.

### How to install pydantic ai in Cursor

1. Clone the source

```bash
git clone https://github.com/pydantic/skills.git
```

2. Find the skill

   It lives in skills/plugins/ai — that folder contains the SKILL.md.

3. Convert to a Cursor rule

   Create .cursor/rules/pydantic-ai.mdc and paste the SKILL.md body. Set `alwaysApply` or a glob so the Agent loads it in context.

### How to install pydantic ai in Codex CLI

1. Clone the source

```bash
git clone https://github.com/pydantic/skills.git
```

2. Find the skill

   It lives in skills/plugins/ai — that folder contains the SKILL.md.

3. Reference in AGENTS.md

   Add the skill's instructions (or a link) to AGENTS.md at your repo root — Codex reads it on every run.

### How to install pydantic ai in Windsurf

1. Clone the source

```bash
git clone https://github.com/pydantic/skills.git
```

2. Find the skill

   It lives in skills/plugins/ai — that folder contains the SKILL.md.

3. Add to your rules / context

   Paste the SKILL.md instructions into this tool's custom rules or workspace instructions so the agent follows them.

### How to install pydantic ai in Cline

1. Clone the source

```bash
git clone https://github.com/pydantic/skills.git
```

2. Find the skill

   It lives in skills/plugins/ai — that folder contains the SKILL.md.

3. Add to your rules / context

   Paste the SKILL.md instructions into this tool's custom rules or workspace instructions so the agent follows them.

### How to install pydantic ai in VS Code

1. Clone the source

```bash
git clone https://github.com/pydantic/skills.git
```

2. Find the skill

   It lives in skills/plugins/ai — that folder contains the SKILL.md.

3. Add to your rules / context

   Paste the SKILL.md instructions into this tool's custom rules or workspace instructions so the agent follows them.

Source: https://github.com/pydantic/skills/tree/main/plugins/ai

---

Source: https://mcp-skills-hub.vercel.app/skills/pydantic-ai · MCP Skills Hub · data as of 2026-10-28T12:31:05Z
