ap2-cart-to-payment-chain

ap2-cart-to-payment-chain is a skill for Claude Code, Codex from PostOakLabs/ainumbers. It costs 51 tokens per session (585 once invoked), scanned A, original, MIT.

A payment-evidence workflow for an agent-led purchase. It creates and validates a spending mandate, links the cart events together, and connects them to an x402 settlement, a protocol for machine-to-machine payments.

In plain words
What is it for?
Use it to test spending caps and expiry, validate the evidence chain, run a tampering test, and produce a note for a payments team. It does not prove that the merchant delivered the goods.
Why use it?
It helps detect changes to signed cart details and shows whether a settlement is tied to the approved mandate and cart history.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to test spending caps and expiry, validate the evidence chain, run a tampering test, and produce a note for a payments team. It does not prove that the merchant delivered the goods.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/postoaklabs/ainumbers/ap2-cart-to-payment-chain
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.

Any agent
npx skills add PostOakLabs/ainumbers --skill ap2-cart-to-payment-chain
Clone the repo
git clone --depth 1 https://github.com/PostOakLabs/ainumbers

Made for: Claude Code, Codex.

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-cart-to-payment-chain

README.md
[![agentmods](https://agentmods.dev/badge/skills/postoaklabs/ainumbers/ap2-cart-to-payment-chain/github.svg)](https://agentmods.dev/skills/postoaklabs/ainumbers/ap2-cart-to-payment-chain)
Your own site
<a href="https://agentmods.dev/skills/postoaklabs/ainumbers/ap2-cart-to-payment-chain"><img src="https://agentmods.dev/badge/skills/postoaklabs/ainumbers/ap2-cart-to-payment-chain/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.

agentmods 80×15 button for ap2-cart-to-payment-chain

Your own site · 80×15
<a href="https://agentmods.dev/skills/postoaklabs/ainumbers/ap2-cart-to-payment-chain"><img src="https://agentmods.dev/badge/skills/postoaklabs/ainumbers/ap2-cart-to-payment-chain.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 51 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 585 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00051 $0.00585
Opus 5.5 $0.00020 $0.00234
Sonnet 5.5 $0.00010 $0.00117
Haiku 4.5 $0.00005 $0.00059

Measured 15d ago against content hash 56cd81595ffb, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

ap2-cart-to-payment-chain 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 15d 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.

skills/ap2-cart-to-payment-chain/SKILL.md · 41 lines

What it actually says

AP2 cart to payment chain

Build an AP2 mandate, validate it, hash-chain the cart, and correlate it with an x402 settlement.

Prompt

Walk one synthetic purchase through the full AP2 evidence chain.

  1. Call draft_ap2_mandate_credential for a synthetic cart (two line items, a spend cap, an expiry). Record the credential id.
  2. Call validate_ap2_mandate_credential on the draft. Confirm the signature structure and the cap/expiry fields; record pass/fail.
  3. Tamper-test: change one line item's price in the signed cart, re-validate, and confirm the validator rejects it. Revert.
  4. Call build_ap2_cartmandate_hashchain over the cart events. Record the chain root.
  5. Call validate_ap2_mandate_chain on the chain. Record pass/fail and which links are covered.
  6. Call simulate_x402_flow for the settlement, then correlate_ap2_cartmandate_x402 to bind the settlement to the mandate chain. Record the correlation verdict.
  7. build_session_receipt over every hash; give me the ledger link.
  8. Write the note for the payments team: which claims the chain proves (mandate integrity, cart binding, settlement correlation), what it does not prove (merchant delivery), and the ledger link. Call shape: every ChainGraph node tool takes its arguments nested under one wrapper object, e.g. {"policy_parameters": { ... }}; flat arguments are discarded by schema validation. If a named tool is not in your tool list, call call_tool with { "name": "", "arguments": { … } }. It runs the same validation and returns the same receipt.

How to run

Connect an MCP-capable host to https://mcp.ainumbers.co/mcp, then give the prompt above to the assistant.

Use synthetic inputs only. Never paste personal or production data.

Verify what came back

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. 15d ago Changed 56cd81595ffb
  2. 19d ago First seen · 41 lines · 51 tokens per session scan A 5d648d64a23d

Subscribe to this mod's changes

ap2-cart-to-payment-chain is a skill published in the GitHub repository PostOakLabs/ainumbers (11 stars, last pushed yesterday), licensed MIT. It adds 51 tokens to every session and 585 once invoked, about $0.0002 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-09-27.

Related

Other skills, from other repositories

starknet-tongo

Confidential ERC20 payments on Starknet using Tongo protocol. Fund, transfer, withdraw, and rollover encrypted token balances with zero-knowledge proofs. Use when the user needs privacy-preserving transactions, confidential payments, encrypted balances, or auditable private transfers on Starknet.

keep-starknet-strange/starknet-agentic · 61 tokens

kb-crypto-adgm-sboghossian

Use when advising on virtual asset regulation in the Abu Dhabi Global Market (ADGM), including the FSRA Crypto Asset Regulatory Framework (in force since 2018 — the MENA region's first), ACASP licensing, Accepted Crypto Assets list, token issuance, custody requirements, AML obligations, stablecoin regime, and…

ThomasMoreAI/legal-skills-open · 109 tokens

kb-crypto-vara-dubai-sboghossian

Use when advising on virtual asset regulation in Dubai under VARA (Virtual Assets Regulatory Authority), including license categories (advisory, brokerage, custody, exchange, lending, payments, issuance), the Rulebook suite (Company, Compliance and Risk, Technology, Market Conduct, Marketing, Virtual Asset Activities…

ThomasMoreAI/legal-skills-open · 118 tokens

fintech-expert

Expert in financial technology, payment processing, open banking APIs, PSD2, blockchain in finance, robo-advisors, and RegTech. Use when the user mentions payments, open banking, PSD2, blockchain, cryptocurrency, or robo advisor, or when the task involves Payment Processing, Blockchain in Finance, Payment Security, or…

personamanagmentlayer/pcl · 73 tokens

risk-assessment

Deterministic heuristic risk scoring using a four-factor weighted model (Geographic 30%, Customer 35%, Product 25%, Channel 10%) aligned with Basel III, EBA Guidelines, FATF standards, and FinCEN guidance. Bands: LOW (0-20), MEDIUM (21-60), HIGH (61-80), CRITICAL (81-100).

vyayasan/kyc-analyst · 81 tokens

CronusCapital

Cronus is an autonomous, self-sustaining market-intelligence agent on the Arc network. It reasons over live market data with a real LLM, sells its signals via x402, spends on upstream data, settles on-chain in native USDC, and reports its own P&L - all non-custodially (it never holds your private key).

Artem1981777/CronusCapital · 0 tokens