Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add khalilbenaz/claude-skills-collection --skill a2a-protocol-guidegit clone --depth 1 https://github.com/khalilbenaz/claude-skills-collectionWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/khalilbenaz/claude-skills-collection/a2a-protocol-guide)<a href="https://agentmods.dev/skills/khalilbenaz/claude-skills-collection/a2a-protocol-guide"><img src="https://agentmods.dev/badge/skills/khalilbenaz/claude-skills-collection/a2a-protocol-guide/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/khalilbenaz/claude-skills-collection/a2a-protocol-guide"><img src="https://agentmods.dev/badge/skills/khalilbenaz/claude-skills-collection/a2a-protocol-guide.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00106 | $0.02269 |
| Opus 5 | $0.00053 | $0.01135 |
| Sonnet 5 | $0.00021 | $0.00454 |
| Haiku 4.5 | $0.00011 | $0.00227 |
Grade A, and why
a2a-protocol-guide scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 243 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Guide du Protocole A2A
Concepts fondamentaux
| Composant | Rôle |
|---|---|
| Agent Card | Fichier JSON décrivant l'agent (skills, endpoint, auth) — publié sur /.well-known/agent.json |
| Task | Unité de travail délégué ; cycle : submitted → working → completed / failed / canceled |
| Artifact | Résultat produit par une tâche (fichier, JSON, message) |
| Part | Fragment d'un message ou artifact : TextPart, FilePart, DataPart |
| Client / Server | Un agent peut être les deux selon la direction de l'appel |
Workflow en étapes
1. Définir l'Agent Card
Fichier minimal exposé sur GET /.well-known/agent.json :
{
"name": "DataExtractorAgent",
"description": "Extrait des données structurées depuis des documents PDF",
"url": "https://agent.example.com/a2a",
"version": "1.0.0",
"capabilities": {
"streaming": true,
"pushNotifications": false
},
"authentication": {
"schemes": ["Bearer"]
},
"skills": [
{
"id": "extract-invoice",
"name": "Invoice Extraction",
"description": "Retourne les champs clés d'une facture PDF",
"examples": ["Extrais les montants de cette facture"],
"inputModes": ["application/pdf"],
"outputModes": ["application/json"]
}
]
}
Critère de décision — streaming : active streaming: true si les tâches durent > 5 s ou produisent des résultats progressifs. Sinon, mode synchrone suffit.
2. Implémenter le serveur A2A (JSON-RPC 2.0)
Endpoint unique POST /a2a — méthodes requises :
| Méthode | Usage |
|---|---|
tasks/send |
Tâche synchrone (réponse directe) |
tasks/sendSubscribe |
Tâche longue — SSE stream |
tasks/get |
Consulter statut + artifacts |
tasks/cancel |
Annuler une tâche en cours |
# FastAPI — squelette minimal
from fastapi import FastAPI, Request
from fastapi.responses import JSONResponse, StreamingResponse
import uuid, asyncio
app = FastAPI()
tasks_store = {} # En prod : Redis ou DB
@app.post("/a2a")
async def a2a_handler(request: Request):
body = await request.json()
method = body.get("method")
params = body.get("params", {})
rpc_id = body.get("id")
if method == "tasks/send":
task_id = str(uuid.uuid4())
result = await run_task(params)
tasks_store[task_id] = {"status": "completed", "result": result}
return JSONResponse({
"jsonrpc": "2.0", "id": rpc_id,
"result": {"id": task_id, "status": {"state": "completed"}, "artifacts": [result]}
})
if method == "tasks/get":
task_id = params["id"]
task = tasks_store.get(task_id)
if not task:
return JSONResponse({"jsonrpc": "2.0", "id": rpc_id,
"error": {"code": -32001, "message": "Task not found"}})
return JSONResponse({"jsonrpc": "2.0", "id": rpc_id, "result": task})
return JSONResponse({"jsonrpc": "2.0", "id": rpc_id,
"error": {"code": -32601, "message": "Method not found"}})
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 10d ago First seen · 243 lines · 106 tokens per session scan A e2d7e967800a
a2a-protocol-guide is a skill published in the GitHub repository khalilbenaz/claude-skills-collection (22 stars, last pushed 16d ago), licensed MIT. It adds 106 tokens to every session and 2,269 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
explain
Explains code/architecture with Mermaid diagrams and sequence flows. Triggers: what does X do, how does Y work, explain code, sequence diagram.
common-sense-index-investing-bogle
Apply John Bogle index investing rules for low-cost funds, asset allocation, fees, taxes, ETFs, advisers, and buy-hold discipline.
finance-econ-literacy
A Korean-language guide to understanding economic indicators such as interest rates, exchange rates, inflation, GDP, employment, and trade. It explains how these figures can affect loans, savings, investments, and spending.
stock-analysis-lead
Orchestrate a US-stock investment analysis — classify sector archetype, fetch SEC filings, dispatch a tiered fan-out of six vertical equity-research agents (business model, earnings quality, balance sheet, management, industry, peer comparison) over a validated JSON findings contract, then synthesize a buy/hold/sell…
stock-business-review
Review a US-listed company's business model and revenue structure for an equity-research workup. Covers product/service mix, customer concentration, geographic exposure, industry position, revenue-growth decomposition (organic vs acquired vs price vs volume), and information-tier discipline (which numbers are facts vs…
stock-earnings-quality-review
Review a US-listed company's earnings quality, cash-flow integrity, and operating leverage for an equity-research workup. Covers operating cash flow vs net income drift, free cash flow trajectory, capex character (maintenance vs expansion), equity issuance / shareholder-return yield, revenue-quality signals…