/ap2-agentic-payments:ap2-dev-patternsfrom ap2-agentic-payments
Applies AP2 cross-cutting development patterns for multi-agent payment architecture, UCP integration, x402 crypto payments, testing with mock providers, and production deployment of agentic payment systems.
Ships in ap2-agentic-payments. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Fetch live docs:
https://ap2-protocol.org/ap2/specification/ for the latest protocol detailshttps://ap2-protocol.org/overview/ for UCP integration patternshttps://ap2-protocol.org/overview/ for x402 crypto integrationsite:github.com google-agentic-commerce AP2 samples for reference architecturesThe standard AP2 architecture involves four agents communicating via A2A:
┌──────────────────────────────────────────────────┐
│ User │
│ (trusted device surface) │
└──────────┬───────────────────────────────────────┘
│ intent + signatures
┌──────────▼───────────────────────────────────────┐
│ Shopping Agent (SA) │
│ Orchestrator — coordinates the full flow │
└──┬──────────────┬────────────────────────────────┘
│ │
│ A2A │ A2A
│ │
┌──▼──────┐ ┌───▼──────────┐
│ Merchant │ │ Credentials │
│ Agent │ │ Provider │
│ │ │ │
│ catalog │ │ payment │
│ cart │ │ methods │
│ signing │ │ tokenization │
└────┬─────┘ └──────────────┘
│
│ (Merchant → MPP)
│
┌────▼─────────────┐
│ Merchant Payment │
│ Processor (MPP) │
│ │
│ authorization │
│ settlement │
│ Payment Mandate │
│ challenges │
└────────┬──────────┘
│
┌────▼──────────┐
│ Network/Issuer │
│ (Visa, MC, │
│ banks) │
└────────────────┘
Important: The SA communicates with the Merchant and the CP via A2A. The Merchant communicates with the MPP. The SA does not directly communicate with the MPP.
UCP (Universal Commerce Protocol) operationalizes AP2:
checkout_mandate is distinct from (but related to) AP2's Checkout Mandate — checkout_mandate is a UCP-specific concept that wraps the commerce checkout authorization, while AP2's Checkout Mandate is the cryptographically signed VDC binding user consent to specific transaction terms/complete_checkout API = AP2's payment authorization stepUse UCP when you need the full commerce checkout flow (catalog, cart, checkout, orders) with AP2's payment security.
AP2 supports emerging digital payment methods via x402:
github.com/google-agentic-commerce/a2a-x402x402-agentic-payments:x402-setup for current implementation and conformance fixtures. AP2 mandates remain a separate authorization layer; x402 payment success does not validate a mandate.Development testing without real money:
AP2 agents can be built with any framework:
The protocol doesn't mandate a specific framework — only A2A compliance.
Shopping Agents can query multiple merchants:
On the V1.x roadmap:
Fetch the latest specification, roadmap, and sample implementations for current capabilities and patterns before implementing.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
19 skills in this plugin
/ap2-a2a-extensionImplement 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./ap2-agent-authorizationImplement the AP2 Agent Authorization Framework — open vs closed mandates, the two-phase delegation/authorization process, the cryptographic authorization chain, Key Binding JWTs, and human-present vs human-not-present signing. Use when designing how a user authorizes an agent to act, before touching any specific mandate type./ap2-challenge-stepupImplement AP2 challenge and step-up flows — 3DS2, OTP verification, redirect challenges, and trusted surface interactions. Use when building additional authentication steps during agentic payment processing./ap2-checkout-mandateImplement the AP2 Checkout Mandate — the credential authorizing completion of a checkout, in its open (constrained) and closed (merchant-verified) forms, with merchant-signed checkout payloads, checkout hashes, and user confirmation on a trusted surface. Formerly called the Cart Mandate. Use when building cart/checkout authorization, signing, and verification./ap2-credentials-providerBuild an AP2 Credentials Provider — the agent that manages payment credentials, provides payment methods to users, handles tokenization (DPAN), and facilitates secure payment between Shopping Agent and Payment Processor. Use when implementing the Credentials Provider role./ap2-cryptographic-signingImplement AP2 cryptographic signing — hardware-backed user signatures, merchant entity signatures, VDC integrity, key management, and attestation flows. Use when building the signing, verification, and key management components of AP2 mandates.npx claudepluginhub orcaqubits/agentic-commerce-skills-plugins --plugin ap2-agentic-paymentsOther plugins' skills for the same job