debug-langgraph-agent

debug-langgraph-agent is a skill for Claude Code from kirill-sviridov/agent-dev-skills. It costs 61 tokens per session (2,322 once invoked), scanned A, original, MIT.

A checklist for finding problems in LangGraph agents. LangGraph is a framework for connecting AI-agent steps, tools, decisions, and saved state into a graph.

In plain words
What is it for?
Use it to debug hand-written or generated LangGraph agents, especially when the failure's cause is unclear.
Why use it?
It replaces guesswork with an ordered way to inspect state, transitions, tools, saved checkpoints, and prompts when an agent crashes, loops, loses context, or gives wrong results.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the agent-dev-skills plugin — 4 skills shipped together

Good fit Use it to debug hand-written or generated LangGraph agents, especially when the failure's cause is unclear.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/kirill-sviridov/agent-dev-skills/debug-langgraph-agent
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add kirill-sviridov/agent-dev-skills --skill debug-langgraph-agent
Clone the repo
git clone --depth 1 https://github.com/kirill-sviridov/agent-dev-skills

Made for: Claude Code.

Or install agent-dev-skills, the plugin that ships this one along with the rest of its 4 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for debug-langgraph-agent

README.md
[![agentmods](https://agentmods.dev/badge/skills/kirill-sviridov/agent-dev-skills/debug-langgraph-agent/github.svg)](https://agentmods.dev/skills/kirill-sviridov/agent-dev-skills/debug-langgraph-agent)
Your own site
<a href="https://agentmods.dev/skills/kirill-sviridov/agent-dev-skills/debug-langgraph-agent"><img src="https://agentmods.dev/badge/skills/kirill-sviridov/agent-dev-skills/debug-langgraph-agent/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for debug-langgraph-agent

Your own site · 80×15
<a href="https://agentmods.dev/skills/kirill-sviridov/agent-dev-skills/debug-langgraph-agent"><img src="https://agentmods.dev/badge/skills/kirill-sviridov/agent-dev-skills/debug-langgraph-agent.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 61 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,322 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00061 $0.02322
Opus 5 $0.00030 $0.01161
Sonnet 5 $0.00012 $0.00464
Haiku 4.5 $0.00006 $0.00232

Measured 9d ago against content hash 61cd22ab0812, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

debug-langgraph-agent scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

3. **DNS / firewall** — the LLM provider or proxy is unreachable from the container. `curl <base_url>` from inside the container → the check.
plugins/agent-dev-skills/skills/debug-langgraph-agent/SKILL.md · 123 lines

How it starts

The opening of the file, as written. The whole thing — 123 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Debug LangGraph Agent

The LangGraph-specific counterpart to superpowers:systematic-debugging, tuned to LangGraph symptoms. The goal is not to guess but to walk a checklist in the right order and localize the cause.

When to use

  • Generated LangGraph code crashes with an error.
  • The agent "works" but returns the wrong thing (loses context, loops, branches incorrectly).
  • The symptom is unclear ("it just doesn't work").
  • Before calling an external code-debugging MCP tool — first narrow the symptom down to one of the categories below.

When NOT to use

  • It's not LangGraph code (a flat LLM call / create_agent without a graph — those have different ailments).
  • The error is clearly in the code around the agent (FastAPI handler, DB query) — that's ordinary debugging, not a LangGraph specific.

§0. Look at the trace first

Before guessing from the code or classifying the symptom, look at what actually happened:

  1. LangSmith: LANGSMITH_TRACING=true (+ LANGSMITH_API_KEY) — every run is visible end to end: which nodes executed, with what state on input/output, which tool calls the model made, the full prompts. Half the sections below are resolved by a single glance at the trace.
  2. langgraph dev → Studio: a visual run of the graph + time-travel — rewind to the checkpoint before the failing node, edit state by hand, fork the execution, and see whether the bug disappears.
  3. Without a UI: graph.get_state_history(config) — programmatic access to the same checkpoints: where it stopped, what was in state at each step.

If the trace is unavailable (no key, prod without LangSmith) — walk the checklist below.

Algorithm: classify the symptom → section

Symptom Where to look
Messages "get lost" between nodes §1 State reducer
The graph doesn't take the expected branch §2 Routing
A tool "isn't called" / the wrong one is §3 Tool wiring
Hangs on one node / infinite loop §4 Recursion limit + edges
KeyError / TypeError in state §5 State schema
HITL doesn't return control after resume §6 interrupt/checkpointer
The LLM returns "garbage" (not JSON, extra text) §7 Prompt + structured output
A strange error about async / connection closed §8 Async + checkpointer plumbing
Broken after deploy, fine locally §9 Environment

Read the full file on GitHub · 123 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 123 lines · 61 tokens per session scan A 61cd22ab0812

Subscribe to this mod's changes

debug-langgraph-agent is a skill published in the GitHub repository kirill-sviridov/agent-dev-skills (2 stars, last pushed 2mo ago), licensed MIT. It adds 61 tokens to every session and 2,322 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

debug-optimize-lcp

Guides debugging and optimizing Largest Contentful Paint (LCP) using Chrome DevTools MCP tools. Use this skill whenever the user asks about LCP performance, slow page loads, Core Web Vitals optimization, or wants to understand why their page's main content takes too long to appear. Also use when the user mentions…

ChromeDevTools/chrome-devtools-mcp · 99 tokens

systematic-debugging

Use when debugging a failing test, build error, or runtime issue that isn't immediately obvious. Guides a 4-phase root cause analysis instead of random fix attempts.

open-metadata/OpenMetadata · 37 tokens

diagnose

Trace from a reproduced symptom to the source code that causes it. Pin the specific file and approximate line, rate confidence in the cause and clarity of the fix independently, and always propose a concrete fix.

emdash-cms/emdash · 43 tokens

repro-admin

Reproduce an EmDash admin UI bug. Attach a container, start the demo dev server, drive the admin with agent-browser using the dev-bypass session, and capture the reproduction as screenshots plus a replayable transcript.

emdash-cms/emdash · 48 tokens

log-error-digest

Analyze log files to troubleshoot errors, identify peak error periods, and produce error clustering, frequency statistics, and time distribution reports. Supports JSON, syslog, and Nginx formats with automatic detection. Use when a user uploads a .log file and asks to analyze errors, find patterns, debug issues, or…

zebbern/claude-code-guide · 71 tokens

byted-util-volcengine-detect-retry

An orchestration workflow for Volcengine Cloud Detect, a service that checks websites or network endpoints from test locations.

bytedance/agentkit-samples · 101 tokens