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