Ap2 A2a Extension logo

Ap2 A2a Extension

Organization
OrcaQubits
ap2-a2a-extension

Implement AP2 as an A2A extension — mandate DataParts in A2A messages, Agent Card AP2 capabilities, payment-specific task flows, and inter-agent payment communication. Use when integrating AP2 payment capabilities into A2A multi-agent systems.

Overview

PublisherOrcaQubits
Repositoryagentic-commerce-skills-plugins
Skill nameap2-a2a-extension
Stars
40
Forks
17
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by OrcaQubits on GitHub. Read the source before you install it.

Installation

Install the Ap2 A2a Extension AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/OrcaQubits/agentic-commerce-skills-plugins/tree/main/ap2-agentic-payments/skills/ap2-a2a-extension
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/OrcaQubits/agentic-commerce-skills-plugins.git /tmp/agentic-commerce-skills-plugins
mkdir -p .claude/skills
cp -r /tmp/agentic-commerce-skills-plugins/ap2-agentic-payments/skills/ap2-a2a-extension .claude/skills/ap2-a2a-extension
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Ap2 A2a Extension in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Ap2 A2a Extension on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Ap2 A2a Extension is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

AP2 as an A2A Extension

Before writing code

Fetch live docs:

  1. Fetch https://ap2-protocol.org/ap2/specification/ for the A2A extension specification
  2. Fetch https://ap2-protocol.org/ap2/implementation_considerations/ 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:

json
{
  "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
  • Checkout 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

Message Structure

A2A messages carrying AP2 mandates include:

json
{
  "role": "user",
  "parts": [
    {
      "type": "text",
      "text": "I want to buy a coffee maker"
    },
    {
      "type": "data",
      "data": {
        "intent_mandate": { ... }
      }
    }
  ]
}

Protocol Stack

┌─────────────────────────────┐
│ AP2 (Mandates, VDCs, Signing)│
├─────────────────────────────┤
│ A2A (Tasks, Messages, Parts) │
├─────────────────────────────┤
│ HTTP / JSON-RPC 2.0          │
└─────────────────────────────┘

Discovery

Shopping Agents discover AP2-capable merchants by:

  1. Fetching Agent Cards (from .well-known/agent-card.json or registries)
  2. Checking for AP2 extension in capabilities.extensions[]
  3. Examining skills for payment-related capabilities
  4. Verifying authentication requirements

Watch Log

The reference samples include a watch.log that captures:

  • Raw HTTP data (methods, URLs, request/response bodies)
  • A2A message data (instructions and DataParts)
  • AP2 protocol data (IntentMandate, CheckoutMandate, PaymentMandate objects)

This is valuable for debugging the A2A ↔ AP2 integration.

Best Practices

  • Declare AP2 extension in Agent Cards for discoverable payment capabilities
  • Use A2A DataParts (not TextParts) for mandate transmission
  • Follow A2A task lifecycle for payment flow state management
  • Implement A2A streaming for real-time payment status updates
  • Use A2A authentication alongside AP2 mandate signing
  • Test the full A2A + AP2 integration with the official samples
  • Log both A2A and AP2 protocol data for debugging

Fetch the specification for exact A2A extension schema, DataPart structures for mandates, and Agent Card AP2 capability declaration before implementing.

Frequently asked questions

What does the Ap2 A2a Extension AI skill do?

Implement AP2 as an A2A extension — mandate DataParts in A2A messages, Agent Card AP2 capabilities, payment-specific task flows, and inter-agent payment communication. Use when integrating AP2 payment capabilities into A2A multi-agent systems.

Why use Ap2 A2a Extension on TypingMind?

Because you install it once and use it with any model. Ap2 A2a Extension is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Ap2 A2a Extension in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/OrcaQubits/agentic-commerce-skills-plugins/tree/main/ap2-agentic-payments/skills/ap2-a2a-extension. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Ap2 A2a Extension?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Ap2 A2a Extension?

As many as you like. As long as a model supports skills, you can use Ap2 A2a Extension with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Ap2 A2a Extension AI skill free?

Yes. It is published on GitHub by OrcaQubits under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