quick-debug

A command that examines an error message, stack trace, test failure, or application log to help investigate a bug.

In plain words
What is it for?
Use it to identify likely causes, suggest debugging steps, point to related code, and recommend fixes for common errors.
Why use it?
It gives a structured starting point when the cause of a problem is unclear or time is limited.

Command for Claude Code

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.

agentmods
npx agentmods add commands/vishnu2kmohan/mcp-server-langgraph/quick-debug
Clone the repo
git clone --depth 1 https://github.com/vishnu2kmohan/mcp-server-langgraph

Made for: Claude Code.

Per session 6 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,044 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. Scan, not verified.
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 $0.00006 $0.03044
Opus 5 $0.00003 $0.01522
Sonnet 5 $0.00001 $0.00609
Haiku 4.5 $0.00001 $0.00304

Measured 2d ago against content hash 4417c47b9b7c, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

quick-debug 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 2d 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.

curl -s http://localhost:8080/healthz || echo "Service not responding"
.claude/commands/quick-debug.md · 598 lines

How it starts

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

Quick Debug

Usage: /quick-debug or /quick-debug <error-message>

Purpose: Fast debugging workflow for common issues


🐛 What This Command Does

Provides AI-assisted debugging workflow to quickly identify and fix common issues:

  1. Analyzes error messages and stack traces
  2. Suggests likely causes based on patterns
  3. Recommends debugging steps
  4. Provides quick fixes for common problems
  5. Links to relevant code locations

🔍 Debugging Workflow

Step 1: Capture Error Information

If error message provided as argument:

# Use provided error
ERROR_MSG="$ARGUMENTS"
```bash
If no argument, look for recent errors:
```bash
# Check recent test failures
uv run --frozen pytest --lf -v 2>&1 | tee /tmp/test_errors.txt

# Check recent git commits for fix mentions
git log -10 --oneline | grep -i "fix"

# Check application logs (if running)
tail -50 logs/app.log 2>/dev/null || echo "No app logs found"

Step 2: Categorize Error Type

Analyze error message to determine category:

Import Errors:

ImportError: cannot import name 'X'
ModuleNotFoundError: No module named 'X'

→ Missing dependency, uncommitted code, wrong Python env

Test Failures:

AssertionError: X != Y
AttributeError: 'NoneType' object has no attribute 'X'

→ Logic error, missing mock, incorrect test setup

Runtime Errors:

RuntimeError: Event loop is closed
asyncio.TimeoutError: timeout exceeded

→ Async issues, resource management, timeouts

Type Errors:

TypeError: X() takes 2 positional arguments but 3 were given
mypy error: Argument has incompatible type

→ Function signature mismatch, type annotation issues

Database/Connection Errors:

ConnectionError: Failed to connect to Redis
sqlalchemy.exc.OperationalError

→ Service not running, configuration issue, network problem

Step 3: AI-Assisted Analysis

Provide context to Claude for analysis:

Analyzing error: {error_message}

Error Category: {category}
Recent Changes: {git log -5}
Modified Files: {git diff --name-only}
Test Status: {pytest status}

Please analyze this error and suggest:
1. Most likely root cause
2. Quick diagnostic steps
3. Potential fixes
4. Similar issues in codebase

Read the full file on GitHub · 598 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. 2d ago First seen · 598 lines · 6 tokens per session scan A 4417c47b9b7c

Subscribe to this mod's changes

quick-debug is a command published in the GitHub repository vishnu2kmohan/mcp-server-langgraph (4 stars, last pushed 8d ago), licensed MIT. It adds 6 tokens to every session and 3,044 once invoked, about $0.0000 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.