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/ 100Recommendation

Install this skill

Choose your coding agent and copy a project or personal installation command.

Pinned to the indexed commit
Project installation.agents/skills/langgraph
npx skills add https://github.com/264Gaurav/DeepAgents/tree/9a69ad9fb8eb2760e2a7886a51d7dc1e08d4a2ac/deepagents/skills/langgraph -a codex -y
Personal installation~/.agents/skills/langgraph
npx skills add https://github.com/264Gaurav/DeepAgents/tree/9a69ad9fb8eb2760e2a7886a51d7dc1e08d4a2ac/deepagents/skills/langgraph -a codex -g -y
Manual folder.agents/skills/langgraphOfficial docs ↗
Project installation.claude/skills/langgraph
npx skills add https://github.com/264Gaurav/DeepAgents/tree/9a69ad9fb8eb2760e2a7886a51d7dc1e08d4a2ac/deepagents/skills/langgraph -a claude-code -y
Personal installation~/.claude/skills/langgraph
npx skills add https://github.com/264Gaurav/DeepAgents/tree/9a69ad9fb8eb2760e2a7886a51d7dc1e08d4a2ac/deepagents/skills/langgraph -a claude-code -g -y
Manual folder.claude/skills/langgraphOfficial docs ↗
Project installation.agents/skills/langgraph
npx skills add https://github.com/264Gaurav/DeepAgents/tree/9a69ad9fb8eb2760e2a7886a51d7dc1e08d4a2ac/deepagents/skills/langgraph -a github-copilot -y
Personal installation~/.copilot/skills/langgraph
npx skills add https://github.com/264Gaurav/DeepAgents/tree/9a69ad9fb8eb2760e2a7886a51d7dc1e08d4a2ac/deepagents/skills/langgraph -a github-copilot -g -y
Manual folder.agents/skills/langgraphOfficial docs ↗
Project installation.agents/skills/langgraph
npx skills add https://github.com/264Gaurav/DeepAgents/tree/9a69ad9fb8eb2760e2a7886a51d7dc1e08d4a2ac/deepagents/skills/langgraph -a cursor -y
Personal installation~/.cursor/skills/langgraph
npx skills add https://github.com/264Gaurav/DeepAgents/tree/9a69ad9fb8eb2760e2a7886a51d7dc1e08d4a2ac/deepagents/skills/langgraph -a cursor -g -y
Manual folder.agents/skills/langgraphOfficial docs ↗
Project installation.agents/skills/langgraph
npx skills add https://github.com/264Gaurav/DeepAgents/tree/9a69ad9fb8eb2760e2a7886a51d7dc1e08d4a2ac/deepagents/skills/langgraph -a gemini-cli -y
Personal installation~/.gemini/skills/langgraph
npx skills add https://github.com/264Gaurav/DeepAgents/tree/9a69ad9fb8eb2760e2a7886a51d7dc1e08d4a2ac/deepagents/skills/langgraph -a gemini-cli -g -y
Native Gemini CLIgemini skills install https://github.com/264Gaurav/DeepAgents.git --scope workspace --path deepagents/skills/langgraph
Manual folder.agents/skills/langgraphOfficial docs ↗
⚠ Installation uses the open-source skills CLI. Inspect the source and permissions before running the command.

Skill instructions

View source on 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