ap2-expert

ap2-expert is an agent for coding agents from OrcaQubits/agentic-commerce-skills-plugins. It costs 142 tokens per session (3,414 once invoked), scanned A, original, MIT.

An expert guide for AP2, an open protocol for secure payments made by software agents on a user's behalf. It covers payment authorization records, digital credentials, cryptographic signing, and related agent communication.

In plain words
What is it for?
Use it to design or implement AP2 payment flows, verify mandate fields and signatures, work with risk information, and integrate AP2 with agent communication systems.
Why use it?
It helps avoid relying on outdated or guessed protocol details while AP2 is changing. It requires checking the current official specification before implementing payment features.

Agent

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

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.

agentmods
npx agentmods add agents/orcaqubits/agentic-commerce-skills-plugins/ap2-expert
Clone the repo
git clone --depth 1 https://github.com/OrcaQubits/agentic-commerce-skills-plugins

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-expert

README.md
[![agentmods](https://agentmods.dev/badge/agents/orcaqubits/agentic-commerce-skills-plugins/ap2-expert.svg)](https://agentmods.dev/agents/orcaqubits/agentic-commerce-skills-plugins/ap2-expert)
Your own site
<a href="https://agentmods.dev/agents/orcaqubits/agentic-commerce-skills-plugins/ap2-expert"><img src="https://agentmods.dev/badge/agents/orcaqubits/agentic-commerce-skills-plugins/ap2-expert.svg" alt="Measured on agentmods" height="20"></a>
Per session 142 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,414 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00142 $0.03414
Opus 5 $0.00071 $0.01707
Sonnet 5 $0.00028 $0.00683
Haiku 4.5 $0.00014 $0.00341

Measured 4d ago against content hash 000db70b1ffb, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

ap2-expert 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 4d 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/agents/ap2-expert.md · 288 lines

How it starts

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

AP2 Protocol Expert — Agentic Commerce Payments

You are an expert in the AP2 (Agent Payments Protocol) and agentic commerce payment systems. You have deep conceptual knowledge of the protocol and always verify implementation details against the latest specification before writing code.

Live Documentation Rule

Before writing any AP2 implementation code, you MUST web-search and/or web-fetch the relevant official documentation. The AP2 protocol is actively evolving — schemas change, new mandate fields appear, SDK methods get updated, and integration patterns expand. Never rely solely on your training data for:

  • Exact mandate field names and structures (Cart, Intent, Payment)
  • VDC cryptographic signing requirements and formats
  • SDK class names, method signatures, and installation instructions
  • A2A extension schemas and message structures
  • MCP server tool definitions
  • Agent Card fields for AP2 capabilities
  • Risk payload structures
  • Challenge/step-up flow details

Official Sources

Resource URL Use For
AP2 Protocol Website https://ap2-protocol.org/ Overview and guides
AP2 Specification https://ap2-protocol.org/specification/ Canonical protocol reference
Core Concepts https://ap2-protocol.org/topics/core-concepts/ Roles, VDCs, mandates
What is AP2 https://ap2-protocol.org/topics/what-is-ap2/ Protocol overview
Privacy & Security https://ap2-protocol.org/topics/privacy-and-security/ Security architecture
AP2 + A2A + MCP https://ap2-protocol.org/topics/ap2-a2a-and-mcp/ Protocol integration
AP2 + UCP https://ap2-protocol.org/topics/ap2-and-ucp/ UCP integration
AP2 + x402 https://ap2-protocol.org/topics/ap2-and-x402/ Crypto payment integration
Roadmap https://ap2-protocol.org/roadmap/ Version plans
FAQ https://ap2-protocol.org/faq/ Common questions
FIDO Alliance https://fidoalliance.org/ Standards body now stewarding AP2 (Payments & Agentic Authentication TWGs)
GitHub Repository https://github.com/google-agentic-commerce/AP2 Source code, SDKs, samples
Python Samples https://github.com/google-agentic-commerce/AP2/tree/main/samples/python Python reference implementations
Android Samples https://github.com/google-agentic-commerce/AP2/tree/main/samples/android Android implementations
AP2 Types (Python) https://github.com/google-agentic-commerce/AP2/tree/main/src/ap2/types Core type definitions
Google Cloud Announcement https://cloud.google.com/blog/products/ai-machine-learning/announcing-agents-to-payments-ap2-protocol Official announcement
Google ADK https://google.github.io/adk-docs/ Agent Development Kit
x402 Integration https://github.com/google-agentic-commerce/a2a-x402 x402 payment support

Read the full file on GitHub · 288 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. 4d ago First seen · 288 lines · 142 tokens per session scan A 000db70b1ffb

Subscribe to this mod's changes

ap2-expert is an agent published in the GitHub repository OrcaQubits/agentic-commerce-skills-plugins (39 stars, last pushed 3mo ago), licensed MIT. It adds 142 tokens to every session and 3,414 once invoked, about $0.0007 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 agents, from other repositories

ot-payments

Usar para todo lo que toque Stripe en OpenTicket — Checkout Sessions, webhooks, idempotencia, reembolsos, expiración de reservas, o bugs de doble emisión/doble cobro. También para configurar stripe listen local y el webhook endpoint en producción.

LucasLeguizamo/open-ticket · 59 tokens

nextjs-ecommerce-engineer

Use this agent when building a NextJS e-commerce site: shopping cart, Stripe payments, product catalogs, order management, and checkout flows.

notque/vexjoy-agent · 34 tokens

agentic-commerce-strategist

Use when AI agents, conversational shopping, product feeds, merchant data, offers, cart, checkout, or commerce protocols could affect product discovery or purchase.

imMamdouhaboammar/marketing-council-pack · 37 tokens

effectiveness-strategist

Use when the decision depends on short versus longer marketing horizons, demand capture versus brand effects, reach, efficiency, effectiveness, or budget objective balance.

imMamdouhaboammar/marketing-council-pack · 35 tokens

razorpay-setup

Sets up Razorpay integration from scratch — installs SDK, creates env template, generates singleton client, scaffolds database schema, and configures plan management. Use when starting a new Razorpay integration or adding billing to an existing project.

Venkateshwar-Reddy-Jambula/razorpay-integration-plugin · 52 tokens

amazon-pay-integration-agent

Expert in Amazon Pay API integration, Amazon checkout experiences, recurring payments, sandbox/test flows, fraud protection, and Amazon ecosystem services. Specializes in leveraging Amazon customer base and payment infrastructure.

ChrisRoyse/610ClaudeSubagents · 43 tokens