Skip to content
anyai.fyi

migrating-langchain-to-pydantic-ai

Skill from pydantic/skills

Agents & Workflows No risky patterns found curated agentscodepythonmemoryplanning

Install

npx skills add pydantic/skills --skill migrating-langchain-to-pydantic-ai

Runs the open skills CLI and installs the skill for your agent (Claude Code, Codex, Cursor …). Alternatively copy the skill folder into .claude/skills/ or upload it in Claude.ai under Settings → Skills.

As a Claude Code plugin

/plugin marketplace add anthropics/claude-plugins-official /plugin install ai@pydantic-skills

This skill is part of the plugin “ai”. In Claude Code the plugin installs it together with the plugin’s other skills, commands and hooks.

What does the migrating-langchain-to-pydantic-ai skill do?

Migrate Python LangChain, LangGraph, or Deep Agents applications to Pydantic AI and, when the source uses harness features, Pydantic AI Harness. Use for LangChain agents, chains, LCEL, direct LangGraph graphs, persistence, interrupts, streaming, and `create_deep_agent` projects with planning, filesystem or sandbox backends, skills, memory, subagents, permissions, approvals, or Deep Agents Code hosts.

Description from the SKILL.md in the source repository.

Works with Pydantic

Questions about migrating-langchain-to-pydantic-ai

What does the migrating-langchain-to-pydantic-ai skill do?

Migrate Python LangChain, LangGraph, or Deep Agents applications to Pydantic AI and, when the source uses harness features, Pydantic AI Harness. Use for LangChain agents, chains, LCEL, direct LangGraph graphs, persistence, interrupts, streaming, and `create_deep_agent` projects with planning, filesystem or sandbox backends, skills, memory, subagents, permissions, approvals, or Deep Agents Code hosts.

How do I install migrating-langchain-to-pydantic-ai?

In a terminal: npx skills add pydantic/skills --skill migrating-langchain-to-pydantic-ai. The skills CLI asks which agents to install it for. In Claude.ai you can upload the skill folder as a ZIP under Settings → Skills.

Which agents can use migrating-langchain-to-pydantic-ai?

Skills use the open SKILL.md format, which Claude Code, Claude.ai, the Claude API, OpenAI Codex, Cursor, Gemini CLI and other agents support.

Is migrating-langchain-to-pydantic-ai safe to use?

Our automatic check found no risky patterns (piped shell scripts, hidden characters, secret access, prompt overrides). It is not a full audit – read the SKILL.md and any scripts before installing.

Which tool is migrating-langchain-to-pydantic-ai for?

migrating-langchain-to-pydantic-ai comes from the makers of Pydantic and helps your agent work with it.

More skills from pydantic/skills

logfire-setup
pydantic/skills

Route broad requests to set up Pydantic Logfire across application instrumentation, infrastructure, evals, frontend observability, Gateway, or coding agents. Use for "set up Logfire", "add Logfire to my project", "get me set up properly with Logfire", "send as much data as would be useful", mentions of Logfire without specific scope, or multi-surface requests; use the matching specialist directly for an already scoped request.

DevOps & Cloud curated
No risky patterns found
logfire-frontend
pydantic/skills

Set up and troubleshoot Pydantic Logfire frontend observability and session replays in JavaScript/TypeScript browser applications. Use for browser errors, RUM, Web Vitals, replay recording, privacy controls, or reducing browser telemetry volume. Supports browser entrypoints, React/Vite, and the client side of Next.js; use logfire-instrumentation for server-side telemetry.

Frontend & UI curated
No risky patterns found
logfire-gateway
pydantic/skills

Configure an application's model calls to use the Pydantic AI Gateway. Use when the user asks to route application inference through Gateway, connect a Gateway key, or add a Gateway provider snippet. This does not configure or instrument coding agents.

Development curated
No risky patterns found
logfire-infrastructure
pydantic/skills

