Pydanticai Docs

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

381 stars 29 forksWriting & Content

Install

skills CLI (Claude Code, Cursor, Codex and more)
npx skills add DougTrajano/pydantic-ai-skills --skill pydanticai-docs
Manual install
git clone --depth 1 https://github.com/DougTrajano/pydantic-ai-skills.git /tmp/pydantic-ai-skills
mkdir -p ~/.claude/skills
cp -r /tmp/pydantic-ai-skills/examples/skills/pydanticai-docs ~/.claude/skills/pydanticai-docs

Personal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.

From the SKILL.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

```python
from pydantic_ai import Agent

agent = Agent(
    'openai:gpt-4o',          # model string: provider:model-name
    system_prompt='Be helpful.',
)
result = agent.run_sync('What is the capital of France?')
print(result.output)
```

For full constructor parameters, run methods, and streaming: load `references/AGENT.md`.

### 2. Function Tools (`@agent.tool`)

```python
from pydantic_ai import Agent, RunContext

agent = Agent('openai:gpt-4o', deps_type=str)

@agent.tool
def get_user_name(ctx: RunContext[str]) -> str:
    """Return the current user's name."""
    return ctx.deps

result = agent.run_sync('What is my name?', deps='Alice')
```

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`)
Read the full skill on GitHub

Details

Skill name
pydanticai-docs
Path
examples/skills/pydanticai-docs/SKILL.md
License
MIT
Repo updated
14 November 2026

FAQ

What does the Pydanticai Docs skill do?

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

How do I install the Pydanticai Docs skill?

skills CLI (Claude Code, Cursor, Codex and more): npx skills add DougTrajano/pydantic-ai-skills --skill pydanticai-docs. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.

Is Pydanticai Docs popular?

It lives in DougTrajano/pydantic-ai-skills, which has 381 GitHub stars and 29 forks, and is included in 1 curated skill list.

Related skills

Arxiv Search

381

DougTrajano/pydantic-ai-skills

Search arXiv preprint repository for papers in physics, mathematics, computer science, quantitative biology, and related fields.

Research & ScienceIn 1 list29

Data Analysis

381

DougTrajano/pydantic-ai-skills

Profile and aggregate a bundled sales dataset - group revenue by region, category, channel or month, apply filters, and compute sums, means, medians and ranges. Use for questions about sales figures, trends, or which segments perform best.

Data & AnalyticsIn 1 list29

Sonarqube

381

DougTrajano/pydantic-ai-skills

Operate SonarQube-enabled repositories through the SonarQube CLI (`sonar`): verify authentication, discover project keys, inspect project metadata, issues, measures, and quality gates, analyze changed code, scan secrets and dependency risks, call authenticated APIs, trigger remediation, configure integrations, and troubleshoot the CLI. Use whenever the user mentions SonarQube, SonarQube Cloud/SonarCloud, Sonar project details, quality gates, Sonar issues, `sonar` commands, agentic analysis, dependency risks, secrets scanning, or Sonar integrations, even if they do not explicitly name this skil

Software DevelopmentIn 1 list29

Cover Letter

463

proficientlyjobs/proficiently-claude-skills

Write a tailored cover letter for a specific job posting

Writing & Content76

Content Strategy

376

mysticaltech/marketingskills

When the user wants to plan a content strategy, decide what content to create, or figure out what topics to cover. Also use when the user mentions "content strategy," "what should I write about," "content ideas," "blog strategy," "topic clusters," or "content planning." For writing individual pieces, see copywriting. For SEO-specific audits, see seo-audit.

Writing & Content91

Network Scan

463

proficientlyjobs/proficiently-claude-skills

Scan your LinkedIn contacts' companies for matching job openings

Writing & Content76

Browse the most popular Claude skills, all writing & content skills, or write your own with the skills generator.