ultroncore/claude-skill-vault/langgraph

Claude Code and agent skill by ultroncore/claude-skill-vault

Trust tier 2
  • community
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

Build stateful multi-actor AI applications with LangGraph: cyclic graphs, agent workflows, fine-grained state/flow/memory control.

Install

npx vskill@latest install ultroncore/claude-skill-vault/langgraph

SKILL.md

The same SKILL.md was published earlier as ultroncore/claude-skill-vault/langgraph.

LangGraph Skill

Overview

LangGraph is a library for building stateful, multi-actor AI applications with LLMs. It extends LangChain to support cyclic graphs, enabling sophisticated agent workflows with fine-grained control over state, flow, and memory.

Key Concepts

Graph Types
  • StateGraph: Primary graph type with shared state schema across nodes
  • MessageGraph: Simplified graph where state is a list of messages
Core Components
  • Nodes: Python functions or runnables that read/write state
  • Edges: Connections between nodes (conditional or fixed)
  • State: Typed dict schema shared across all nodes
  • Checkpointers: Persist state between runs (memory, SQLite, Postgres)

Basic Usage

python
from langgraph.graph import StateGraph, END
from typing import TypedDict, Annotated
import operator
class AgentState(TypedDict):
messages: Annotated[list, operator.add]
next: str
def agent_node(state: AgentState):
return {"messages": [response], "next": "tool" if needs_tool else END}
def tool_node(state: AgentState):
return {"messages": [tool_result]}
graph = StateGraph(AgentState)
graph.add_node("agent", agent_node)
graph.add_node("tools", tool_node)
graph.set_entry_point("agent")
graph.add_conditional_edges("agent", lambda s: s["next"], {"tool": "tools", END: END})
graph.add_edge("tools", "agent")
app = graph.compile()
result = app.invoke({"messages": [HumanMessage(content="Hello")], "next": ""})

ReAct Agent (Prebuilt)

python
from langgraph.prebuilt import create_react_agent
from langchain_openai import ChatOpenAI
llm = ChatOpenAI(model="gpt-4o")
agent = create_react_agent(llm, tools=[search_tool, calculator_tool])
result = agent.invoke({"messages": [("user", "What is 2+2?")]})

Persistence / Memory

python
from langgraph.checkpoint.memory import MemorySaver
from langgraph.checkpoint.sqlite import SqliteSaver
checkpointer = SqliteSaver.from_conn_string("checkpoints.db")
app = graph.compile(checkpointer=checkpointer)
config = {"configurable": {"thread_id": "user-123"}}
result = app.invoke(input, config=config)

Human-in-the-Loop

python
from langgraph.graph import interrupt
def approval_node(state):
decision = interrupt("Approve this action? (yes/no)")
return {"approved": decision == "yes"}
app = graph.compile(checkpointer=checkpointer, interrupt_before=["approval"])
app.invoke(Command(resume="yes"), config=config)

Streaming

python
for chunk in app.stream(input, stream_mode="values"):
print(chunk)
async for chunk in app.astream(input):
print(chunk)

Installation

bash
pip install langgraph
pip install langgraph-checkpoint-sqlite
pip install langgraph-checkpoint-postgres

Key Tips

  • Use Annotated[list, operator.add] for accumulating state fields
  • Always compile with checkpointer for stateful/conversational apps
  • Use interrupt_before/interrupt_after for human-in-the-loop workflows
  • Sub-graphs can be compiled and used as nodes in parent graphs
  • Fan-out to parallel nodes: graph.add_edge("start", ["node_a", "node_b"])

Related Skills

  • langchain — LangChain foundation
  • multi-agent-orchestration — multi-agent patterns
  • crewai — alternative agent framework

GitNexus Index

This skill is indexed by GitNexus for knowledge graph traversal. Index path: /Users/localuser/.claude/skills/langgraph/.gitnexus Last indexed: 2026-05-23

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
1
7-day trend score
0

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/ultroncore/claude-skill-vault/langgraph/badge)](https://verified-skill.com/skills/ultroncore/claude-skill-vault/langgraph)

Something wrong with this skill or its page? Tell us.