Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

langgraph

БесплатноБез исполняемых скриптовНе проверен

LangGraph 1.x Python workflow patterns: state, routing, parallel, supervisor-worker, tool calling, checkpointing, human-in-loop, streaming, subgraphs…

yonatangrossот 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= accepts float | 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 raises NodeTimeoutError (carrying kind="idle"|"run" and elapsed), 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. See rules/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 typed NodeError (fields node, error) and returns a Command to update state and reroute. See rules/resilience-error-handlers.md.
  • RunControl (langgraph.runtime) — cooperative graceful shutdown. request_drain(reason) from any thread; nodes poll runtime.drain_requested and stop at a checkpoint boundary, leaving a resumable thread instead of a half-applied superstep. See rules/resilience-graceful-drain.md.
  • DeltaChannel (langgraph.channels.delta, beta) — checkpoints store only incremental writes and replay them through a batch reducer, with a snapshot every snapshot_frequency updates. Fixes checkpoint cost growing with thread length. Its reducer takes a batch and must be batching-invariant. See rules/state-delta-channel.md.
  • runtime.heartbeat() — explicit progress signal, the only one that refreshes an idle timeout under refresh_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) on create_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
Полный SKILL.md на GitHub

Установить langgraph в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Read
Glob
Grep
WebFetch
WebSearch

Вложенные файлы

metadata.jsonrules/_sections.mdrules/_template.mdrules/checkpoints-recovery.mdrules/checkpoints-setup.mdrules/checkpoints-store.mdrules/functional-entrypoint.mdrules/functional-migration.mdrules/functional-task.mdrules/human-in-loop-approval.mdrules/human-in-loop-feedback.mdrules/human-in-loop-interrupt.mdrules/parallel-error-isolation.mdrules/parallel-fanout-fanin.mdrules/parallel-map-reduce.mdrules/platform-deployment.mdrules/platform-double-texting.mdrules/platform-remote-graph.mdrules/resilience-error-handlers.mdrules/resilience-graceful-drain.mdrules/resilience-node-timeouts.mdrules/routing-conditional.mdrules/routing-cross-graph.mdrules/routing-retry-loops.mdrules/routing-semantic.mdrules/state-delta-channel.mdrules/state-messages.mdrules/state-pydantic.mdrules/state-reducers.mdrules/state-typeddict.mdrules/streaming-custom-events.mdrules/streaming-modes.mdrules/streaming-tokens.mdrules/streaming-v2-format.mdrules/subgraphs-add-as-node.mdrules/subgraphs-invoke.mdrules/subgraphs-state-mapping.mdrules/supervisor-basic.mdrules/supervisor-priority.mdrules/supervisor-round-robin.md

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), без исполняемых скриптов.

Похожие скиллы

Сравнить langgraph с