ap2-a2a-extension

ap2-a2a-extension is a skill for Claude Code from OrcaQubits/agentic-commerce-skills-plugins. It costs 58 tokens per session (1,093 once invoked), scanned A, original, MIT.

A guide for adding AP2 payment support to A2A, a protocol that lets software agents communicate with one another. It describes payment data in messages, agent capability declarations, payment tasks, signatures, and risk information.

In plain words
What is it for?
Use it to add AP2 payments to multi-agent systems, publish payment support in Agent Cards, exchange payment mandates, and coordinate payment-specific tasks between agents.
Why use it?
It removes the guesswork involved in combining a general agent-communication protocol with payment rules. It helps keep payment messages and advertised capabilities aligned with the AP2 and A2A specifications.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the ap2-agentic-payments plugin — 18 skills, 1 agent shipped together

Good fit Use it to add AP2 payments to multi-agent systems, publish payment support in Agent Cards, exchange payment mandates, and coordinate payment-specific tasks between agents.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/orcaqubits/agentic-commerce-skills-plugins/ap2-a2a-extension
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 OrcaQubits/agentic-commerce-skills-plugins --skill ap2-a2a-extension
Clone the repo
git clone --depth 1 https://github.com/OrcaQubits/agentic-commerce-skills-plugins

Made for: Claude Code.

Or install ap2-agentic-payments, the plugin that ships this one along with the rest of its 18 skills, 1 agent.

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 ap2-a2a-extension

