К основному содержанию
скилл CX Codex

langchain-build-agent — скилл для Claude Code: как установить

Скилл langchain-build-agent для Claude Code помогает проектировать и связывать агентов на Deep Agents, LangGraph и LangChain. Он выбирает архитектуру под задачу и согласует версии библиотек.

MIT 352 установок ★ 1 354 обновлён 2026-10-21

Установить в Claude Code · Через Skills CLI (Vercel) Все способы и платформы ↓
npx skills add langchain-ai/langchain-skills --skill langchain-build-agent -a claude-code
Открыть на GitHub

Что делает langchain-build-agent

Скилл определяет архитектуру ИИ-приложения в экосистеме LangChain, опираясь на Deep Agents как базовый слой для рассуждений и вызова инструментов. Для детерминированных цепочек и ветвлений он подключает LangGraph, а при строгих ограничениях оставляет базовый langchain.agents.create_agent.

Библиотеки deepagents, langgraph и langchain поставляются отдельными пакетами. Поэтому агент сверяет код с версиями в манифесте или lock-файле проекта, предотвращая поломки из-за разницы между установленным релизом и свежей документацией.

Какие задачи решает

  • выбрать подходящий фреймворк между Deep Agents, LangGraph и базовым LangChain
  • собрать агента с инструментами через deepagents.create_deep_agent
  • встроить детерминированный граф LangGraph в виде инструмента для агента
  • согласовать код приложения с установленными версиями пакетов в манифесте

Примеры запросов агенту

  • Помоги создать агента с инструментами поиска через Deep Agents на Python
  • Спроектируй рабочий процесс в LangGraph и подключи автономного агента в один из узлов
  • Проверь установленные версии LangChain в проекте и переведи агента на актуальные интерфейсы

Как установить langchain-build-agent

1Через Skills CLI (Vercel)

npx skills add langchain-ai/langchain-skills --skill langchain-build-agent -a claude-code

2Вручную: положить файлы

~/.claude/skills/langchain-build-agent/SKILL.md

Папка скилла целиком; для одного проекта — .claude/skills/langchain-build-agent/

По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов

Вопросы о langchain-build-agent

Как установить langchain-build-agent в Claude Code?

Запустите в терминале команду npx skills add langchain-ai/langchain-skills --skill langchain-build-agent -a claude-code.

Что делает langchain-build-agent?

Он даёт актуальные инструкции по связыванию Deep Agents, LangGraph и LangChain, подбирая архитектуру и точки расширения под задачи проекта.

Чем Deep Agents отличается от базового агента LangChain?

Deep Agents работает поверх LangGraph и langchain.agents.create_agent, добавляя готовый каркас с middleware, планированием и системными промптами.

Исходный текст

SKILL.md · MIT
---
name: langchain-build-agent
description: "Provides the latest guidance for building or modifying LLM applications with the LangChain open source libraries: Deep Agents, LangGraph, and LangChain, including how the libraries best fit together. The stack evolves quickly, so it's important to verify prior knowledge against this guidance. Also covers when Managed Deep Agents fits."
---

# Build and modify LangChain applications

Deep Agents is the most recent high-level agent abstraction we recommend in the
LangChain ecosystem and the default starting point for new agents. When an
application uses model reasoning to choose tools and determine its next steps,
start with Deep Agents. In Python, construct the agent with
`deepagents.create_deep_agent`.

Deep Agents builds on LangChain's `create_agent` and runs on LangGraph. It provides
a configurable agent harness with middleware, tools, and prompting; using it does
not require a complex task or a need for every built-in capability.

Use this skill to choose and compose these components. Retrieve current
implementation details from official documentation and installed packages.

## Understand the application

Identify the requested behavior, language, package versions, existing agent or
graph, tool interfaces, state, and deployment constraints. For an existing
application, preserve its architecture and explicit provider/model choices unless
the requested change needs a different approach. For a new application, build
the user's actual use case rather than substituting a tutorial demo.

Distinguish ecosystem requests from concrete implementation constraints. A request
to “build an agent with LangChain” leaves the implementation architecture open.
Building with Deep Agents satisfies that ecosystem request.

Requirements such as “use `langchain.agents.create_agent` directly” or “do not add
the `deepagents` package” constrain the implementation. Honor explicit constraints;
do not infer an API choice from the ecosystem name alone.

