langgraph
БесплатноБез исполняемых скриптовНе проверенLangGraph 1.x Python workflow patterns: state, routing, parallel, supervisor-worker, tool calling, checkpointing, human-in-loop, streaming, subgraphs…
от yonatangross★ 312 звёзд на GitHubОб этом скилле
LangGraph Workflow Patterns
Comprehensive patterns for building production LangGraph workflows. LangGraph 1.x is LTS (Long Term Support) — the first stable major release, powering agents at Uber, LinkedIn, and Klarna. Each category has individual rule files in rules/ loaded on-demand.
LangGraph 1.2 (shipped 2026-05-12) — the fault-tolerance release. Everything below is on
StateGraph.add_node(...)unless noted:
- Per-node timeouts —
timeout=acceptsfloat | timedelta | TimeoutPolicy.TimeoutPolicy(run_timeout=, idle_timeout=, refresh_on="auto"|"heartbeat")separates a hard wall-clock cap from an idle cap that progress refreshes. On expiry LangGraph raisesNodeTimeoutError(carryingkind="idle"|"run"andelapsed), drops that attempt's writes, and defers to the retry policy. Cooperative: it rides asyncio cancellation, so a node blocking the GIL is not interrupted. Seerules/resilience-node-timeouts.md.- Node error handlers —
error_handler=registers a recovery node that runs once the retry budget is exhausted. It receives failure context by declaring a parameter typedNodeError(fieldsnode,error) and returns aCommandto update state and reroute. Seerules/resilience-error-handlers.md.RunControl(langgraph.runtime) — cooperative graceful shutdown.request_drain(reason)from any thread; nodes pollruntime.drain_requestedand stop at a checkpoint boundary, leaving a resumable thread instead of a half-applied superstep. Seerules/resilience-graceful-drain.md.DeltaChannel(langgraph.channels.delta, beta) — checkpoints store only incremental writes and replay them through a batch reducer, with a snapshot everysnapshot_frequencyupdates. Fixes checkpoint cost growing with thread length. Its reducer takes a batch and must be batching-invariant. Seerules/state-delta-channel.md.runtime.heartbeat()— explicit progress signal, the only one that refreshes an idle timeout underrefresh_on="heartbeat".Landed earlier, in 1.1 — not 1.2 (they are current and supported; only their release attribution was wrong in prior versions of this skill): deferred nodes (
defer=True), node-level caching (CachePolicy+graph.compile(cache=...)), and model middleware (before_model/after_model) oncreate_agent.
Quick Reference
| Category | Rules | Impact | When to Use |
|---|---|---|---|
| State Management | 5 | CRITICAL | Designing workflow state schemas, accumulators, reducers, delta channels |
| Resilience | 3 | CRITICAL | Node timeouts, error handlers, graceful drain (1.2+) |
| Routing & Branching | 4 | HIGH | Dynamic routing, retry loops, semantic routing, cross-graph |
| Parallel Execution | 3 | HIGH | Fan-out/fan-in, map-reduce, concurrent agents |
| Supervisor Patterns | 3 | HIGH | Central coordinators, round-robin, priority dispatch |
| Tool Calling | 4 | CRITICAL | Binding tools, ToolNode, dynamic selection, approvals |
| Checkpointing | 3 | HIGH | Persistence, recovery, cross-thread Store memory |
| Human-in-Loop | 3 | MEDIUM | Approval gates, feedback loops, interrupt/resume |
| Streaming | 3 | MEDIUM | Real-time updates, token streaming, custom events |
| Subgraphs | 3 | MEDIUM | Modular composition, nested graphs, state mapping |
| Functional API | 3 | MEDIUM | @entrypoint/@task decorators, migration from StateGraph |
| Platform | 3 | HIGH | Deployment, RemoteGraph, double-texting strategies |
Total: 41 rules across 12 categories
State Management
State schemas determine how data flows between nodes. Wrong schemas cause silent data loss.
| Rule | File | Key Pattern |
|---|---|---|
| TypedDict State | rules/state-typeddict.md |
TypedDict + Annotated[list, add] for accumulators |
| Pydantic Validation | rules/state-pydantic.md |
BaseModel at boundaries, TypedDict internally |
| MessagesState | rules/state-messages.md |
MessagesState or add_messages reducer |
| Custom Reducers | rules/state-reducers.md |
Annotated[T, reducer_fn] for merge/overwrite |
| Delta Channels (1.2, beta) | rules/state-delta-channel.md |
DeltaChannel(reducer, snapshot_frequency=) for large accumulators |
Resilience
Fault tolerance for nodes that talk to the outside world. New in 1.2 — before it, the only lever was
retry_policy, which cannot help a node that never fails because it never returns.
| Rule | File | Key Pattern |
|---|---|---|
| Node Timeouts | rules/resilience-node-timeouts.md |
add_node(..., timeout=TimeoutPolicy(run_timeout=, idle_timeout=)) |
| Error Handlers | rules/resilience-error-handlers.md |
`add_node(..., error |
Установить langgraph в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
ReadGlobGrepWebFetchWebSearchВложенные файлы
FAQ
Что делает скилл langgraph?
LangGraph 1.x Python workflow patterns: state, routing, parallel, supervisor-worker, tool calling, checkpointing, human-in-loop, streaming, subgraphs, functional API. Use when building LangGraph pipelines, multi-agent systems, or AI workflows.
Как установить скилл langgraph?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл langgraph запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic