/ucp-agentic-commerce:ucp-ap2-mandatesfrom ucp-agentic-commerce
Implements UCP AP2 Mandates extension for autonomous agent commerce, covering SD-JWT credentials, merchant authorization signatures, and the Agent Payments Protocol flow.
Ships in ucp-agentic-commerce. 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 spec:
site:ucp.dev specification ap2-mandates for the extension schemasite:ap2-protocol.org for the AP2 protocol specificationAP2 (Agent Payments Protocol) enables fully autonomous agent commerce — the agent can authorize payments cryptographically without requiring real-time human approval for each transaction. The user pre-authorizes spending parameters, and the agent proves authorization via signed credentials.
Checkout Mandate (ap2.checkout_mandate): An SD-JWT+kb (Selective Disclosure JWT with Key Binding) credential that proves the user authorized the agent to complete this specific checkout at these specific terms.
Payment Mandate (payment_data.token): A separate credential proving payment authorization, verified by the PSP (not the Business).
Before the Platform generates mandates, the Business must sign the checkout terms:
<header>..<signature>The Business returns this merchant_authorization in the checkout response.
merchant_authorization (JWS detached content)complete_checkout callOnce AP2 is negotiated for a checkout session, a Security Lock is activated: neither party may revert to a standard (non-AP2) checkout flow for that session. This prevents downgrade attacks where a malicious actor could bypass the cryptographic mandate requirements by falling back to a simpler payment flow.
AP2-specific errors:
mandate_required — AP2 mandates needed but not providedagent_missing_key — Agent's signing key not foundmandate_invalid_signature — Signature verification failedmandate_expired — Mandate past validity windowmandate_scope_mismatch — Mandate doesn't match checkout termsmerchant_authorization_invalid — Business signature invalidmerchant_authorization_missing — Business didn't sign termsThis is the most complex UCP extension. Before implementing:
This extension is intended for advanced autonomous agent scenarios. Most initial implementations should start with standard payment handlers (Google Pay, Shop Pay) before adding AP2.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
ap2-mandates, agent-payments, sd-jwt, payment-mandates, ucp-extension
npx claudepluginhub orcaqubits/agentic-commerce-skills-plugins --plugin ucp-agentic-commerce23 skills in this plugin
/ucp-buyer-consentImplement the UCP Buyer Consent extension — GDPR/CCPA consent collection, consent fields in checkout sessions, and privacy-compliant consent management. Use when adding consent flows, privacy compliance, or data processing agreements to UCP checkout./ucp-cartImplement the UCP Cart capability (`dev.ucp.shopping.cart`) — a lightweight CRUD surface for collecting line items before purchase intent exists, and its conversion into a Checkout session. Use when building pre-checkout item collection, shareable carts, or cart-recovery flows over REST, MCP, or Embedded bindings./ucp-catalogImplement the UCP Catalog capability (`dev.ucp.shopping.catalog`) — free-text product Search and identifier-based Lookup, the Product/Variant data model, media, ratings, and quantity units. Use when exposing product discovery to agents or consuming a business catalog before cart and checkout.Other plugins' skills for the same job