Data & Databaselow risk
langgraph
LangGraph expertise for building stateful, multi-step agent workflows. Use when the user asks about LangGraph, StateGraph, nodes, edges, conditional routing, checkpointers, persistence, memory, human-in-the-loop, subgraphs, streaming, or building agents with langgraph / langchain. Provides architecture patterns, API workflows, and runnable examples.
264Gaurav/DeepAgents·deepagents/skills/langgraph/SKILL.md
32/ 100推荐值
导入这个 Skill
选择你的 coding agent,复制项目级或个人级安装命令。
导入当前项目.agents/skills/langgraph
npx skills add https://github.com/264Gaurav/DeepAgents/tree/9a69ad9fb8eb2760e2a7886a51d7dc1e08d4a2ac/deepagents/skills/langgraph -a codex -y导入个人环境~/.agents/skills/langgraph
npx skills add https://github.com/264Gaurav/DeepAgents/tree/9a69ad9fb8eb2760e2a7886a51d7dc1e08d4a2ac/deepagents/skills/langgraph -a codex -g -y导入当前项目.claude/skills/langgraph
npx skills add https://github.com/264Gaurav/DeepAgents/tree/9a69ad9fb8eb2760e2a7886a51d7dc1e08d4a2ac/deepagents/skills/langgraph -a claude-code -y导入个人环境~/.claude/skills/langgraph
npx skills add https://github.com/264Gaurav/DeepAgents/tree/9a69ad9fb8eb2760e2a7886a51d7dc1e08d4a2ac/deepagents/skills/langgraph -a claude-code -g -y导入当前项目.agents/skills/langgraph
npx skills add https://github.com/264Gaurav/DeepAgents/tree/9a69ad9fb8eb2760e2a7886a51d7dc1e08d4a2ac/deepagents/skills/langgraph -a github-copilot -y导入个人环境~/.copilot/skills/langgraph
npx skills add https://github.com/264Gaurav/DeepAgents/tree/9a69ad9fb8eb2760e2a7886a51d7dc1e08d4a2ac/deepagents/skills/langgraph -a github-copilot -g -y导入当前项目.agents/skills/langgraph
npx skills add https://github.com/264Gaurav/DeepAgents/tree/9a69ad9fb8eb2760e2a7886a51d7dc1e08d4a2ac/deepagents/skills/langgraph -a cursor -y导入个人环境~/.cursor/skills/langgraph
npx skills add https://github.com/264Gaurav/DeepAgents/tree/9a69ad9fb8eb2760e2a7886a51d7dc1e08d4a2ac/deepagents/skills/langgraph -a cursor -g -y导入当前项目.agents/skills/langgraph
npx skills add https://github.com/264Gaurav/DeepAgents/tree/9a69ad9fb8eb2760e2a7886a51d7dc1e08d4a2ac/deepagents/skills/langgraph -a gemini-cli -y导入个人环境~/.gemini/skills/langgraph
npx skills add https://github.com/264Gaurav/DeepAgents/tree/9a69ad9fb8eb2760e2a7886a51d7dc1e08d4a2ac/deepagents/skills/langgraph -a gemini-cli -g -yNative Gemini CLI
gemini skills install https://github.com/264Gaurav/DeepAgents.git --scope workspace --path deepagents/skills/langgraph⚠ 安装命令使用开源 skills CLI。执行前请检查来源、脚本和权限。
Skill 指令
在 GitHub 查看原始文件 ↗# LangGraph Skill You are acting as a LangGraph specialist. Use this skill whenever the user's query involves building, debugging, or understanding LangGraph applications — graphs, agents, state management, persistence, or streaming. ## When to Use - User asks to build an agent or workflow with LangGraph - User mentions: `StateGraph`, nodes, edges, `add_conditional_edges`, `MessagesState`, checkpointer, `MemorySaver`, thread_id, interrupt, `Command`, subgraphs - User asks how to add memory / persistence / human-in-the-loop to an agent - User is debugging LangGraph state, routing, or streaming behavior ## Supporting Files (read these for deeper context) - `instructions.md` — detailed build workflow, state design rules, and common pitfalls - `examples.md` — runnable graph examples (basic graph, conditional routing, memory, tools) ## Core Workflow 1. Read `instructions.md` in this skill folder for the full build methodology. 2. Identify the graph shape: linear pipeline, router, agent loop, or multi-agent. 3. Design the state schema FIRST (TypedDict / Pydantic with reducers). 4. Define nodes as pure functions: `state -> partial state update`. 5. Wire edges (static, then conditional), compile with a checkpointer if memory is needed. 6. Show how to invoke with `thread_id` config and how to stream. 7. Match the patterns in `examples.md` when one applies. ## Quick Standards - Always show the state schema before the graph wiring - Nodes return partial updates, never mutate state in place - Use `MessagesState` / `add_messages` reducer for chat history - Checkpointer (`MemorySaver` for demos, SQLite/Postgres for prod) + `thread_id` = memory - Prefer `create_react_agent` / `create_deep_agent` prebuilts before hand-rolling loops