# Langgraph

> Langgraph is an Agent Skill for agent building published in the Dokhacgiakhoa/Agent-skills-setup-for-AntiGravity repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

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. Use when: langgraph, langchain agent, stateful agent, agent graph, react agent.

- Skill name: `langgraph`
- Category: [Agent Building](https://www.openparable.com/skill/agent-building/1)
- Source: https://github.com/Dokhacgiakhoa/Agent-skills-setup-for-AntiGravity/blob/HEAD/.agent/skills/langgraph/SKILL.md
- Repository: Dokhacgiakhoa/Agent-skills-setup-for-AntiGravity (503 GitHub stars when collected)

## SKILL.md

# LangGraph

**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.

## Capabilities

- Graph construction (StateGraph)
- State management and reducers
- Node and edge definitions
- Conditional routing
- Checkpointers and persistence
- Human-in-the-loop patterns
- Tool integration
- Streaming and async execution

## Requirements

- Python 3.9+
- langgraph package
- LLM API access (OpenAI, Anthropic, etc.)
- Understanding of graph concepts

## Patterns

## 🧠 Knowledge Modules (Fractal Skills)

### 1. [Basic Agent Graph](./sub-skills/basic-agent-graph.md)
### 2. [State with Reducers](./sub-skills/state-with-reducers.md)
### 3. [Conditional Branching](./sub-skills/conditional-branching.md)
### 4. [❌ Infinite Loop Without Exit](./sub-skills/infinite-loop-without-exit.md)
### 5. [❌ Stateless Nodes](./sub-skills/stateless-nodes.md)
### 6. [❌ Giant Monolithic State](./sub-skills/giant-monolithic-state.md)

---

Source: https://www.openparable.com/skill/agent-building/langgraph (OpenParable). Cite the canonical URL above.
