a2a-setup

a2a-setup is a skill for Claude Code from Cognigy/cognigy-plugin. It costs 106 tokens per session (2,702 once invoked), scanned A, original, MIT.

A setup guide for A2A, a protocol that lets separate AI agents communicate through a network. It covers calling an outside agent or exposing a Cognigy agent to outside A2A callers.

In plain words
What is it for?
Use it when connecting to a third-party, other-project, or other-tenant A2A agent, or when publishing a Cognigy agent for outside A2A callers.
Why use it?
It helps distinguish external agent communication from an in-project handoff, which uses Cognigy's own handover tool instead.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the cognigy plugin — 16 skills, 2 agents shipped together

Good fit Use it when connecting to a third-party, other-project, or other-tenant A2A agent, or when publishing a Cognigy agent for outside A2A callers.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/cognigy/cognigy-plugin/a2a-setup
Install

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.

Any agent
npx skills add Cognigy/cognigy-plugin --skill a2a-setup
Clone the repo
git clone --depth 1 https://github.com/Cognigy/cognigy-plugin

Made for: Claude Code.

Or install cognigy, the plugin that ships this one along with the rest of its 16 skills, 2 agents.

Wrote 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.

agentmods badge for a2a-setup

README.md
[![agentmods](https://agentmods.dev/badge/skills/cognigy/cognigy-plugin/a2a-setup/github.svg)](https://agentmods.dev/skills/cognigy/cognigy-plugin/a2a-setup)
Your own site
<a href="https://agentmods.dev/skills/cognigy/cognigy-plugin/a2a-setup"><img src="https://agentmods.dev/badge/skills/cognigy/cognigy-plugin/a2a-setup/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.

agentmods 80×15 button for a2a-setup

Your own site · 80×15
<a href="https://agentmods.dev/skills/cognigy/cognigy-plugin/a2a-setup"><img src="https://agentmods.dev/badge/skills/cognigy/cognigy-plugin/a2a-setup.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 106 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,702 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00106 $0.02702
Opus 5.5 $0.00042 $0.01081
Sonnet 5.5 $0.00021 $0.00540
Haiku 4.5 $0.00011 $0.00270

Measured 28d ago against content hash a4b0fc63da44, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

a2a-setup 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 28d 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.

plugin/skills/a2a-setup/SKILL.md · 161 lines

How it starts

The opening of the file, as written. The whole thing — 161 lines — stays where its author put it; the contents beside it link to each section on GitHub.

A2A (Agent2Agent) Setup Guide

When NOT to use A2A

Several agents in the same project are not a reason to use A2A. If the user wants agents in one project to work together ("connect these two agents", "let the triage agent hand off to the billing agent"), use Cognigy's native Handover to AI Agent tool on the calling AI Agent node. It transfers the conversation to another AI Agent in the same or a different Flow and keeps the conversation context. A2A would instead publish an endpoint, add an Agent Card, auth and network latency, and run the target as a separate conversation.

This plugin cannot create a Handover to AI Agent tool yet. Tell the user to add it in the Cognigy UI (AI Agent node → Tools → Add Tool → Handover to AI Agent). Don't build an A2A setup as a workaround.

Use A2A only when at least one of these holds:

  • The target agent is outside the project: an external or third-party A2A agent, another team's deployment, another project or tenant.
  • The user wants to expose a Cognigy agent to outside callers over A2A.
  • The user explicitly asks for A2A by name.

If it's unclear whether the user means in-project handover or A2A, ask.

Read this first

  • manage_a2a_server publishes a callable endpoint. With authenticationType: "none" anyone who has the URL can call the agent. Confirm with the user before you create one, and tell them that.
  • Gotcha (Cognigy targets only): a manage_a2a_server endpoint lives at /a2a/v1/<URLToken>, not the plain endpoint URL. Always copy agentBaseUrl straight from that tool's response — don't build it yourself. External/third-party agents don't have this quirk; just use whatever base URL they publish.
  • Always check liveCheck on the manage_a2a_server response before telling the user the agent is ready — created: true alone doesn't mean it's callable yet. Every create/update fetches the Agent Card live and returns liveCheck.reachable. This works for API-key endpoints too: the key guards message requests, not the Agent Card.

Read the full file on GitHub · 161 lines

Changes

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.

  1. 28d ago First seen · 161 lines · 106 tokens per session scan A a4b0fc63da44

Subscribe to this mod's changes

a2a-setup is a skill published in the GitHub repository Cognigy/cognigy-plugin (18 stars, last pushed yesterday), licensed MIT. It adds 106 tokens to every session and 2,702 once invoked, about $0.0004 per session on Opus 5.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-10-10.

Related

a2a-setup compared with skills from other repositories

a2a-setup next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
a2a-setupCognigy/cognigy-pluginSkill18yesterdayMITA106Claude Code
mem0-oss-to-platformmem0ai/mem0Skill68k2d agoApache-2.0A217Claude Code, Codex
azure-mgmt-botservice-dotnetmicrosoft/skillsSkill3.2kyesterdayMITA78Claude Code
fastapi-router-pymicrosoft/skillsSkill3.2kyesterdayMITA46Claude Code
dev-runtimelangwatch/langwatchSkill5.0kyesterdayApache-2.0A172Claude Code
api-designericrisco/rsc-harnessSkill5032d agoMITA105Claude Code, Codex
migrate-segw-to-raparc-mcp/arc-1Skill252yesterdayMITA106Claude Code