langgraph-agent-patterns

Build and validate LangGraph multi-agent graphs with supervisor, router, orchestrator-worker, and handoff patterns.

101|14|Updated Jan 27, 2026
One-click install
npx skills add https://github.com/Lubu-Labs/langchain-agent-skills --skill langgraph-agent-patterns
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: langgraph-agent-patterns
Source: https://github.com/Lubu-Labs/langchain-agent-skills/tree/main/skills/langgraph-agent-patterns
Command: npx skills add https://github.com/Lubu-Labs/langchain-agent-skills --skill langgraph-agent-patterns

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill provides boilerplate templates and tooling to design and validate LangGraph multi-agent patterns such as Supervisor-Subagent, Router, Orchestrator-Worker, and Handoffs, enabling faster setup and more reliable coordination.

Core Features & Use Cases

  • Prebuilt pattern templates (Supervisor-Subagent, Router, Orchestrator-Worker, and Handoffs) with Python and TypeScript boilerplates.
  • Graph validation and visualization utilities (validate_agent_graph.py, visualize_graph.py) to ensure correct topology and debug flows.
  • Asset examples and references to illustrate common workflows and state schemas.

Quick Start

Open skills/langgraph-agent-patterns/SKILL.md and follow the Quick Start to experiment with the provided boilerplates.

Frequently Asked Questions about langgraph-agent-patterns

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I coordinate multiple agents in a LangGraph workflow?

To coordinate multiple agents in a LangGraph workflow, you use established multi-agent patterns like Supervisor-Subagent, Router, Orchestrator-Worker, and Handoffs. These patterns provide boilerplate templates to structure centralized coordination, parallel task execution, or sequential routing reliably.

What is the difference between orchestrator-worker and supervisor-subagent patterns in LangGraph?

The supervisor-subagent pattern uses centralized coordination where a supervisor delegates tasks, whereas the orchestrator-worker pattern focuses on parallel task execution. Both LangGraph multi-agent patterns provide distinct topologies for routing and executing tasks deterministically.

How do I validate a LangGraph multi-agent graph topology?

You validate a LangGraph multi-agent graph topology using graph validation utilities like `validate_agent_graph.py` to ensure correct structure and debug flows. Visualization tools like `visualize_graph.py` also help verify topology and state schemas.

Can I build a router pattern for deterministic task routing in LangGraph?

Yes, you can build a router pattern for deterministic task routing in LangGraph. The Skill provides prebuilt boilerplate templates and asset examples to illustrate how to implement and validate deterministic routing within your multi-agent graphs.

Does this LangGraph boilerplate support both Python and TypeScript?

Yes, the LangGraph multi-agent boilerplates support both Python and TypeScript. The provided templates for Supervisor-Subagent, Router, Orchestrator-Worker, and Handoff patterns include code examples in both languages to facilitate faster setup.

When should I use a handoff pattern instead of an orchestrator-worker graph?

Use a handoff pattern for sequential task execution where one agent passes control directly to another, whereas an orchestrator-worker graph suits parallel task execution. The provided boilerplates help validate which topology fits your workflow.