Agent skill
agent-protocol
Defines and validates standard communication protocols between agents (A2A).
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-2
SKILL.md
Agent Protocol Skill
Triggers
- protocol
- handshake
- ipc
- agent-messaging
- a2a
Purpose
To establish standard interfaces for agents to communicate, ensuring reliable data exchange and preventing format hallucinations.
Instructions
When defining how agents talk to each other:
- Define the Schema: Use JSON Schema to define the structure of messages.
type: (request, response, event, error)payload: The actual data content.meta: Timestamp, sender_id, correlation_id.
- Establish the Handshake:
- Ping/Pong: Verify availability.
- Capability Query: "What tools do you have?" -> "I have [tool_a, tool_b]".
- Standardize Error Handling:
- Define standard error codes (e.g.,
AGENT_BUSY,INVALID_INPUT,CONTEXT_OVERFLOW). - Define retry policies (exponential backoff).
- Define standard error codes (e.g.,
- Documentation:
- Write the protocol definition to a shared
contracts/directory or a markdown file.
- Write the protocol definition to a shared
Example Protocol (JSON)
{
"protocol": "v1",
"type": "task_request",
"id": "uuid-1234",
"sender": "orchestrator",
"recipient": "coder_agent",
"payload": {
"task": "Implement login function",
"context": "User needs email/password auth...",
"constraints": ["Use bcrypt", "No external auth providers"]
}
}
Best Practices
- Strict Typing: Always validate payloads against the schema.
- Idempotency: Ensure task requests can be retried without side effects if possible.
- Async First: assume communication is asynchronous; use correlation IDs to match requests and responses.
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?