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.
npx skills add Tyler-R-Kendrick/agent-skills --skill ap2git clone --depth 1 https://github.com/Tyler-R-Kendrick/agent-skillsWrote 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.
[](https://agentmods.dev/skills/tyler-r-kendrick/agent-skills/ap2)<a href="https://agentmods.dev/skills/tyler-r-kendrick/agent-skills/ap2"><img src="https://agentmods.dev/badge/skills/tyler-r-kendrick/agent-skills/ap2/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.
<a href="https://agentmods.dev/skills/tyler-r-kendrick/agent-skills/ap2"><img src="https://agentmods.dev/badge/skills/tyler-r-kendrick/agent-skills/ap2.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00086 | $0.01030 |
| Opus 5.5 | $0.00034 | $0.00412 |
| Sonnet 5.5 | $0.00017 | $0.00206 |
| Haiku 4.5 | $0.00009 | $0.00103 |
Grade A, and why
ap2 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 2mo 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.
How it starts
The opening of the file, as written. The whole thing — 91 lines — stays where its author put it; the contents beside it link to each section on GitHub.
AP2 — Agent Payments Protocol
Overview
AP2 is an open protocol from Google for secure, interoperable AI-driven commerce. It provides a common language for transactions between agents and merchants, preventing a fragmented payments ecosystem. AP2 is designed as an extension for A2A and MCP, adding a secure commerce layer on top of agent communication.
Core Concepts
Intent Mandate
Captures the conditions under which an AI agent can make a purchase on behalf of the user:
- Budget limits (per-transaction, daily, monthly)
- Allowed merchant categories
- Product type restrictions
- Time-based constraints
Cart Mandate
Captures the user's final, explicit authorization for a specific cart:
- Itemized list of products/services
- Total price and currency
- User's cryptographic signature (non-repudiable proof of intent)
- Payment method reference
Payment Flow
User Agent Merchant Payment Provider
│ │ │ │
│── "Buy X" ───►│ │ │
│ │── browse ─────►│ │
│ │◄── product ────│ │
│ │ │ │
│◄── confirm? ──│ │ │
│── approve ───►│ (Cart Mandate signed) │
│ │── purchase ───►│ │
│ │ │── charge ───────►│
│ │ │◄── receipt ──────│
│ │◄── receipt ────│ │
│◄── done ──────│ │ │
Key Design Principles
| Principle | Description |
|---|---|
| User control | Users set spending limits and approve purchases via signed mandates |
| Verifiable credentials | Cryptographic signatures provide non-repudiable proof of authorization |
| Protocol-agnostic payments | Supports pull methods (credit/debit cards) initially, with push methods (bank transfers, wallets) planned |
| Compliant by design | Built-in support for regulatory requirements (PCI, PSD2) |
What ships with it
10 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- AGENTS.md 3.9 KB
- metadata.json 710 B
- README.md 645 B
- rules/_sections.md 1.1 KB
- rules/_template.md 362 B
- rules/ap2-always-require-user-confirmation-cart-mandate-before.md 438 B
- rules/ap2-handle-partial-failures-gracefully.md 367 B
- rules/ap2-implement-ap2-as-a-payment-layer-on-top-of-a2a-or-mcp.md 382 B
- rules/ap2-set-conservative-intent-mandate-limits-initially-and-let.md 396 B
- rules/ap2-use-the-verifiable-credential-model-for-audit-trails.md 405 B
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.
- 2mo ago First seen · 91 lines · 86 tokens per session scan A 5ebbe0225c0c
ap2 is a skill published in the GitHub repository Tyler-R-Kendrick/agent-skills (13 stars, last pushed 5mo ago), licensed MIT. It adds 86 tokens to every session and 1,030 once invoked, about $0.0003 per session on Opus 5.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-31.
ap2 compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| ap2Tyler-R-Kendrick/agent-skills | Skill | 13 | 5mo ago | MIT | A | 86 | Claude Code |
| asc-ppp-pricingrorkai/app-store-connect-cli-skills | Skill | 1.1k | 2d ago | MIT | A | 45 | Claude Code |
| snaplii-cliSnaplii-Inc/agent-to-merchant-payments | Skill | 812 | 2d ago | Apache-2.0 | A | 184 | Claude Code |
| stripeCraftOS-dev/CraftBot | Skill | 402 | 2d ago | MIT | A | 79 | Claude Code, Codex |
| ai-slopwaybarrios/opencode-power-pack | Skill | 551 | 5d ago | MIT | A | 61 | Claude Code |
| stripemagnus919/agent-skills | Skill | 166 | 2d ago | MIT | A | 116 | Claude Code, Codex |
| asc-ppp-pricinghanamizuki/solopreneur | Skill | 156 | 4d ago | MIT | A | 45 | Claude Code |