deep-agents-core
INVOKE THIS SKILL when building ANY Deep Agents application. Covers create_deep_agent(), harness architecture, SKILL.md format,…
INVOKE 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
Claude Code
$ npx -y skills add langchain-ai/langchain-skills --skill ecosystem-primer --agent claude-code
Codex
$ npx skills add langchain-ai/langchain-skills --skill ecosystem-primer -a codex -y
Cursor
$ npx skills add langchain-ai/langchain-skills --skill ecosystem-primer -a cursor -y
Gemini CLI
$ npx skills add langchain-ai/langchain-skills --skill ecosystem-primer -a gemini-cli -y
GitHub Copilot
$ npx skills add langchain-ai/langchain-skills --skill ecosystem-primer -a github-copilot -y
OpenCode
$ npx skills add langchain-ai/langchain-skills --skill ecosystem-primer -a opencode -y
Windsurf
$ npx skills add langchain-ai/langchain-skills --skill ecosystem-primer -a windsurf -y
name: ecosystem-primer description: "INVOKE 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."
<overview> LangChain Inc. maintains three layered open-source tools for building agents, plus LangSmith for observability. The stack, top-down:
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. </overview>
---
<decision-table>
Evaluate these conditions in order and stop at the first match:
1. If the task needs planning, file management across a long session, persistent memory, subagent delegation, or on-demand skills → **Deep Agents** 2. Else, if the task needs custom control flow (deterministic loops, branching logic) → **LangGraph** 3. Else, if it's a single-purpose agent with a fixed set of tools → **LangChain** (`create_agent` function) 4. Else, if it's a pure model call, retrieval pipeline, or simple prompt chain with no agent loop → **LangChain** (direct model / chain)
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.
</decision-table>
---
<langchain-profile>
**Best for:**
**Not ideal when:**
All LangChain agents use `create_agent(model, tools=[...])`.
</langchain-profile>
<langgraph-profile>
**Best for:**
**Not ideal when:**
All LangGraph graphs use `StateGraph(State)` with explicit nodes, edges, and conditional edges.
</langgraph-profile>
<deep-agents-profile>
**Best for:**
**Not ideal when:**
All Deep Agents use `create_deep_agent(model, tools=[...])`.
</deep-agents-profile>
---
<mixing-layers>
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.
</mixing-layers>
---
Always set these for observability. These are the current LangSmith env var names. Copy them as-is. OLDER NAMES NO LONGER WORK.
<environment-variables> LANGSMITH_API_KEY=<your-key> LANGSMITH_TRACING=true LANGSMITH_PROJECT=<project-name> </environment-variables>
Model-provider and tool-specific keys (`ANTHROPIC_API_KEY`, `OPENAI_API_KEY`, `TAVILY_API_KEY`, etc.) depend on your stack — set them as needed.
---
<docs>
All documentation lives at **docs.langchain.com**, organized into two top-level sections:
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):
**If the LangChain Docs MCP server is connected** (`mcp__docs-langchain__*` tools are available), query it directly:
tree /oss/python -L 2
⚠️ — This project is in early development. APIs and skill content may change. Agent skills for building agents with LangChain, LangGraph, and Deep Agents. For LangSmith-specific trace and dataset workflows, use langsmith-skills.
INVOKE THIS SKILL when building ANY Deep Agents application. Covers create_deep_agent(), harness architecture, SKILL.md format,…
INVOKE THIS SKILL when your Deep Agent needs memory, persistence, or filesystem access. Covers StateBackend (ephemeral),…
INVOKE THIS SKILL when using subagents, task planning, or human approval in Deep Agents. Covers SubAgentMiddleware, TodoList for…
Scaffold a minimal local Deep Agent in Python by following the official quickstart, using provider-native web search instead of…
Scaffold a minimal local Deep Agent in TypeScript by following the official quickstart, using provider-native web search instead…
Inspect an agent repository and optional traces, interview the user, write reviewed Task Specs, build and audit Harbor tasks, and…
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Ask which skill or flow fits your situation. A router over the skills in this repo.