Official agent skill

Migrating Google Adk To Pydantic AI

by pydantic in pydantic/pydantic-ai

Migrate Python Google Agent Development Kit (ADK) applications to Pydantic AI.

OfficialMITAuto-check passedAgent Workflows

Install Migrating Google Adk To Pydantic AI

skills CLI
$ npx skills add pydantic/pydantic-ai --skill migrating-google-adk-to-pydantic-ai -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install pydantic/pydantic-ai migrating-google-adk-to-pydantic-ai --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/pydantic/pydantic-ai.git skills-src && mkdir -p .claude/skills && cp -r skills-src/pydantic_ai_slim/pydantic_ai/.agents/skills/migrating-google-adk-to-pydantic-ai .claude/skills/migrating-google-adk-to-pydantic-ai && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
migrating-google-adk-to-pydantic-ai
GitHub stars
21k
Token cost
~1.6k tokens
SKILL.md length
690 words
Files
5 (incl. references)
Skills in repo
20
Repo updated
First seen
Licence
MIT

At a glance

Migrate Python Google Agent Development Kit (ADK) applications to Pydantic AI.

  • Works in 6 steps: Read repository instructions,… → Trace one real request from… → Separate the contracts before choosing… → …
  • Dynamic workflows
  • SKILL.md covers Work from the running…, High-risk gates, Pydantic AI defaults and Completion
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Migrating Google Adk To Pydantic AI is an agent skill from pydantic/pydantic-ai, published by the product's own GitHub organization. Migrate Python Google Agent Development Kit (ADK) applications to Pydantic AI. Use for LlmAgent, Runner, sessions, state, memory, tools, callbacks, plugins, graph or dynamic workflows, resumability, events, artifacts, MCP, and ADK deployment boundaries.

Its SKILL.md is about 1.6k tokens, which your agent loads only when the skill is triggered. The skill folder holds 6 other files, including reference files (for example `agents/openai.yaml`, `references/CONCEPT-MAPPING.md` and `references/SEMANTIC-GAPS.md`).

It sits in Agent Workflows. It works with Pydantic AI, Python, Pydantic and Model Context Protocol. The repository describes itself as: How Python does AI. Agents, realtime voice, image generation, embeddings. Every model, every interface, typed end to end. The licence is MIT.

When your agent uses it

  • Dynamic workflows
  • ADK deployment boundaries

Example prompts

  • “/migrating-google-adk-to-pydantic-ai”

Requirements

  • Python 3

Workflow steps

6 steps, taken from the first numbered list in SKILL.md.

  1. Read repository instructions, dependencies, tests, and runtime entrypoints. Record the installed Google ADK, Pydantic AI, and optional…
  2. Trace one real request from Runner.run_async() or the deployed endpoint through the root agent, instructions, collaboration mode, model…
  3. Separate the contracts before choosing targets
  4. Classify the active slice
  5. Add deterministic characterization tests, then migrate one vertical slice behind its existing caller boundary.
  6. Run the original tests and focused parity tests. Mark unexercised behavior unverified; similar names are not equivalence evidence.

What it can do on your machine

Read from SKILL.md and the folder at commit 69ea1e5. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • pydantic.dev

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Migrating Google Adk To Pydantic AI loads about 1.6k tokens when it runs, and up to ~5.9k if it reads all its reference files. Until then it costs about 73 tokens; SKILL.md has 690 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~73
When it runs · the whole SKILL.md, loaded when a task matches
~1.6k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~5.9k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from pydantic/pydantic-ai at commit 69ea1e5, republished under its MIT licence (© pydantic). 690 words, ~1,560 tokens.

