
agent-communication-debugger
Diagnoses and debugs A2A agent communication issues including agent status, message routing, transpo
Agent Communication Debugger Skill
A comprehensive debugging skill for the A2A (Agent-to-Agent) communication system.
What This Skill Does
Provides systematic diagnosis and troubleshooting for:
- Agent status and health checks
- Message routing issues
- Transport layer connectivity
- Configuration validation
- Log analysis
- Common problem resolution
When Claude Uses This Skill
Claude will automatically load this skill when you ask about:
- "debug agent communication"
- "why isn't the coder agent responding"
- "check agent status"
- "orchestrator routing problems"
- "messages not being delivered"
- "agent health check"
Skill Structure
agent-debug/
├── SKILL.md # Main skill instructions
├── README.md # This file
├── common_issues.md # Detailed troubleshooting guide
└── scripts/
└── test_message.py # Message delivery test script
Quick Start
Using the Skill
Simply ask Claude questions like:
Can you debug why my agents aren't communicating?
Check the status of the orchestrator agent
The coder agent isn't responding to messages, help me diagnose
Claude will:
- Load the agent-debug skill automatically
- Follow the diagnostic workflow
- Run necessary checks
- Provide specific solutions
Running the Test Script Manually
You can also run the test script directly:
python .claude/skills/agent-debug/scripts/test_message.py
This will:
- Send a test message to the orchestrator
- Check for responses
- Verify agent processes are running
- Provide a diagnostic summary
Features
Systematic Diagnostics
The skill provides step-by-step diagnostics:
- Check agent status (running/stopped)
- Inspect configurations (agent.json files)
- Analyze logs for errors
- Verify message transport
- Test message delivery
- Diagnose routing issues
- Check environment variables
- Restart agents if needed
Common Issues Guide
The common_issues.md file covers:
- Messages not being delivered
- Routing to wrong agent
- Agent not generating responses
- Duplicate message processing
- Transport connectivity problems
- Orchestrator not starting
Quick Diagnostic Checklist
A handy checklist to run through:
- All required agents running
- WebSocket server active (if used)
- Agent configs valid
- Agents discovered by orchestrator
- API keys set
- Recent log activity
- No Python exceptions
- Test message succeeds
- Routing selects correct agent
Example Usage
Example 1: Quick Health Check
You: Check if all agents are running properly
Claude will:
- Run
ps auxto check processes - Verify orchestrator, coder, tester agents
- Check logs for recent activity
- Report status and any issues
Example 2: Routing Problem
You: Messages are going to dashboard-agent instead of coder-agent
Claude will:
- Check orchestrator's routing decisions in logs
- Verify coder-agent is discovered
- Check routing keywords and LLM prompts
- Suggest fixes (update keywords, restart with API key)
Example 3: No Response
You: Orchestrator receives my message but nothing happens
Claude will:
- Check orchestrator logs for processing
- Verify routing decision
- Check target agent is running
- Check target agent logs for errors
- Identify missing dependencies or API keys
Integration with Agent System
This skill is designed specifically for the agent system in:
a2a_communicating_agents/
├── orchestrator_agent/
├── coder_agent/
├── tester_agent/
├── agent_messaging/
└── storage/
It understands:
- Agent discovery via agent.json files
- Message routing through orchestrator
- Transport layers (WebSocket, RAG board)
- Log locations and formats
- Common configuration patterns
Requirements
- Python 3.10+
- Rich library (for test script)
- Agent messaging system installed
- Access to agent processes and logs
Maintenance
Updating the Skill
To add new diagnostic capabilities:
- Edit
SKILL.mdto add new workflow steps - Update
common_issues.mdwith new issues and solutions - Extend test script if needed for new checks
Adding New Agents
When adding new agents to the system:
- Update routing keyword mappings in examples
- Add agent-specific checks to diagnostic workflow
- Document common issues for that agent
Tips for Best Results
- Be specific: "coder agent not responding" is better than "agent problem"
- Provide context: Mention what you tried and what error you got
- Share symptoms: "no response" vs "wrong response" lead to different diagnostics
- Run test script: Provides baseline data for Claude to analyze
Troubleshooting the Skill Itself
If Claude doesn't load the skill when expected:
- Check the skill description contains relevant keywords
- Make sure SKILL.md has valid YAML frontmatter
- Try more explicit requests: "Use the agent-debug skill to check status"
- Verify file is at:
.claude/skills/agent-debug/SKILL.md
Contributing
To improve this skill:
- Add new common issues to
common_issues.md - Enhance test script with more checks
- Add examples for new scenarios
- Document new agent types or configurations
Related Skills
- May want to create additional skills for:
- Performance monitoring
- Agent development/creation
- Message board analysis
- Transport layer debugging
Version: 1.0 Author: Claude Code Collective Last Updated: 2024-12-05