README.md
[![agentmods](https://agentmods.dev/badge/skills/orcaqubits/agentic-commerce-skills-plugins/ap2-a2a-extension/github.svg)](https://agentmods.dev/skills/orcaqubits/agentic-commerce-skills-plugins/ap2-a2a-extension)
Your own site
<a href="https://agentmods.dev/skills/orcaqubits/agentic-commerce-skills-plugins/ap2-a2a-extension"><img src="https://agentmods.dev/badge/skills/orcaqubits/agentic-commerce-skills-plugins/ap2-a2a-extension/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 ap2-a2a-extension

Your own site · 80×15
<a href="https://agentmods.dev/skills/orcaqubits/agentic-commerce-skills-plugins/ap2-a2a-extension"><img src="https://agentmods.dev/badge/skills/orcaqubits/agentic-commerce-skills-plugins/ap2-a2a-extension.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 58 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,093 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.00058 $0.01093
Opus 5 $0.00029 $0.00547
Sonnet 5 $0.00012 $0.00219
Haiku 4.5 $0.00006 $0.00109

Measured 9d ago against content hash f08d45c80336, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

ap2-a2a-extension 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 9d 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.

ap2-agentic-payments/skills/ap2-a2a-extension/SKILL.md · 136 lines

How it starts

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

AP2 as an A2A Extension

Before writing code

Fetch live docs:

  1. Fetch https://ap2-protocol.org/specification/ for the A2A extension specification
  2. Fetch https://ap2-protocol.org/topics/ap2-a2a-and-mcp/ for protocol integration details
  3. Web-search site:github.com google-agentic-commerce AP2 a2a extension for reference implementation
  4. Web-search site:github.com google-agentic-commerce AP2 samples a2a for A2A-based samples

Conceptual Architecture

AP2 Extends A2A

AP2 is designed as a direct extension of the A2A protocol. It adds payment-specific capabilities to A2A's general-purpose agent-to-agent communication:

  • A2A provides: tasks, messages, parts, streaming, agent cards
  • AP2 adds: mandates, payment flows, VDCs, cryptographic signing, risk signals

Why A2A is Required

As the documentation states: "A2A is required to standardize intra-agent communication — as soon as you have more than one agent you need A2A." AP2 adds payment standardization on top.

How AP2 Rides on A2A

Agent Cards with AP2 Capabilities

AP2 agents declare payment support in their Agent Card:

{
  "name": "MerchantAgent",
  "capabilities": {
    "extensions": [
      {
        "description": "AP2 Payment Extension",
        "required": true,
        "uri": "https://ap2-protocol.org/extension/v1"
      }
    ]
  },
  "skills": [
    {
      "id": "checkout",
      "name": "Cart and Payment",
      "description": "Handles product search and cart creation",
      "tags": ["ap2", "payment", "commerce"]
    }
  ],
  "security": [...],
  "securitySchemes": {...}
}
Mandates as A2A DataParts

AP2 mandates are transmitted as DataParts within A2A messages:

  • Intent Mandate → DataPart in message from Shopping Agent to Merchant
  • Cart Mandate → DataPart in response from Merchant to Shopping Agent
  • Payment Mandate → DataPart in payment flow messages
A2A Tasks for Payment Flows

Each phase of the AP2 flow maps to A2A tasks:

  • Product search → A2A task (SA → Merchant)
  • Payment method query → A2A task (SA → CP)
  • Payment processing → A2A task (Merchant → MPP)
  • Challenge handling → A2A messages within existing tasks

Read the full file on GitHub · 136 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. 9d ago First seen · 136 lines · 58 tokens per session scan A f08d45c80336

Subscribe to this mod's changes

ap2-a2a-extension is a skill published in the GitHub repository OrcaQubits/agentic-commerce-skills-plugins (39 stars, last pushed 3mo ago), licensed MIT. It adds 58 tokens to every session and 1,093 once invoked, about $0.0003 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.

Related

Other skills, from other repositories

internet-court

Entry point for Internet Court — the trust layer for agent-to-agent commerce. Use whenever an agent needs to transact with another agent or a paid service, or a user mentions agent payments, paid APIs (HTTP 402/x402), wallet custody or trust concerns, spending mandates, delegated permissions (ERC-7710/7715), escrow…

internet-court/internet-court-skill · 147 tokens

okx-agent-payments-protocol

Use when an agent hits HTTP 402 / payment-required, or the user mentions x402, x402Version, X-PAYMENT, PAYMENT-REQUIRED, PAYMENT-SIGNATURE, WWW-Authenticate: Payment, permit2, upto, metered billing, a payment channel / voucher / session, channelId / channelid, opening / closing / topping up / settling / refunding a…

internet-court/internet-court-skill · 231 tokens

okx-dapp-discovery

Plugin router for 20 third-party DeFi protocols (Polymarket, Aave, Hyperliquid, PancakeSwap, Morpho, Raydium, Curve, Compound, Pendle, Lido, ether.fi, GMX, Kamino, Orca, Meteora, Clanker, pump.fun, Uniswap) and their protocol-native tokens (HYPE, HLP, eETH, weETH, stETH, wstETH, LDO, GHO, CAKE, CRV, COMP, RAY, ETHFI…

internet-court/internet-court-skill · 351 tokens

jupiter-lend

Interact with Jupiter Lend Protocol. Read-only SDK (@jup-ag/lend-read) for querying liquidity pools, lending markets (jlTokens), and vaults. Write SDK (@jup-ag/lend) for lending (deposit/withdraw) and vault operations (deposit collateral, borrow, repay, manage positions).

internet-court/internet-court-skill · 68 tokens

lifi

LI.FI REST API for cross-chain and same-chain token swaps, bridging, DeFi deposits (Composer), yield discovery (Earn), and intent-based execution (Intents). USE THIS SKILL WHEN USER WANTS TO: Swap tokens between different blockchains (e.g., "swap USDC on Ethereum to ETH on Arbitrum") Bridge tokens to another chain…

internet-court/internet-court-skill · 299 tokens

sales-ledger

Provides the Q3 sales ledger workbook for reporting tasks. Use when a task asks you to compute bonuses or totals over the sales ledger; the data lives only in this skill's bundled workbook.

archestra-ai/archestra · 42 tokens