Agent skill · AI & Agents

langgraph-overview

理解 LangGraph:用于构建有状态、长期运行 Agent 的低级编排框架,具有持久执行、流式传输和人机交互能力

majiayu000github.com/majiayu000GitHub ↗
claude-codeMIT
Install
npx skills add majiayu000/claude-skill-registry --skill langgraph-overview --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 2
SKILL.md size: 8 KB
Bundled scripts: none
Path: skills/agent/langgraph-overview/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 534
Language: HTML

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# langgraph-overview (JavaScript/TypeScript) --- name: langgraph-overview description: 理解 LangGraph - 用于构建有状态、长期运行 Agent 的低级编排框架,具有持久执行、流式传输和人机交互能力 --- ## 概述 LangGraph 是一个低级编排框架和运行时,用于构建、管理和部署长期运行的、有状态的 Agent。它受到 Klarna、Replit 和 Elastic 等公司的信任,用于生产 Agent 工作负载。 **关键特性:** - **低级控制**:直接控制 Agent 编排,无需高级抽象 - **有状态执行**:内置状态管理和持久化 - **生产就绪**:持久执行、流式传输、人机交互和容错能力 - **框架无关**:可独立使用或与 LangChain 组件配合使用 ### 何时使用 LangGraph LangGraph 非常适合当您需要: - 对 Agent 编排的细粒度控制 - 长期、有状态 Agent 的持久执行 - 结合确定性和 Agent 步骤的复杂工作流 - Agent 部署的生产基础设施 - 人机交互工作流 - 多次交互间的持久状态 ### 何时不使用 LangGraph 当您满足以下条件时考虑替代方案: - 需要使用预构建架构快速开始 → 使用 **LangChain agents** - 希望使用包含完整功能(自动压缩、虚拟文件系统)→ 使用 **Deep Agents** - 有简单的、无状态的 LLM 工作流 → 使用 **LangChain LCEL** - 不需要状态持久化或复杂编排 ## 决策表:选择正确的工具 | 需求 | 使用 LangGraph | 使用 LangChain | 使用 Deep Agents | |------------|---------------|---------------|-----------------| | 快速原型开发 | ❌ | ✅ | ✅ | | 自定义编排逻辑 | ✅ | ❌ | ⚠️ (有限) | | 持久执行 | ✅ | ⚠️ (通过 LangGraph) | ✅ | | 人机交互 | ✅ | ⚠️ (通过 LangGraph) | ✅ | | 状态持久化 | ✅ | ❌ | ✅ | | 生产部署 | ✅ | ⚠️ (与 LangGraph 一起使用) | ✅ | | 学习曲线 | 高 | 低 | 中 | ## 核心概念 ### 1. 基于图的执行模型 LangGraph 将 Agent 工作流建模为**图**,具有三个核心组件: - **状态(State)**:表示应用程序当前快照的共享数据结构 - **节点(Nodes)**:编码 Agent 逻辑并更新状态的函数

What's inside
Steps it walks through
  1. 概述
  2. 何时使用 LangGraph
  3. 何时不使用 LangGraph
  4. 决策表:选择正确的工具
  5. 核心概念
  6. 1. 基于图的执行模型
  7. 2. 核心能力
  8. 3. 消息传递模型
  9. 代码示例
  10. 基本 LangGraph Agent
  11. 带持久化的 Agent
  12. 流式传输 Agent 响应
  13. 边界
  14. Agent 能够配置/控制的
Ships with 1 file
  • metadata.json
Commands it runs
npm
npm install @langchain/langgraph
yarn
yarn add @langchain/langgraph
pnpm
pnpm add @langchain/langgraph
npm install @langchain/core
npm install @langchain/langgraph-checkpoint-postgres
More from claude-skill-registry
All skills →
About this skill
What does the langgraph-overview skill do?

理解 LangGraph:用于构建有状态、长期运行 Agent 的低级编排框架,具有持久执行、流式传输和人机交互能力

How do I install it?

Run `npx skills add majiayu000/claude-skill-registry --skill langgraph-overview --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going