## How the components relate

Deep Agents uses LangChain's `create_agent` internally, extending it with
preconfigured middleware, tools, and system prompting for capabilities such as
planning, filesystem access, and delegation. It supports further customization
through tools and middleware.

Calling `langchain.agents.create_agent` directly constructs a base LangChain
agent; it does not include the Deep Agents harness. Use Deep Agents' public
builder to get that harness, and verify the corresponding entrypoint in the
current documentation for your language.

Both LangChain agents and Deep Agents run on LangGraph, which provides their
underlying execution runtime. LangGraph also supports explicit workflow
orchestration. Composition works in both directions: a LangGraph workflow can
contain a Deep Agent as a node, and a Deep Agent can invoke a LangGraph workflow
exposed as a tool.

Consult current documentation for the capabilities included by default and how
to configure or extend them.

## Choose the application architecture

For a new reasoning and tool-calling agent, inspect Deep Agents' current
documentation and extension points before selecting an implementation. Use its
agent builder as the default, including for small agents with a limited tool set.

Preserve an existing application's architecture unless the requested change
requires revisiting it. Follow explicit user requirements about frameworks.

Use LangGraph when the application requires explicit sequencing, branching, or
workflow control. Where a workflow contains an autonomous agent, that node can
use Deep Agents. Where an agent needs a deterministic subtask, expose a LangGraph
workflow as a tool it can call.

Choose a base LangChain agent when a concrete requirement or verified
incompatibility makes Deep Agents unsuitable, and explain that constraint.
Task simplicity alone does not establish such a constraint.

Use a direct model call when no agent loop is needed.

Managed Deep Agents is LangSmith's hosted way to run Deep Agents. You define
the agent in code; LangSmith packages it as an Agent Server and manages its
deployment, persistent state, and agent context such as instructions and skills.
Consider it when the user wants to operate a Deep Agent without assembling that
runtime stack, or needs managed capabilities such as sandboxes or schedules.
Keep agent logic and hosted runtime choices distinct. Verify current capabilities
and setup in official docs and the installed CLI; a general request to build a
LangChain agent does not imply managed hosting.

## Retrieve the implementation contract

Inspect the manifest, lockfile, and relevant installed packages. Check Deep Agents
availability and version alongside LangChain and LangGraph when building an agent;
these are separate packages. Verify the APIs you intend to use against the
installed versions.

Current documentation may describe a newer release. Match the implementation to
the installed version; do not silently upgrade an existing project to fit an
example. For a new project, select current compatible stable releases. Do not
assume Python and TypeScript expose identical capabilities or defaults.

## Implement at the right layer

Choose the component that owns the behavior. Agent-loop adaptation belongs in
supported middleware; deterministic business routing belongs in workflow control;
tool implementation owns the operation and its authorization. Inspect which
middleware and tools the harness already supplies before adding replacements.

Use runtime context for request identity and dependencies. Decide explicitly
which data is transient, belongs to one conversation, or should survive across
conversations and process restarts. Conversation checkpoints and cross-conversation
memory have different scopes; verify storage lifetime and user isolation.
Verify configuration and inheritance at integration boundaries rather than
assuming that nested agents share all parent settings.

Give tools narrow contracts and descriptions that explain when to call them.
Enforce consequential operations in application code; prompt instructions and
model-visible tool filtering do not provide authorization.

For human review, use the harness's supported review capability for tool calls
and workflow interrupts for other pauses. Implement the caller-facing proposal
and resume flow, accounting for replay of side effects.

## Verify the requested behavior

Exercise the actual agent or graph path, not only construction or imports. Use
realistic inputs to check tool effects, state changes, and the caller's output
contract. When human review is involved, verify that approved or edited actions
execute as reviewed, rejected actions do not execute, and resuming does not
repeat side effects. Separate infrastructure or provider failures from
application logic failures.

## Use current tools

Use `langchain-docs` → `search_docs_by_lang_chain` and
`query_docs_filesystem_docs_by_lang_chain` to find and read the intended pattern
for the task's capability and language. When exact API behavior matters, use
`langchain-reference` → `search_api`, then `get_symbol` for the relevant
signatures, parameters, return values, or defaults. Reconcile the guidance with
the installed package version, source, or types.

