Back to list
MattMagg

agent-debugging

by MattMagg

Claude Code plugins for building AI agents across frameworks (Google ADK, OpenAI, and more)

2🍴 0📅 Jan 18, 2026

SKILL.md


name: Agent Debugging description: Systematic debugging workflow for all agentic frameworks. Directs to RAG for solutions.

Agent Debugging Workflow

Diagnostic Categories

CategorySymptomsFirst Checks
IMPORTModuleNotFoundError, ImportErrorpip list, venv active, import paths
TOOL"tool not found", wrong argsdocstrings, decorators, registration
AUTH401, 403, "invalid key".env exists, env vars set, key format
CONFIG"missing config", wrong values.env format (no quotes!), required fields
RUNTIMEUnexpected behavior, crasheslogs, state inspection, callbacks
MULTI_AGENTWrong routing, delegation failsagent descriptions, routing logic
STREAMINGConnection issues, timeoutsSSE config, network, timeout settings

Systematic Debug Process

Step 1: Reproduce

Enable verbose/trace mode for the framework. RAG Query: mcp__agentic-rag__search("[framework] debugging tracing", mode="explain")

Step 2: Isolate

  • Comment out components one by one
  • Test tool functions in isolation
  • Check agent without tools first
  • Test with minimal prompt

Step 3: Categorize

Match symptoms to category above. This determines the fix strategy.

Step 4: Diagnose

RAG Query: mcp__agentic-rag__search("error: [error message]", mode="explain")

Check framework-specific gotchas in the relevant @framework skill.

Step 5: Fix & Verify

  • Make ONE minimal change
  • Run verification command
  • If fails, revert and try next hypothesis

Quick Diagnostics

Import Failures

  1. Is virtual environment active?
  2. Is package installed? (pip list | grep [package])
  3. Is import path correct for version?

RAG Query: mcp__agentic-rag__search("[framework] installation imports", mode="explain")

Tool Not Working

  1. Does tool have a docstring? (Most frameworks require it)
  2. Is decorator applied correctly?
  3. Is tool registered with agent?
  4. Do parameter types match docstring?

RAG Query: mcp__agentic-rag__search("tool definition", mode="build")

Auth Failures

  1. Does .env file exist and load?
  2. Is key format correct? (NO quotes in .env files)
  3. Is env var name correct for framework?
  4. Is key valid and not expired?

RAG Query: mcp__agentic-rag__search("[framework] authentication", mode="explain")

Wrong Routing (Multi-Agent)

  1. Are agent descriptions specific enough?
  2. Is routing logic correct?
  3. Are all agents registered?

RAG Query: mcp__agentic-rag__search("agent routing delegation", mode="build")

Framework Debug Commands

FrameworkHow to Enable TracingRAG Query
ADKTracing plugins"ADK tracing debugging"
OpenAIDebug env var"openai agents debug"
LangChainLangSmith / set_debug"langchain tracing langsmith"
LangGraphLangSmith"langgraph debugging"
CrewAIverbose=True"crewai verbose debugging"
AnthropicLogging"anthropic logging debug"

Common Fix Patterns

ProblemTypical Fix
Missing modulepip install [package] + check venv
Tool ignoredAdd/fix docstring with Args/Returns
Auth failureCheck .env format, no quotes
Wrong agent calledMake descriptions more specific
State lostCheck state passing between nodes/agents
Infinite loopAdd termination condition, max iterations

When Nothing Works

  1. Strip to minimal reproducer
  2. Query RAG with exact error: mcp__agentic-rag__query_docs("exact error message")
  3. Check framework's GitHub issues
  4. Verify you're on supported version

Score

Total Score

50/100

Based on repository quality metrics

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

Reviews

💬

Reviews coming soon