1---2name: langchain-skills3description: Use when building agents with LangChain, LangGraph, or Deep Agents. 21 skills covering ecosystem primer, quickstarts, Deep Agents (memory, orchestration, managed), LangChain (fundamentals, middleware, RAG), LangGraph (fundamentals, persistence, CLI, human-in-the-loop), evaluation (Harbor), and utilities (swarm).4category: integrations5domain: integrations6tags:7 - langchain8 - langgraph9 - deep-agents10 - agent-engineering11 - harbor-evaluation12 - rag13 - multi-agent14version: 1.0.015metadata:16 source: https://skillmd.com/skills/oyi77/langchain-skills17---1819# LangChain Skills: Agent Engineering with LangChain, LangGraph & Deep Agents2021Official agent skills from LangChain for building production-grade LLM applications. 21 skills covering the full stack from fundamentals to managed deployment.2223---2425## Anti-Rationalization Table2627| Excuse | Reality | Rule |28|--------|---------|------|29| "I'll just use raw LLM calls" | Raw calls lack observability, memory, streaming, and eval infrastructure | Use LangGraph for stateful agents, LangSmith for tracing |30| "LangChain is too heavy" | Core is modular; use only what you need (create_agent, StateGraph, checkpointers) | Import specific modules, not the whole framework |31| "I don't need evals" | Evals catch regressions before production; Harbor makes it systematic | Run eval-engineering skill to set up Harbor evals |32| "Deep Agents are overkill" | Deep Agents add planning, subagents, filesystem - essential for complex tasks | Use Deep Agents when task needs multi-step planning + tools |33| "I'll write my own RAG" | RAG has 50+ failure modes; langchain-rag skill covers loaders, embeddings, vector stores | Use the skill; customize only the retrieval strategy |3435---3637## When to Use3839**Use when you need to:**4041- **Start a new agent project** → `ecosystem-primer` (framework selection: LangChain vs LangGraph vs Deep Agents)42- **Quick prototype** → Quickstart skills (weather bot, math agent, research agent)43- **Build Deep Agents** → `deep-agents-core`, `deep-agents-memory`, `deep-agents-orchestration`, `managed-deep-agents`44- **Build LangChain agents** → `langchain-fundamentals`, `langchain-middleware`, `langchain-rag`45- **Build LangGraph workflows** → `langgraph-fundamentals`, `langgraph-persistence`, `langgraph-cli`, `langgraph-human-in-the-loop`46- **Evaluate agents** → `eval-engineering` (Harbor evals with user approval)47- **Parallelize independent work** → `swarm` (dispatch + aggregate)4849---5051## Workflow52531. **Select Framework** — Run `ecosystem-primer` to choose LangChain / LangGraph / Deep Agents542. **Verify Setup** — Run appropriate quickstart (weather, math, or research agent)553. **Configure API Keys** — Set `OPENAI_API_KEY` and/or `ANTHROPIC_API_KEY`564. **Load Framework Skill** — Load skill matching your framework choice575. **Build & Test** — Develop agent with framework-specific patterns586. **Evaluate (Production)** — Use `eval-engineering` to set up Harbor evals597. **Deploy** — Use `managed-deep-agents` or `langgraph-cli` for deployment6061---6263## Quick Start6465### Install All Skills (via npx)66```bash67# Local (current project)68npx skills add langchain-ai/langchain-skills --skill '*' --yes6970# Global (all projects)71npx skills add langchain-ai/langchain-skills --skill '*' --yes --global7273# Link to specific agent (e.g., Claude Code)74npx skills add langchain-ai/langchain-skills --agent claude-code --skill '*' --yes --global75```7677### Install via Script (Claude Code & Deep Agents CLI)78```bash79# Clone and install80git clone https://github.com/langchain-ai/langchain-skills81cd langchain-skills8283# Install for Claude Code in current directory84./install.sh8586# Install for specific project87./install.sh ~/my-project8889# Install globally90./install.sh --global9192# Install for Deep Agents CLI93./install.sh --deepagents ~/my-project9495# Install globally for Deep Agents (includes agent persona)96./install.sh --deepagents --global97```9899### Required API Keys100```bash101export OPENAI_API_KEY=<your-key> # For OpenAI models102export ANTHROPIC_API_KEY=<your-key> # For Anthropic models103```104105---106107## Available Skills (21)108109### Getting Started110| Skill | Description |111|-------|-------------|112| `ecosystem-primer` | **Start here.** Framework selection (LangChain vs LangGraph vs Deep Agents), env setup, which skill to load next |113| `langchain-dependencies` | Full package version and dependency management reference (Python + TypeScript) |114115### Quickstarts (Local)116| Skill | Description |117|-------|-------------|118| `langchain-python-quickstart` | Python weather agent (default: anthropic:claude-sonnet-5) |119| `langchain-typescript-quickstart` | TypeScript weather agent |120| `langgraph-python-quickstart` | Python math agent |121| `langgraph-typescript-quickstart` | TypeScript math agent |122| `deepagents-python-quickstart` | Python research agent (web search) |123| `deepagents-typescript-quickstart` | TypeScript research agent |124125### Deep Agents126| Skill | Description |127|-------|-------------|128| `deep-agents-core` | Agent architecture, harness setup, SKILL.md format |129| `deep-agents-memory` | Memory, persistence, filesystem middleware |130| `deep-agents-orchestration` | Subagents, task planning, human-in-the-loop |131| `managed-deep-agents` | Deploy with CLI, use SDKs, stream runs, connect MCP tools, build React useStream UIs |132133### LangChain134| Skill | Description |135|-------|-------------|136| `langchain-fundamentals` | Agents with create_agent, tools, structured output, middleware basics |137| `langchain-middleware` | Human-in-the-loop approval, custom middleware, Command resume patterns |138| `langchain-rag` | RAG pipeline: document loaders, embeddings, vector stores |139140### LangGraph141| Skill | Description |142|-------|-------------|143| `langgraph-fundamentals` | StateGraph, nodes, edges, state reducers |144| `langgraph-persistence` | Checkpointers, thread_id, cross-thread memory |145| `langgraph-cli` | CLI lifecycle: scaffold, dev, build, deploy, langgraph.json config |146| `langgraph-human-in-the-loop` | Interrupts, human review, approval workflows |147148### Evaluation149| Skill | Description |150|-------|-------------|151| `eval-engineering` | Build, run, and audit Harbor evals for existing agent with user approval |152153### Utilities154| Skill | Description |155|-------|-------------|156| `swarm` | Dispatch independent work items in parallel and aggregate results |157158---159160## Framework Selection Guide161162| Use Case | Recommended Framework | Start With Skill |163|----------|----------------------|------------------|164| Simple tool-calling agent | LangChain | `langchain-fundamentals` |165| Stateful multi-turn conversation | LangGraph | `langgraph-fundamentals` |166| Complex planning + subagents + filesystem | Deep Agents | `deep-agents-core` |167| Need eval/monitoring in prod | LangSmith + Harbor | `eval-engineering` |168| Quick prototype (weather, math, research) | Any | Quickstart skills |169170---171172## Verification Checklist173174- [ ] Choose framework via `ecosystem-primer`175- [ ] Run appropriate quickstart to verify setup176- [ ] Install API keys (OPENAI_API_KEY, ANTHROPIC_API_KEY)177- [ ] Load framework-specific skill for your use case178- [ ] For production: set up `eval-engineering` with Harbor179- [ ] For complex tasks: use `deep-agents-orchestration` for subagents180- [ ] For stateful workflows: use `langgraph-persistence` with checkpointers181182---183184## References185186- **GitHub Repository**: https://github.com/langchain-ai/langchain-skills187- **Documentation**: https://langchain-ai.github.io/langgraph/188- **LangSmith Platform**: https://smith.langchain.com/189- **Harbor Evaluation**: https://github.com/langchain-ai/harbor190- **Deep Agents**: https://github.com/langchain-ai/deepagents191- **LangChain Academy**: https://academy.langchain.com/192- **License**: MIT193194---195196## Related 1ai-skills197198- `langchain-patterns` — LangChain/LangGraph patterns: chains, agents, tools, memory, retrieval, graph workflows199- `langgraph-fundamentals` — LangGraph state machines, nodes, edges, reducers (if available)200- `rag-builder` — RAG pipeline design: chunking, embedding, retrieval, answer generation201- `agent-harness-optimizer` — Agent harness optimization for token efficiency, memory persistence202- `model-router` — Route AI model requests to optimal provider