Skip to content
Back to skills

A2a Protocol

ASecurity

Agent2Agent (A2A) Protocol implementation - communicate with other AI agents

  • 16 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added June 7, 2026
businesspythongoshellapi

Works with

  • cli
  • api

Security analysis

A96/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro scans all 2 files and shows the line behind each finding

Scanned June 7, 2026

npx -y skills add modbender/skill-library-mcp --skill a2a-protocol --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of A2a Protocol?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for A2a Protocol
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/modbender-a2a-protocol/badge)](https://www.skillsdirectory.com/skills/modbender-a2a-protocol)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: a2a-protocol
version: 1.0.0
description: Agent2Agent (A2A) Protocol implementation - communicate with other AI agents
metadata: {"openclaw": {"emoji": "🤝", "category": "communication", "requires": {"bins": ["python"], "pip": ["requests"]}, "homepage": "https://a2a-protocol.org"}}
---

# A2A Protocol Skill

Implementation of the Agent2Agent (A2A) Protocol for inter-agent communication.

## What it does

- **Agent Discovery** via Agent Cards
- **Send Messages** to remote agents
- **Task Management** (submit, check status, get results)
- **Streaming** via Server-Sent Events (SSE)
- **Authentication** support (API keys, Bearer tokens)

## Installation

```powershell
# Install Python dependencies
pip install requests sseclient-py
```

## Usage

### Register Your Agent

```powershell
.\a2a.ps1 -Action register -Name "MyAgent" -Description "Research agent" -Capabilities "research,analysis" -Endpoint "https://my-agent.com/a2a"
```

### Get Agent Card

```powershell
.\a2a.ps1 -Action card -AgentId "uuid-of-agent"
```

### Send Message

```powershell
.\a2a.ps1 -Action send -ToAgent "target-agent-uuid" -Content "Hello agent!"
```

### Submit Task

```powershell
.\a2a.ps1 -Action task -ToAgent "target-agent-uuid" -Task "Research quantum computing"
```

### Check Task Status

```powershell
.\a2a.ps1 -Action status -TaskId "task-uuid"
```

### List Remote Agents

```powershell
.\a2a.ps1 -Action list -RegistryUrl "https://registry.agentlink.io"
```

## A2A Concepts

- **Agent Card**: JSON describing agent capabilities (name, endpoint, methods)
- **Client Agent**: Agent that sends tasks
- **Remote Agent**: Agent that receives and processes tasks
- **Task**: Work request with ID, status, and result
- **Message**: Direct communication between agents

## API Reference

```
POST /a2a/agents/register - Register agent
GET  /a2a/agents/{id}    - Get agent info
GET  /a2a/agents/{id}/card - Get Agent Card
POST /a2a/messages       - Send message
POST /a2a/tasks          - Submit task
GET  /a2a/tasks/{id}     - Get task status
GET  /a2a/tasks/{id}/result - Get task result
```

## Examples

### Python Usage

```python
from a2a import A2AClient

client = A2AClient("https://remote-agent.com/a2a", api_key="your-key")

# Send message
client.send_message("target-agent-id", "Hello!")

# Submit task
task_id = client.submit_task("target-agent-id", "Do X")
result = client.get_result(task_id)
```

## Requirements

- Python 3.8+
- requests library
- sseclient-py (for streaming)

## License

MIT

Files in this skill

  • SKILL.md2.6 KB
  • a2a_client.py7.1 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.