Langchain Agent Builder Skills

A comprehensive collection of skills for building AI agents using LangChain and LangGraph.

<div align="center">

šŸ¤– LangChain Agent Builder Skills

A production-grade skill library for building AI agents with LangChain, LangGraph & Deep Agents

LangChain LangGraph Claude Python License

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

AreaCapabilities
Agent PatternsReAct, Plan-and-Execute, Multi-Agent Supervisor, Functional Workflow (@entrypoint / @task)
State ManagementStateGraph, TypedDict schemas, Reducers, MessagesState, input/output schemas
Human-in-the-Loopinterrupt() / Command(resume=...) — node-level, tool-level, multi-step review, validation loops
MemoryShort-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 ProcessingMap-Reduce fan-out via Send, parallel @task execution
Deep Agentscreate_deep_agent(), TodoListMiddleware, FilesystemMiddleware, SubAgentMiddleware, SkillsMiddleware
Anthropic ClaudeExtended Thinking (adaptive + budget), Prompt Caching (90% savings), Server Tools (web search), MCP Connector
ObservabilityLangSmith 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:

ScenarioReference File
Choosing between LangChain / LangGraph / Deep Agentsframework-selection.md
Package installation, version conflicts, dependencieslangchain-dependencies.md
Using create_agent(), defining @tool, adding Checkpointerlangchain-fundamentals.md
Human-in-the-loop middleware, structured outputlangchain-middleware.md
Building RAG pipelines, vector stores, text splittinglangchain-rag.md
Building StateGraph, designing nodes/edges, Command, Sendlanggraph-fundamentals.md
Implementing interrupt(), approval workflows, validation loopslanggraph-human-in-the-loop.md
Checkpointer, thread_id, state history, time travel, Storelanggraph-persistence.md
Using Deep Agents (create_deep_agent()), Harness, SKILL.mddeep-agents-core.md
Deep Agent memory, filesystem backendsdeep-agents-memory.md
Sub-agent delegation, TodoList planning, Deep Agent HITLdeep-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:

SkillPurposeKey Deliverables
šŸŽÆ prompt-engineeringPrompt quality & evaluation7-layer prompt hierarchy, Claude-specific techniques, Constitutional AI, LLM-as-Judge, A/B testing
šŸ”§ tool-designTool interface contractsConsolidation principles, description engineering, error message design, MCP naming
šŸ“š rag-implementationKnowledge retrieval5 RAG patterns (Hybrid, Multi-Query, HyDE, etc.), 4 vector stores, reranking, 2026 embedding models
šŸ“Š instructorStructured LLM outputPydantic-first validation, auto-retry, streaming partial objects, multi-provider support
šŸ’° cost-optimizationCost control3-tier model routing, Prompt Caching, Token Budget Guardian, context compression, Batch API
šŸ”Œ mcp-builderMCP server development4-phase process, tool annotations, evaluation framework, TypeScript + Python guides
šŸš€ fastapiAPI servingStreaming endpoints (SSE, JSON Lines), dependency injection, async patterns, modern toolchain
šŸ› ļø skill-creatorMeta-toolingCreate, evaluate, and improve new skills in this format

⚔ What You Can Build

SystemSkills Used
Autonomous research agent with web search, memory, and email approvallangchain-langgraph + prompt-engineering + cost-optimization
Document Q&A chatbot over proprietary PDFs with source citationslangchain-langgraph + rag-implementation + prompt-engineering
Multi-agent content pipeline (researcher → writer → reviewer)langchain-langgraph + tool-design + cost-optimization
Structured data extraction API from unstructured documentsinstructor + fastapi + prompt-engineering
Agent with MCP-powered database toolsmcp-builder + langchain-langgraph + tool-design
Cost-aware customer support agent with long-term user memoryAll 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 instructor skill

šŸ¤ Contributing

Found a missing pattern? Got a better example? Skills evolve.

  1. Fork the repo
  2. Create a branch: git checkout -b feat/new-pattern
  3. Add your changes with clear examples and explanations
  4. 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>