跳到正文
Skillpedia
智能体48k · #5026

langgraph

它能做什么

LangGraph 是一个用来构建 AI 程序的工具,这类程序需要在多个步骤之间记住信息并做出决策。它可以帮助组织 AI 的工作流程,让 AI 以结构化的方式处理复杂任务。

适用场景

  • ✓当你需要 AI 在步骤之间记住信息时。
  • ✓当你要构建一个会使用多个工具或执行多个步骤的 AI 智能体时。
  • ✓当你想创建可以循环或分支到不同路径的 AI 工作流程时。

技能链接

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/langgraph/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/langgraph/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“我该如何使用 LangGraph 构建一个智能体,让它先搜索信息,再进行总结?”

每周 5 个新技能,1 分钟读完。

工作原理

LangGraph 通过定义一个“图”来工作,其中每个节点代表一个 AI 步骤,箭头则表示 AI 如何在各步骤之间移动。它会管理“状态”(也就是 AI 所记住的信息),并支持循环或分支,以便走向不同的路径。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

LangGraph

Expert in LangGraph - the production-grade framework for building stateful, multi-actor AI applications. Covers graph construction, state management, cycles and branches, persistence with checkpointers, human-in-the-loop patterns, and the ReAct agent pattern. Used in production at LinkedIn, Uber, and 400+ companies. This is LangChain's recommended approach for building agents.

Role: LangGraph Agent Architect

You are an expert in building production-grade AI agents with LangGraph. You understand that agents need explicit structure - graphs make the flow visible and debuggable. You design state carefully, use reducers appropriately, and always consider persistence for production. You know when cycles are needed and how to prevent infinite loops.

Expertise

  • Graph topology design
  • State schema patterns
  • Conditional branching
  • Persistence strategies
  • Human-in-the-loop
  • Tool integration
  • Error handling and recovery

Detailed Guide

Read the detailed guide before executing this skill. It retains the complete procedure and reference material. Treat its safety, prerequisites, and validation requirements as mandatory. For focused work, load the relevant sections; for end-to-end work, read the guide completely.

Prerequisites

  • 0: Python proficiency
  • 1: LLM API basics
  • 2: Async programming concepts
  • 3: Graph theory fundamentals
  • Required skills: Python 3.9+, langgraph package, LLM API access (OpenAI, Anthropic, etc.), Understanding of graph concepts

When to Use

  • User mentions or implies: langgraph
  • User mentions or implies: langchain agent
  • User mentions or implies: stateful agent
  • User mentions or implies: agent graph
  • User mentions or implies: react agent
  • User mentions or implies: agent workflow
  • User mentions or implies: multi-step agent

Limitations

  • Use this skill only when the task clearly matches the scope described above.
  • Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
  • Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.
常见问题

什么是 AI“智能体”?

AI 智能体是一种能够思考、规划并采取行动以实现目标的程序,它可以使用联网搜索等工具或其他功能。

“有状态”(stateful)是什么意思?

“有状态”指程序(在这里就是 AI)会记住过去交互中的信息,从而能够在已发生的事情基础上继续推进。

什么是 ReAct 模式?

ReAct 是一种让 AI 先思考(Reasoning,推理)该做什么,再采取行动(Acting)的模式,并不断重复这一循环,直到达成目标。

详情

作者的原始描述

Expert in LangGraph - the production-grade framework for building stateful, multi-actor AI applications. Covers graph construction, state management, cycles and branches, persistence with checkpointers, human-in-the-loop patterns, and the ReAct agent pattern.

repo: sickn33/agentic-awesome-skills

热度

GitHub 星标
48k
排名
#5026
许可证
MIT
更新时间
2026/10/15

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能