config/skills/ecosystem-primer/SKILL.md
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.
npx skillsauth add langchain-ai/langchain-skills ecosystem-primerInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
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>
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.
</decision-table>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.
<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.
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 keyword
If the MCP server is not available, use the llms.txt index:
https://docs.langchain.com/llms.txt — structured list of all pages with descriptions</docs>Always prefer fetching live docs over relying on training-data knowledge — these libraries evolve fast and APIs change often.
Now 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.
<next-skills>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 memorytesting
Iteratively inspect an agent repository and optional traces, interview the user, and create, run, and audit Harbor evals one at a time. Use for agent evals, benchmark tasks, regression cases, trace-informed evals, verifier design, or controlled agent environments.
development
INVOKE THIS SKILL when building ANY retrieval-augmented generation (RAG) system. Covers document loaders, RecursiveCharacterTextSplitter, embeddings (OpenAI), and vector stores (Chroma, FAISS, Pinecone).
tools
INVOKE THIS SKILL when building, testing, or deploying Managed Deep Agents in LangSmith with the mda CLI. Covers the code-first, file-based project layout; define_deep_agent / defineDeepAgent; authored tools and middleware; MCP connectors; cron schedules; skills; sandboxes; mda init/dev/deploy; Context Hub; and human-in-the-loop interrupts in Python and TypeScript.
data-ai
Dispatches many independent items in parallel: create a table, fan out to subagents, aggregate results. One row = one unit of work.