Skip to content
Back to skills

A2a

ASecurity

Talks to other Bridges and A2A agents: ask a peer, check an agent card, probe an endpoint''s auth and topic boundary, and scaffold an A2A agent (public, or a peer endpoint with trust: peer). Peers live in infra/a2a-peers/. Trigger: "a2a", "ask <name>''s bridge", "agent card", "check the card", "probe the agent", "new a2a agent", "peer endpoint".

  • 16 stars
  • 0 votes
  • 1 copy
  • 4 views
  • Added September 28, 2026
ai-agentspythonrustgobashsecurity

Security analysis

A100/100

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

Scanned December 1, 2026

npx -y skills add bks-lab/open-bridge --skill a2a --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of A2a?

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

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

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
description: 'Talks to other Bridges and A2A agents: ask a peer, check an agent card, probe an endpoint''s auth and topic boundary, and scaffold an A2A agent (public, or a peer endpoint with trust: peer). Peers live in infra/a2a-peers/. Trigger: "a2a", "ask <name>''s bridge", "agent card", "check the card", "probe the agent", "new a2a agent", "peer endpoint".'
metadata:
  scope: core
allowed-tools:
  - Bash(python3:*)
  - Bash(bash:*)
  - Read
  - Grep
  - Glob
---

# a2a

One skill for both directions of A2A: this Bridge calling another agent, and this
Bridge offering an agent of its own. Protocol mechanics only. Who your peers are,
which topics they may ask and in which language lives in data: `infra/a2a-peers/`,
the agent's own `agent.yaml` and `system-prompt.md`, and an org overlay's skill on
top (for example a `<org>-a2a` skill with the org's peer list and probe prompts).

Engine: `skills/a2a/scripts/a2a.py` behind `skills/a2a/a2a.sh`. Stdlib plus PyYAML.
Read the referenced file ONLY when the branch below sends you there.

## Commands

| Command | Does |
|---|---|
| `peers` | list `infra/a2a-peers/*.yaml` |
| `card <peer\|url>` | fetch the card, report endpoint, version, dialect, https, skills, schemes |
| `ask <peer> "<question>" [--context ID] [--wait S] [--json]` | send one question in the peer's dialect; `--wait` polls a held task (a peer waiting for its owner's approval) |
| `journal list\|show\|health [--hours N] [--peer ID] [--json]` | what went in and out over A2A, from this Bridge's journal (Overview, one exchange, health per peer and day); see references/journal.md |
| `get <peer> <task_id> [--json]` | read a held task again (approved meanwhile?) without sending anything new |
| `request <peer> "<what>" [--subject S] [--wait S] [--json]` | ask the peer's OWNER to do something; the owner (or a rule the owner set) decides, the model never sees it. Needs `owner_request` on the card |
| `rules <peer> [--json]` | the owner's rules for you and your request history at that peer (`owner_policy`) |
| `probe <peer> [--prompts FILE]` | no token and wrong token must be refused, then each boundary prompt is checked against its expected refusal or answer |
| `new-agent <name> --trust public\|peer [--port N] [--peer ID:ENV:LOGIN]` | scaffold `agents/<name>/`; `peer` writes agent.yaml with auth, a prompt skeleton with a topic boundary, `share/` and `launch.sh` |

Exit codes: `0` clean, `1` a finding or a task that did not complete, `2` usage or a refused input.

## The token never passes through you

A peer file names its token as a secret reference (`credential_ref:
keychain://...`). `ask` and `probe` re-run themselves under `skills/secrets/secrets.sh
run --env A2A_TOKEN=<ref>`, so the value goes into the child process and nowhere
else. Never ask the user for a token in chat, never put one in a command line.

## Decision tree

```
What does the user want?
├── Ask another Bridge something          → `a2a.sh ask <peer> "..."`; unknown peer →
│                                           `a2a.sh peers`, then references/peers.md
├── Ask another Bridge's owner to DO sth  → `a2a.sh request <peer> "..." --subject a/b/c`,
│                                           then `get`; their rules: `a2a.sh rules <peer>`
├── Let peers request actions from you    → references/peer-agent.md § 4b
├── Per-peer folders, topics on request  → references/peer-agent.md § 4c
├── "Is that agent set up right?"         → `a2a.sh card <peer|url>`, then `probe`
├── Add a peer to call                    → references/peers.md
├── Offer an agent to the public          → `new-agent <name> --trust public`, then
│                                           references/public-agent.md
├── Offer an agent to known Bridges only  → `new-agent <name> --trust peer --peer ...`,
│                                           then references/peer-agent.md
├── "What did we send, what came back?"  → `a2a.sh journal list --hours 48`, then
│                                           references/journal.md
├── Wire details, 1.0 vs 0.3, errors      → references/protocol.md
├── Something behaves oddly               → references/traps.md
└── Identity, delegation, where it goes   → references/security-model.md
```

## Files

| File | Holds |
|---|---|
| `scripts/a2a.py` | the engine |
| `scripts/a2a_journal.py` | the A2A journal: writes events, `list`, `show`, `health`, `prune` (docs/a2a-journal.md) |
| `assets/peer-*.tmpl`, `assets/share-README.md` | what `new-agent --trust peer` writes |
| `assets/probe-prompts.yaml` | generic boundary prompts; an overlay ships its own set |
| `tests/test_a2a.py`, `tests/test_a2a_journal.py` | hermetic tests, `bash skills/a2a/run-tests.sh` |
| `../../infra/a2a-peers/_template.yaml`, `_schema.yaml` | one peer |

Files in this skill

  • SKILL.md3.5 KB
  • a2a.sh287 B
  • assets/peer-agent.yaml.tmpl1.5 KB
  • assets/peer-launch.sh.tmpl546 B
  • assets/peer-system-prompt.md.tmpl1.1 KB
  • assets/probe-prompts.yaml898 B
  • assets/share-README.md474 B
  • references/peer-agent.md2.9 KB
  • references/peers.md1.2 KB
  • references/protocol.md1.5 KB
  • references/public-agent.md549 B
  • references/security-model.md1.5 KB
  • references/traps.md1.1 KB
  • run-tests.sh170 B
  • scripts/a2a.py19 KB
  • tests/test_a2a.py12.8 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.

View all in ai-agents →

Comments

Loading comments…

Newsletter

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