langgraph-agent-patterns

langgraph-agent-patterns is a skill for Claude Code from soba-labs/langchain-agent-skills. It costs 118 tokens per session (3,344 once invoked), scanned A, original, MIT.

A guide to coordinating multiple specialized language-model agents in LangGraph. It explains supervisors, routers, parallel workers, and step-by-step handoffs.

In plain words
What is it for?
Use it to build multi-agent applications, delegate work to specialist agents, route requests, run independent tasks in parallel, and combine their results.
Why use it?
It helps choose a workflow structure instead of connecting agents arbitrarily. The choice depends on whether tasks need routing, parallel work, or a fixed sequence.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions subagents.

Part of the langgraph-skills plugin — 5 skills shipped together

Good fit Use it to build multi-agent applications, delegate work to specialist agents, route requests, run independent tasks in parallel, and combine their results.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/soba-labs/langchain-agent-skills/langgraph-agent-patterns
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add soba-labs/langchain-agent-skills --skill langgraph-agent-patterns
Clone the repo
git clone --depth 1 https://github.com/soba-labs/langchain-agent-skills

Made for: Claude Code.

Or install langgraph-skills, the plugin that ships this one along with the rest of its 5 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for langgraph-agent-patterns

README.md
[![agentmods](https://agentmods.dev/badge/skills/soba-labs/langchain-agent-skills/langgraph-agent-patterns/github.svg)](https://agentmods.dev/skills/soba-labs/langchain-agent-skills/langgraph-agent-patterns)
Your own site
<a href="https://agentmods.dev/skills/soba-labs/langchain-agent-skills/langgraph-agent-patterns"><img src="https://agentmods.dev/badge/skills/soba-labs/langchain-agent-skills/langgraph-agent-patterns/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for langgraph-agent-patterns

Your own site · 80×15
<a href="https://agentmods.dev/skills/soba-labs/langchain-agent-skills/langgraph-agent-patterns"><img src="https://agentmods.dev/badge/skills/soba-labs/langchain-agent-skills/langgraph-agent-patterns.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 118 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,344 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00118 $0.03344
Opus 5.5 $0.00047 $0.01338
Sonnet 5.5 $0.00024 $0.00669
Haiku 4.5 $0.00012 $0.00334

Measured 2mo ago against content hash a25c90f818e5, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

langgraph-agent-patterns scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

The scan reads SKILL.md. This mod also ships 11 executable files (assets/examples/handoff-example/js/index.js, assets/examples/handoff-example/python/graph.py, assets/examples/orchestrator-example/js/index.js, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/langgraph-agent-patterns/SKILL.md · 566 lines

How it starts

The opening of the file, as written. The whole thing — 566 lines — stays where its author put it; the contents beside it link to each section on GitHub.

LangGraph Agent Patterns

Implement and configure multi-agent coordination patterns for LangGraph applications.

Pattern Selection

Choose the right pattern based on your coordination needs:

Pattern Best For When to Use
Supervisor Complex workflows, dynamic routing Agents need to collaborate, routing is context-dependent
Router Simple categorization, independent tasks One-time routing, deterministic decisions
Orchestrator-Worker Parallel execution, high throughput Independent subtasks, results need aggregation
Handoffs Sequential workflows, context preservation Clear sequence, each agent builds on previous

Quick Decision:

  • Dynamic routing needed? → Supervisor
  • Tasks can run in parallel? → Orchestrator-Worker
  • Simple categorization? → Router
  • Linear sequence? → Handoffs

For detailed comparison: See references/pattern-comparison.md

Pattern Implementation Guides

Supervisor-Subagent Pattern

Overview: Central coordinator delegates to specialized subagents based on context.

Quick Start:

# Generate supervisor graph boilerplate
uv run scripts/generate_supervisor_graph.py my-team \
  --subagents "researcher,writer,reviewer"

# TypeScript
uv run scripts/generate_supervisor_graph.py my-team \
  --subagents "researcher,writer,reviewer" \
  --typescript

Key Components:

  1. State with routing: next field for routing decisions
  2. Supervisor node: Makes routing decisions based on context
  3. Subagent nodes: Specialized agents with distinct capabilities
  4. Conditional edges: Route from supervisor to subagents

Example Flow:

User Request → Supervisor → Researcher → Supervisor → Writer → Supervisor → FINISH

For complete implementation: See references/supervisor-subagent.md

Router Pattern

Overview: One-time routing to specialized agents based on initial request.

Key Components:

  1. State with route: Single routing decision field
  2. Router node: Categorizes request (keyword, LLM, or semantic)
  3. Specialized agents: Independent agents for each category
  4. Conditional routing: Route to agent, then END

Read the full file on GitHub · 566 lines

Files

What ships with it

25 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 566 lines · 118 tokens per session scan A a25c90f818e5

Subscribe to this mod's changes

langgraph-agent-patterns is a skill published in the GitHub repository soba-labs/langchain-agent-skills (106 stars, last pushed 18d ago), licensed MIT. It adds 118 tokens to every session and 3,344 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

langgraph-agent-patterns compared with skills from other repositories

langgraph-agent-patterns next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
langgraph-agent-patternssoba-labs/langchain-agent-skillsSkill10618d agoMITA118Claude Code
imagegenopenai/codexSkill134ktodayApache-2.0A113Codex
local-ai-agentsmicrosoft/ai-agents-for-beginnersSkill79kyesterdayMITA200Claude Code, Codex
playwright-climicrosoft/playwrightSkill100kyesterdayApache-2.0A19Claude Code
browser-automationopenclaw/openclawSkill394ktodayMITA36Claude Code
systematic-debuggingobra/superpowersSkill314k4d agoMITA21Claude Code
next-cache-components-adoptionvercel/next.jsSkill143ktodayMITA95Claude Code