Skills
Skill 6 of 22
INVOKE FIRST for any LangChain / LangGraph / Deep Agents agent building project before consulting other skills or writing any agent code.
4 minutes · 920 words · 14 sections
Install
npx skills add langchain-ai/langchain-skills --skill ecosystem-primernpx skills add langchain-ai/langchain-skills/plugin marketplace add langchain-ai/langchain-skillsThe first command installs just this skill, by the name in its SKILL.md; the second installs the whole repository.
Higher layers depend on lower ones, but you don’t need to use lower layers directly. Deep Agents gives you LangGraph’s durable execution without writing graph code. LangChain gives you models and tools without managing graph edges.
Evaluate these conditions in order and stop at the first match:
create_agent function)This is your layer. BUT you are not done: later in Step 4, you MUST load the layer-specific skill before writing any agent code.
Best for:
Not ideal when:
All LangChain agents use create_agent(model, tools=[...]).
Best for:
Not ideal when:
All LangGraph graphs use StateGraph(State) with explicit nodes, edges, and conditional edges.
Best for:
Not ideal when:
All Deep Agents use create_deep_agent(model, tools=[...]).
The tools are layered, so they can be combined in the same project. Common patterns:
A compiled LangGraph graph can be registered as a named subagent inside Deep Agents — the orchestrator delegates to it via the task tool without knowing its internal structure. LangChain tools and retrievers work freely inside both LangGraph nodes and Deep Agents tools.
Always set these for observability. These are the current LangSmith env var names. Copy them as-is. OLDER NAMES NO LONGER WORK.
Model-provider and tool-specific keys (ANTHROPIC_API_KEY, OPENAI_API_KEY, TAVILY_API_KEY, etc.) depend on your stack — set them as needed.
All documentation lives at docs.langchain.com, organized into two top-level sections:
/oss/python/) and TypeScript (/oss/javascript/) trees in parallel.Each product has its own page tree: overview → quickstart → how-to guides → reference.
Start here rather than tree-searching from root (swap python → javascript for TypeScript):
/oss/python/langchain/overview/oss/python/langgraph/overview/oss/python/deepagents/overview/langsmith/home (no language split)If the LangChain Docs MCP server is connected (mcp__docs-langchain__* tools are available), query it directly:
tree /oss/python -L 2 # explore Python structure
tree /oss/javascript -L 2 # parallel TypeScript structure
cat /oss/python/langchain/quickstart.mdx # read a specific page
rg -il "checkpointer" /oss/python/langgraph/ # search by keywordIf the MCP server is not available, use the llms.txt index:
https://docs.langchain.com/llms.txt — structured list of all pages with descriptionsAlways prefer fetching live docs over relying on training-data knowledge — these libraries evolve fast and APIs change often.
If the user only wants a minimal local working agent (new project, stub tool, provider key), load the matching quickstart first:
langchain-python-quickstart or langchain-typescript-quickstartlanggraph-python-quickstart or langgraph-typescript-quickstartdeepagents-python-quickstart or deepagents-typescript-quickstartOtherwise load the skill below that matches your layer from Step 1. This is required — the layer-specific skill carries the current API; the primer alone does not.
langchain-fundamentals — building any LangChain agentlangchain-rag — adding RAG / vector store retrievallangchain-middleware — structured output with Pydanticlangchain-dependencies — package versions, installs, or dependency management questionslanggraph-fundamentals — any LangGraph graphlanggraph-human-in-the-loop — human-in-the-loop or approval workflowslanggraph-persistence — state that must survive restarts, or cross-thread memoryAlways load deep-agents-core first. Then, as needed:
deep-agents-orchestration — subagent delegation or orchestrationdeep-agents-memory — cross-session persistent memoryINVOKE FIRST for any LangChain / LangGraph / Deep Agents agent building project before consulting other skills or writing any agent code. Required starting point for up to date info on framework selection (LangChain vs LangGraph vs Deep Agents vs hybrid composition), agent patterns, install, environment setup, and which skill to load next.
The verbatim description from this skill’s front matter — the string an agent matches on to decide whether to load it.
main, last pushed 23 September 2026.SKILL.md, not by matching a directory convention. One layout observed: config/skills/*/SKILL.md..claude-plugin/marketplace.json by LangChain, declaring 1 plugin. It is read for editorial metadata only — never as the skill index, which is always the repository tree./langchain-ai/langchain-skills.md, and each skill at its own .md URL.