Skip to content

Stateful multi-actor agent framework that builds graph-based flows with cycles, branches, and persistence.

CCM score
61 of 100
skills.sh installs
447
GitHub stars
34.3K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers StateGraph construction, state reducers, conditional routing, checkpointers, human-in-the-loop, and the ReAct tool-calling loop
  • Includes three worked patterns: a basic tool-calling agent, multi-agent state with custom reducers, and query classification with conditional branching
  • Warns against infinite loops by requiring explicit exit conditions such as iteration caps, END routing, or application-level timeouts
  • Designed for Python developers building production agents who need visible, debuggable control flow and resumable conversations

Install

$ npx -y skills add davila7/claude-code-templates --skill langgraph -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

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

Basic Agent Graph

Simple ReAct-style agent with tools

When to use: Single agent with tool calling

from typing import Annotated, TypedDict
from langgraph.graph import StateGraph, START, END
from langgraph.graph.message import add_messages
from langgraph.prebuilt import ToolNode
from langchain_openai import ChatOpenAI
from langchain_core.tools import tool

Details

Repository
github.com/davila7/claude-code-templates
Categories
AI Agents & LLM Apps, Python
First seen
Jun 3, 2026

More from davila7/claude-code-templates

All 398

Similar to Langgraph

More AI Agents & LLM Apps