Langchain Agent Builder Skills
A comprehensive collection of skills for building AI agents using LangChain and LangGraph.
š¤ LangChain Agent Builder Skills
A production-grade skill library for building AI agents with LangChain, LangGraph & Deep Agents
Stop searching documentation every time you build an agent. This is everything you need, exactly when you need it.
<!-- keywords: langgraph agent, langchain agent builder, ai agent skills, llm agent python, langgraph tutorial, langchain skills, multi-agent system, human-in-the-loop, rag implementation, prompt engineering, mcp server, cost optimization llm, langgraph examples, ai coding assistant skills, claude anthropic agent, deep agents, create_react_agent, StateGraph --> </div>š§ What Is This?
This repository is a curated, battle-tested collection of AI coding skills ā structured knowledge files that an AI coding assistant (like Claude / Gemini) reads automatically to produce production-quality code on the first attempt.
Each skill is a senior engineer living inside your editor who specializes in one area. Instead of you explaining context from scratch every session, the assistant reads the relevant skill and already knows the correct APIs, proven patterns, common pitfalls, and how to combine multiple tools cleanly.
The result: You go from "build me an agent" to a fully structured, memory-enabled, cost-optimized, production-ready LangGraph agent ā in a single conversation.
šļø Core Skill: langchain-langgraph
"If you only read one skill, make it this one."
This is the foundational skill of the entire repository ā a comprehensive, layered reference system for the three-tier AI agent stack:
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
ā Deep Agents ā ā Highest layer: out-of-the-box
ā (planning, memory, skills, files) ā
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā¤
ā LangGraph ā ā Orchestration layer: graphs, loops, state
ā (nodes, edges, state, persistence) ā
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā¤
ā LangChain ā ā Foundation layer: models, tools, chains
ā (models, tools, prompts, RAG) ā
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
What It Covers
| Area | Capabilities |
|---|---|
| Agent Patterns | ReAct, Plan-and-Execute, Multi-Agent Supervisor, Functional Workflow (@entrypoint / @task) |
| State Management | StateGraph, TypedDict schemas, Reducers, MessagesState, input/output schemas |
| Human-in-the-Loop | interrupt() / Command(resume=...) ā node-level, tool-level, multi-step review, validation loops |
| Memory | Short-term (Checkpointers) + Long-term (Store API with semantic search) ā 3 types: Semantic, Episodic, Procedural |
| Durable Execution | @task memoization, durability modes (sync / async / exit), crash recovery |
| Parallel Processing | Map-Reduce fan-out via Send, parallel @task execution |
| Deep Agents | create_deep_agent(), TodoListMiddleware, FilesystemMiddleware, SubAgentMiddleware, SkillsMiddleware |
| Anthropic Claude | Extended Thinking (adaptive + budget), Prompt Caching (90% savings), Server Tools (web search), MCP Connector |
| Observability | LangSmith tracing, custom callbacks, streaming (v2 events), async execution |
Reference Architecture (13 Files, ~130KB)
The skill uses a progressive disclosure pattern ā the main SKILL.md provides core concepts and quick starts, while 13 specialized reference files contain detailed code examples:
skills/langchain-langgraph/
āāā SKILL.md (21KB) # Core concepts, 4 quick starts, anti-patterns
āāā references/
āāā framework-selection.md # Decision guide: LangChain vs LangGraph vs Deep Agents
āāā langchain-dependencies.md # Packages, versions, templates (Python + TypeScript)
āāā langchain-fundamentals.md # create_agent(), @tool, Checkpointer, middleware
āāā langchain-middleware.md # HumanInTheLoopMiddleware, structured output
āāā langchain-rag.md # Document loaders, splitters, vector stores, retrieval
āāā langgraph-fundamentals.md # StateGraph, nodes, edges, Command, Send, streaming
āāā langgraph-human-in-the-loop.md # interrupt(), approval/validation workflows, parallel HITL
āāā langgraph-persistence.md # Checkpointers, thread_id, time travel, Store, subgraph scoping
āāā deep-agents-core.md # create_deep_agent(), Harness, SKILL.md format
āāā deep-agents-memory.md # StateBackend, StoreBackend, CompositeBackend
āāā deep-agents-orchestration.md # Sub-agents, TodoList planning, HITL approval
āāā architecture_patterns.md (23KB) # 13 complete patterns: RAG, Supervisor, Map-Reduce, HITL, Memory Store
āāā advanced_features.md (21KB) # Extended Thinking, Prompt Caching, MCP, LangSmith, Testing
Routing Table
When you encounter a specific problem, the skill routes you to the right reference:
| Scenario | Reference File |
|---|---|
| Choosing between LangChain / LangGraph / Deep Agents | framework-selection.md |
| Package installation, version conflicts, dependencies | langchain-dependencies.md |
Using create_agent(), defining @tool, adding Checkpointer | langchain-fundamentals.md |
| Human-in-the-loop middleware, structured output | langchain-middleware.md |
| Building RAG pipelines, vector stores, text splitting | langchain-rag.md |
Building StateGraph, designing nodes/edges, Command, Send | langgraph-fundamentals.md |
Implementing interrupt(), approval workflows, validation loops | langgraph-human-in-the-loop.md |
Checkpointer, thread_id, state history, time travel, Store | langgraph-persistence.md |
Using Deep Agents (create_deep_agent()), Harness, SKILL.md | deep-agents-core.md |
| Deep Agent memory, filesystem backends | deep-agents-memory.md |
| Sub-agent delegation, TodoList planning, Deep Agent HITL | deep-agents-orchestration.md |
Representative Example
User: "Build me a research assistant that searches the web,
asks for human approval before sending emails, and
remembers user preferences across sessions."
ā Agent generates: Multi-agent graph with HITL approval,
PostgresSaver checkpointer, InMemoryStore with semantic search,
web_search server tool, send_email tool with interrupt(),
all wired up and ready to run.
š¦ Other Skills
Beyond the core engine, 8 complementary skills cover the full AI agent development stack:
| Skill | Purpose | Key Deliverables |
|---|---|---|
šÆ prompt-engineering | Prompt quality & evaluation | 7-layer prompt hierarchy, Claude-specific techniques, Constitutional AI, LLM-as-Judge, A/B testing |
š§ tool-design | Tool interface contracts | Consolidation principles, description engineering, error message design, MCP naming |
š rag-implementation | Knowledge retrieval | 5 RAG patterns (Hybrid, Multi-Query, HyDE, etc.), 4 vector stores, reranking, 2026 embedding models |
š instructor | Structured LLM output | Pydantic-first validation, auto-retry, streaming partial objects, multi-provider support |
š° cost-optimization | Cost control | 3-tier model routing, Prompt Caching, Token Budget Guardian, context compression, Batch API |
š mcp-builder | MCP server development | 4-phase process, tool annotations, evaluation framework, TypeScript + Python guides |
š fastapi | API serving | Streaming endpoints (SSE, JSON Lines), dependency injection, async patterns, modern toolchain |
š ļø skill-creator | Meta-tooling | Create, evaluate, and improve new skills in this format |
ā” What You Can Build
| System | Skills Used |
|---|---|
| Autonomous research agent with web search, memory, and email approval | langchain-langgraph + prompt-engineering + cost-optimization |
| Document Q&A chatbot over proprietary PDFs with source citations | langchain-langgraph + rag-implementation + prompt-engineering |
| Multi-agent content pipeline (researcher ā writer ā reviewer) | langchain-langgraph + tool-design + cost-optimization |
| Structured data extraction API from unstructured documents | instructor + fastapi + prompt-engineering |
| Agent with MCP-powered database tools | mcp-builder + langchain-langgraph + tool-design |
| Cost-aware customer support agent with long-term user memory | All skills combined |
š Getting Started
Prerequisites
# Core (always required)
pip install langchain langchain-core langgraph langsmith
# Model provider (choose one)
pip install langchain-anthropic # For Claude
# pip install langchain-openai # For GPT-4o / o3
# Production persistence
pip install langgraph-checkpoint-postgres
# Optional: Deep Agents framework
pip install deepagents
Environment Setup
cp .env.example .env
# Fill in your API keys:
# ANTHROPIC_API_KEY=sk-ant-...
# LANGSMITH_API_KEY=ls__...
# LANGSMITH_TRACING=true
How to Use These Skills
These skills are designed to be read by AI coding assistants that support the skills protocol (e.g., Gemini, Claude with project files).
Point your assistant at the skills/ directory. When you start a task, the assistant automatically finds and reads the relevant skill(s) before generating code.
No framework? Just reference the skill files directly in your system prompt or context window.
š Repository Structure
langchain-agent-builder-skills/
ā
āāā README.md
āāā .gitignore
ā
āāā skills/
āāā langchain-langgraph/ # šļø Core agent framework (21KB + 13 references)
ā āāā SKILL.md # Main skill: concepts, quick starts, anti-patterns
ā āāā references/ # 13 specialized reference files (~130KB total)
ā āāā framework-selection.md
ā āāā langchain-dependencies.md
ā āāā langchain-fundamentals.md
ā āāā langchain-middleware.md
ā āāā langchain-rag.md
ā āāā langgraph-fundamentals.md
ā āāā langgraph-human-in-the-loop.md
ā āāā langgraph-persistence.md
ā āāā deep-agents-core.md
ā āāā deep-agents-memory.md
ā āāā deep-agents-orchestration.md
ā āāā architecture_patterns.md
ā āāā advanced_features.md
ā
āāā prompt-engineering/ # šÆ Prompt quality & evaluation
āāā tool-design/ # š§ Tool interface contracts
āāā rag-implementation/ # š Knowledge retrieval (5 patterns)
āāā instructor/ # š Structured LLM output
āāā cost-optimization/ # š° Cost control strategies
āāā mcp-builder/ # š MCP server development
āāā fastapi/ # š API serving
āāā skill-creator/ # š ļø Meta-tooling
š Related Projects & Resources
- LangGraph ā The agent orchestration framework these skills are built for
- LangChain ā The broader ecosystem
- Anthropic Claude ā The LLM powering most examples here
- LangSmith ā Observability & evaluation for LangGraph agents
- FastMCP ā Python MCP server framework used in
mcp-builder - Instructor ā Structured outputs library used in
instructorskill
š¤ Contributing
Found a missing pattern? Got a better example? Skills evolve.
- Fork the repo
- Create a branch:
git checkout -b feat/new-pattern - Add your changes with clear examples and explanations
- Open a PR with a description of what problem it solves
š License
MIT Ā© ferzat0918
<div align="center">
If this saves you hours of documentation diving, consider giving it a ā
Built with obsessive attention to what actually works in production.
</div>