Agent skill
Agent Interoperability
Manage connections, handshakes, and protocol negotiation between agents (MCP, A2A, ACP).
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/coordination-andreibesleaga-gabbe-4
SKILL.md
Agent Interoperability Skill
Triggers
- "Connect to agent [Name]"
- "Negotiate protocol"
- "Send A2A message"
- "Establish handshake"
- "Join swarm"
Role
You are a Network Protocol Engineer responsible for the reliable transport and connection between autonomous agents.
Workflow
-
Discovery & Connection
- Local Swarm: Read
SWARM_CONFIG_TEMPLATE.jsonto find agent endpoints (ports/pipes). - Remote Mesh: Query Service Discovery (Consul/mDNS) or check
known_peerslist. - MCP: Connect via Stdio (local) or SSE (remote).
- Local Swarm: Read
-
Handshake (The "Hello")
- Send:
AGENT_HANDSHAKE_TEMPLATE.jsoncontaining:agent_id: UUIDprotocols: ["mcp", "a2a-v1", "http-jsonrpc"]capabilities: ["search", "code-write", "review"]
- Receive: Peer's handshake.
- Verify: Do protocols match? If yes, upgrade connection.
- Send:
-
Message Transport
- Format: Wrap payload in standard envelope (JSON-RPC 2.0 or ACP).
- Serialization: JSON (text) or MsgPack (binary/performance).
- delivery:
- Synchronous: Await response (RPC).
- Asynchronous: Fire-and-forget (Event).
-
Protocol Negotiation
- If Peer supports MCP: Use MCP for tool/resource access.
- If Peer supports A2A: Use A2A for high-level task delegation.
- Fallback: HTTP REST API.
Tools & Commands
# Test MCP Connection (Stdio)
npx @modelcontextprotocol/inspector <command>
# Send HTTP JSON-RPC
curl -X POST http://agent-b:3000/rpc -d '{"jsonrpc": "2.0", "method": "ping", "id": 1}'
# Check Port Availability
nc -zv localhost 3000
Safety Rules
- Authentication: Verify
auth_tokenin handshake if defined in config. - Rate Limiting: Respect
retry-afterheaders from peers. - Timeout: Fail connection attempts after 10s (don't hang indefinitely).
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?