This skill sets the architecture default even if a docs server resource suggests
another. The API reference governs published signatures; installed source or
types govern what the project's version supports. The docs server's
`submit_feedback` sends content to the documentation team; use it only with the
user's agreement.

If the MCPs are unavailable, locate official pages through
https://docs.langchain.com/llms.txt and https://reference.langchain.com/llms.txt.
Follow the relevant nested index to a page. If offline, use installed source,
types, CLI help, and existing application examples, and identify any unresolved
version-sensitive behavior.

© langchain-ai · MIT · langchain-ai/langchain-skills

Похожие скиллы

Все скиллы по теме «Настройка агента: память, контекст, субагенты» →
deepagents-implementation existential-birds Скилл deepagents-implementation для Claude Code даёт рецепты сборки агентов на Deep Agents: фабрика create_deep_agent, файловые бэкенды, субагенты и стриминг LangGraph. CX Codex +1 142установок langchain-development Mindrally Скилл langchain-development для Claude Code: задаёт правила разработки на LangChain и LangGraph — композиция цепочек, агенты, память, RAG. Держит Python-проект в едином стиле. CX Codex +1 726установок migrating-langchain-to-pydantic-ai pydantic Скилл migrating-langchain-to-pydantic-ai для Claude Code переносит Python-проекты с LangChain, LangGraph и Deep Agents на Pydantic AI, сохраняя публичные контракты приложения. CX Codex +1 476установок langchain-webhooks-events Jeremy Longshore Скилл langchain-webhooks-events для Claude Code отправляет события цепочек LangChain 1.0 и LangGraph в HTTP-вебхуки или Kafka без блокировки основного потока. Передаёт телеметрию вызовов инструментов и мониторинга. CX Codex +1 4установок langchain-architecture Seth Hobson Скилл langchain-architecture для Claude Code помогает проектировать LLM-приложения на LangChain 1.x и LangGraph: агентов, память, состояние и вызов инструментов. Разбирает сложные AI-воркфлоу. CX Codex +1 13 150установок langchain hoodini Скилл даёт Claude готовые рецепты для приложений на LangChain и LangGraph: цепочки LCEL, RAG поверх Chroma, граф агента с инструментами, структурированный вывод и память по сессиям. CX Codex +1 ★ 301звёзд репо

Из того же набора25

Весь набор →
langchain-python-quickstart Скилл langchain-python-quickstart создаёт минимального локального LangChain-агента на Python по актуальному quickstart. Нужен, чтобы проверить агентский сценарий в отдельной папке. CX Codex +1 6 000установок deepagents-typescript-quickstart Скилл deepagents-typescript-quickstart собирает минимального Deep Agent на TypeScript по официальному квикстарту, с встроенным веб-поиском провайдера вместо Tavily. CX Codex +1 5 900установок langchain-typescript-quickstart Скилл langchain-typescript-quickstart для Claude Code создаёт в проекте минимального агента LangChain на TypeScript. Требует Node 22+ и запускает проверку с выбранной моделью. CX Codex +1 5 900установок deepagents-python-quickstart Скилл deepagents-python-quickstart собирает минимального Deep Agent на Python по живому quickstart LangChain: спрашивает модель, поднимает отдельную папку проекта, меняет Tavily на встроенный поиск провайдера. CX Codex +1 5 900установок langgraph-typescript-quickstart Скилл langgraph-typescript-quickstart для Claude Code разворачивает минимального локального агента LangGraph на TypeScript по официальному руководству. Он собирает и проверяет графы без ручной настройки проекта. CX Codex +1 5 900установок langgraph-decision-models Скилл langgraph-decision-models учит агента заменять LLM-вызовы, из которых вы вытаскиваете решение, на типизированные вопросы с вероятностями. CX Codex +1 2 600установок langchain-agent-tracing Скилл langchain-agent-tracing для Claude Code помогает настроить трассировку агентов и приложений на LangSmith. Он подключается при добавлении или проверке сбора трасс и их маршрутизации. CX Codex +1 298установок langchain-agent-monitoring Скилл langchain-agent-monitoring для Claude Code помогает настроить мониторинг агентов в продакшене через онлайн-эвалюаторы LangSmith. Направляет оценки трейсов в очереди ревью и алерты. CX Codex +1 285установок

Спонсоры проекта

Компании, которые помогают держать аналитику открытой