Monitor hosts, Docker containers, Kubernetes clusters, database/queue/cache servers, and cloud-provider metrics with Pydantic Logfire — no application code required. Use this skill whenever the user asks to "monitor my host/server/VM", "monitor my Docker containers", "monitor my Kubernetes cluster", "send infrastructure metrics to Logfire", "watch my database/Postgres/Redis/MongoDB/Kafka", "collect cloud metrics" (AWS/GCP), or mentions the OpenTelemetry Collector in the context of Logfire. This is infrastructure only — for instrumenting APPLICATION CODE (traces, logs, AI/agent spans) use the logfire-instrumentation skill instead.

DevOps & Cloud curated
No risky patterns found
logfire-instrumentation
pydantic/skills

Add Pydantic Logfire observability to application code — traces, logs, metrics, and AI/agent spans. Use when the user asks to add or configure Logfire, observability, tracing, logging, or monitoring; maximize useful telemetry; or understand what an app is doing. Supports Python, JavaScript/TypeScript, Rust, and major AI agent frameworks including Pydantic AI, OpenAI Agents SDK, Claude Agent SDK, LangChain, LangGraph, CrewAI, AutoGen, and Google ADK. For infrastructure-only monitoring (hosts, Docker, Kubernetes, databases, or cloud metrics with no app-code changes), use `logfire-infrastructure`. For evaluating AI/agent behavior against test datasets, use `logfire-evals`.

DevOps & Cloud curated
No risky patterns found
logfire-query
pydantic/skills

Query and analyze Logfire telemetry data — traces, logs, spans, metrics, summaries, and SQL results. Use this skill when the user asks to "query logfire", "search traces", "find logs", "query data", "search spans", "look up errors in logfire", "get metrics from logfire", "analyze telemetry", "summarize errors", "find root cause", or add Logfire querying capabilities to code. Do not use this skill for direct Logfire UI, browser, live-view, Explore-page, or link-opening requests; use logfire-ui instead. If "show" or "view" wording is ambiguous, ask whether the user wants a UI view or query analysis.

Frontend & UI curated
No risky patterns found
migrating-deep-agents-to-pydantic-ai-harness
pydantic/skills

Migrate Python LangChain Deep Agents applications to Pydantic AI and Pydantic AI Harness. Use when the source uses the upstream `deepagents` package or demonstrably reproduces its middleware, backends, skills, memory, subagents, or sandbox contracts. Use `migrating-langchain-to-pydantic-ai` for plain LangChain, LangGraph, or LCEL migrations and `pydantic-ai-harness` for greenfield Harness usage.

Agents & Workflows curated
No risky patterns found
pydantic
pydantic/skills

Pydantic is a Python data validation and serialization library, based on type hints. Use this skill whenever you need to do relatively complex data modeling using Pydantic, e.g. when adding constraints, defining a model hierarchy with subclasses, etc.

Development curated
No risky patterns found

Related skills in Agents & Workflows

find-skills
vercel-labs/skills

Helps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", or express interest in extending capabilities. This skill should be used when the user is looking for functionality that might exist as an installable skill.

Agents & Workflows 4270k installs
No risky patterns found
setup-matt-pocock-skills
mattpocock/skills

Configure this repo for the engineering skills: set up its issue tracker, triage label vocabulary, and domain doc layout. Run once before first use of the other engineering skills.

Agents & Workflows 1125k installs curated
No risky patterns found
teach
mattpocock/skills

Teach the user a new skill or concept, within this workspace.

Agents & Workflows 930k installs curated
No risky patterns found
lark-skill-maker
open.feishu.cn

No description in the SKILL.md.

Agents & Workflows 872k installs
Not checked yet
lark-workflow-standup-report
open.feishu.cn

No description in the SKILL.md.

Agents & Workflows 871k installs
Not checked yet
ask-matt
mattpocock/skills

Ask which skill or flow fits your situation. A router over the skills in this repo.

Agents & Workflows 831k installs curated
Worth a look
lark-vc-agent
open.feishu.cn

No description in the SKILL.md.

Agents & Workflows 814k installs
Not checked yet
wayfinder
mattpocock/skills

Plan a huge chunk of work (more than one agent session can hold) as a shared map of decision tickets on your issue tracker, and resolve them one at a time until the way to the destination is clear.

Agents & Workflows 789k installs curated
No risky patterns found