Download SKILL.mdSave it as .claude/skills/migrating-google-adk-to-pydantic-ai/SKILL.md (or your agent's skills folder). This skill also uses 4 other files; get the full folder from GitHub.
name
migrating-google-adk-to-pydantic-ai
description
Migrate Python Google Agent Development Kit (ADK) applications to Pydantic AI. Use for `LlmAgent`, `Runner`, sessions, state, memory, tools, callbacks, plugins, graph or dynamic workflows, resumability, events, artifacts, MCP, and ADK deployment boundaries.

Migrate Google ADK to Pydantic AI

Preserve caller-visible behavior, not ADK's class tree. Migrate the smallest complete request path and leave product infrastructure in the application.

Work from the running application

  1. Read repository instructions, dependencies, tests, and runtime entrypoints. Record the installed Google ADK, Pydantic AI, and optional pydantic-ai-harness versions.
  2. Trace one real request from Runner.run_async() or the deployed endpoint through the root agent, instructions, collaboration mode, model calls, tools, workflow nodes, callbacks/plugins, session service, emitted events, state/artifact deltas, and final response. Record only behavior that path uses.
  3. Separate the contracts before choosing targets:
    • Session.events used as model context;
    • session-, user-, app-, and invocation-scoped state;
    • searchable long-term memory;
    • workflow/node checkpoints and resume IDs;
    • versioned artifacts and external side effects.
  4. Classify the active slice:
    • Ordinary LlmAgent: normally one reusable Agent with typed dependencies, tools, and output.
    • ADK graph or dynamic workflow: keep simple deterministic control flow in plain async Python; use pydantic_graph when explicit typed nodes, branching, or graph inspection remain valuable.
    • Multi-agent delegation: inspect ADK's collaboration mode in Python 2.x; 1.x sub_agents use chat behavior. Use core multi-agent patterns for chat transfer semantics. Harness SubAgents can fit task or single_turn only when their isolated context, return, interaction, and concurrency behavior match.
    • Product runtime: retain auth, session/state stores, artifact stores, queues, transport, A2A endpoints, evaluation, observability, and deployment unless they are explicitly in scope.
  5. Add deterministic characterization tests, then migrate one vertical slice behind its existing caller boundary.
  6. Run the original tests and focused parity tests. Mark unexercised behavior unverified; similar names are not equivalence evidence.

Read Concept Mapping for the features the slice uses. Read Semantic Gaps for workflows, state, resume, confirmation, callbacks/plugins, event streams, skills, or execution environments. Read Verification and Cutover before removing ADK or changing production traffic.

High-risk gates

  • Do not pass ADK Session objects or mutable state dictionaries through model-chosen tool arguments. Put authenticated identity and service clients in typed dependencies; persist product and workflow state through application-owned stores.
  • message_history continues model context. It does not replace ADK session state, memory, artifacts, event records, node checkpoints, or invocation resume.
  • ADK resumability replays recorded node/tool results and can execute tools more than once. Choose a durable execution design explicitly and prove restart plus idempotency for side effects.
  • Keep conversational input, approval, and authorization distinct. Map tool confirmation to deferred tool approval; keep identity and access checks in trusted application code.
  • Preserve callback/plugin ordering and short-circuit rules deliberately. Pydantic AI hooks have their own capability ordering and exception-based skip/recovery semantics; a list of lookalike hooks is not parity.
  • ADK partial events are delivered without applying state deltas; each non-partial event applies its delta when appended. Artifact writes happen during the artifact operation, before the current event records the returned version. If callers consume ADK event fields or final-event detection, retain a boundary adapter and test the exact stream and persistence order.
  • Use Harness only for an observed reusable capability. Ordinary agents need core only, and a command allowlist is not an OS security boundary.
Show full SKILL.md (188 more words)Show less

Pydantic AI defaults

  • Map instruction to instructions; use a RunContext instructions function when it depends on trusted runtime data.
  • Map function tools to typed Pydantic AI tools. Preserve tool names, descriptions, validation behavior, error shape, retries, confirmation, and concurrency only where callers rely on them.
  • Map output_schema to output_type when the terminal output contract is structured. Preserve an existing wire adapter if changing response shape would widen the migration.
  • Persist ModelMessage histories separately from workflow and product state. Reuse the application's current stores before adding a new persistence subsystem.
  • Use Hooks for local lifecycle interception or a custom capability for reusable policy that also owns tools, instructions, settings, or events.
  • Keep the active model/provider unless changing it is requested. Use provider-prefixed Pydantic AI model IDs and verify provider-specific tools, settings, streaming, and realtime behavior against installed APIs.

Completion

The slice is complete only when every observed caller contract is preserved by executable evidence, explicitly accepted as changed, or not applicable. Treat unverified and blocked contracts as unfinished. Do not remove google-adk while a retained runtime, session migration, deployment command, evaluation, or compatibility path still imports or invokes it.

© pydantic, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 4 other files (references) in pydantic_ai_slim/pydantic_ai/.agents/skills/migrating-google-adk-to-pydantic-ai of pydantic/pydantic-ai.

  • SKILL.md
  • agents/openai.yaml
  • references/CONCEPT-MAPPING.md
  • references/SEMANTIC-GAPS.md
  • references/VERIFICATION-AND-CUTOVER.md

Open the folder on GitHubat commit 69ea1e5

Used in 1 other repository

We found 2 copies of this SKILL.md (exact, near-identical or edited) in other folders. This page covers the copy in pydantic/pydantic-ai, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Migrating Google Adk To Pydantic AI next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Migrating Google Adk To Pydantic AI compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Migrating Google Adk To Pydantic AI this skillpydantic/pydantic-ai21k—~1.6kAutomated safety check: PassMIT
MCP Scaffoldtimothywarner-org/claude-code224—~940Automated safety check: PassMIT
Pydantic AI Harnesspydantic/skills140—~1.9kAutomated safety check: PassMIT
MCP DeveloperJeffallan/claude-skills12k—~1.5kAutomated safety check: PassMIT
Logfire Instrumentationpydantic/skills140—~6.1kAutomated safety check: PassMIT
Building Pydantic AI Agentsdocling-project/docling69k—~2.8kAutomated safety check: PassMIT

Similar skills

  • MCP Scaffold

    timothywarner-org/claude-code

    Scaffold production-ready Python MCP servers using FastMCP. An agent skill from timothywarner-org/claude-code.

    224 GitHub stars~940 tokensUpdated 2 mo ago
    Agent WorkflowsAuto-check passed
  • Pydantic AI Harness

    pydantic/skills

    Official

    Extend Pydantic AI agents with batteries-included capabilities from pydantic-ai-harness -- Code Mode (collapse many tool calls into one sandboxed Python execution), a filesystem and shell…

    140 GitHub stars~1.9k tokensUpdated 10 days ago
    Agent WorkflowsAuto-check passed
  • MCP Developer

    Jeffallan/claude-skills

    Builds and debugs MCP servers and clients in TypeScript or Python, from tool and resource definitions to transport setup and inspector-based protocol checks.

    12k GitHub stars~1.5k tokensUpdated 7 days ago
    Agent WorkflowsAuto-check passed
  • Official

    Add Pydantic Logfire observability to application code — traces, logs, metrics, and AI/agent spans.

    140 GitHub stars~6.1k tokensUpdated 10 days ago
    AI & LLM EngineeringAuto-check passed
  • Building Pydantic AI Agents

    docling-project/docling

    Patterns and tested examples for building agents with Pydantic AI: tools, capabilities, structured output, dependency injection, hooks, YAML specs, streaming and testing.

    69k GitHub stars~2.8k tokensUpdated today
    AI & LLM EngineeringAuto-check passed
  • Official

    Build AI agents with Pydantic AI — tools, capabilities (including on-demand loading), structured output, streaming, testing, and multi-agent patterns.

    140 GitHub stars~5.4k tokensUpdated 10 days ago
    AI & LLM EngineeringAuto-check passed

More from pydantic/pydantic-ai

All 20 skills in this repo
  • Pydantic AI Harness

    pydantic/pydantic-ai

    Official

    Adds optional capabilities to Pydantic AI agents from pydantic-ai-harness, led by Code Mode, which runs many tool calls as one sandboxed Python script.

    21k GitHub stars~4.9k tokensUpdated today
    Auto-check passed
  • Building Pydantic AI Agents

    pydantic/pydantic-ai

    Official

    Build AI agents with Pydantic AI — tools, capabilities (including on-demand loading), workspaces, structured output, streaming, testing, and multi-agent patterns.

    21k GitHub stars~8.2k tokensUpdated today
    Auto-check passed
  • Complete Partial PR

    pydantic/pydantic-ai

    Official

    Evaluate and complete an issue or PR where the submitted patch fixes only a narrow symptom of the reported pain point.

    21k GitHub stars~2.4k tokensUpdated today
    Auto-check passed
  • Testing Skill

    pydantic/pydantic-ai

    Official

    Record, rewrite, and debug VCR cassettes for HTTP recordings.

    21k GitHub stars~839 tokensUpdated today
    Auto-check: notes
  • Migrating Agno To Pydantic AI

    pydantic/pydantic-ai

    Official

    Migrate Python Agno applications to Pydantic AI and, only when needed, Pydantic AI Harness.

    21k GitHub stars~1.8k tokensUpdated today
    Auto-check passed
  • Official

    Migrate Python applications from the Claude Agent SDK to Pydantic AI and, only when needed, Pydantic AI Harness.

    21k GitHub stars~1.6k tokensUpdated today
    Auto-check passed

Questions about Migrating Google Adk To Pydantic AI

What does Migrating Google Adk To Pydantic AI do?

Migrate Python Google Agent Development Kit (ADK) applications to Pydantic AI. Migrating Google Adk To Pydantic AI is an agent skill from pydantic/pydantic-ai, published by the product's own GitHub organization. Migrate Python Google Agent Development Kit (ADK) applications to Pydantic AI.

When should I use Migrating Google Adk To Pydantic AI?

Migrating Google Adk To Pydantic AI fits situations like: dynamic workflows; ADK deployment boundaries.

How do I install Migrating Google Adk To Pydantic AI in Claude Code?

Run `npx skills add pydantic/pydantic-ai --skill migrating-google-adk-to-pydantic-ai -a claude-code`. Or copy the skill folder (pydantic_ai_slim/pydantic_ai/.agents/skills/migrating-google-adk-to-pydantic-ai in pydantic/pydantic-ai) into .claude/skills/migrating-google-adk-to-pydantic-ai in your project. Claude Code loads it when a task matches its description.

How do I install Migrating Google Adk To Pydantic AI in Codex?

Run `npx skills add pydantic/pydantic-ai --skill migrating-google-adk-to-pydantic-ai -a codex`. Or copy the skill folder (pydantic_ai_slim/pydantic_ai/.agents/skills/migrating-google-adk-to-pydantic-ai in pydantic/pydantic-ai) into .agents/skills/migrating-google-adk-to-pydantic-ai in your project. Codex loads it when a task matches its description.

Can I use Migrating Google Adk To Pydantic AI in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add pydantic/pydantic-ai --skill migrating-google-adk-to-pydantic-ai -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/migrating-google-adk-to-pydantic-ai, .gemini/skills/migrating-google-adk-to-pydantic-ai, .github/skills/migrating-google-adk-to-pydantic-ai and .opencode/skills/migrating-google-adk-to-pydantic-ai in your project.

What does Migrating Google Adk To Pydantic AI need to run?

SKILL.md names no scripts, command-line tools or credentials: Migrating Google Adk To Pydantic AI is instructions for the agent only. Our summary lists: Python 3.

Does Migrating Google Adk To Pydantic AI access the network?

SKILL.md names 1 domain. As links in the text: pydantic.dev. This is read from the text; nothing was executed.

Is Migrating Google Adk To Pydantic AI safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Migrating Google Adk To Pydantic AI use?

Migrating Google Adk To Pydantic AI is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Migrating Google Adk To Pydantic AI use?

About 1.6k tokens (SKILL.md is roughly 6.2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 4.3k tokens, read only when the agent opens those files.

What are the alternatives to Migrating Google Adk To Pydantic AI?

Skills that share tags, products or a category with Migrating Google Adk To Pydantic AI: MCP Scaffold (timothywarner-org/claude-code, 224 stars), Pydantic AI Harness (pydantic/skills, 140 stars), MCP Developer (Jeffallan/claude-skills, 12k stars) and Logfire Instrumentation (pydantic/skills, 140 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Migrating Google Adk To Pydantic AI?

pydantic (a GitHub organization, an official publisher) maintains it in pydantic/pydantic-ai, which has 20,537 GitHub stars. The repository holds 20 skills in this directory. The repository was last updated on October 11, 2026.

Source: pydantic/pydantic-ai on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.