From ap2-agentic-payments
Implements AP2 Intent Mandate for pre-authorizing autonomous agent purchases using user-signed constraints, expiry, merchants, SKUs, and Python-typed schema.
npx claudepluginhub orcaqubits/agentic-commerce-skills-plugins --plugin ap2-agentic-paymentsThis skill is limited to using the following tools:
**Fetch live docs**:
Guides Next.js Cache Components and Partial Prerendering (PPR) with cacheComponents enabled. Implements 'use cache', cacheLife(), cacheTag(), revalidateTag(), static/dynamic optimization, and cache debugging.
Migrates code, prompts, and API calls from Claude Sonnet 4.0/4.5 or Opus 4.1 to Opus 4.5, updating model strings on Anthropic, AWS, GCP, Azure platforms.
Automates semantic versioning and release workflow for Claude Code plugins: bumps versions in package.json, marketplace.json, plugin.json; verifies builds; creates git tags, GitHub releases, changelogs.
Fetch live docs:
https://ap2-protocol.org/specification/ for the Intent Mandate schemasite:github.com google-agentic-commerce AP2 intent mandate for type definitions and sampleshttps://ap2-protocol.org/topics/core-concepts/ for Intent Mandate conceptual detailsap2 protocol intent mandate human-not-present autonomous for implementation guidesThe Intent Mandate is the VDC for human-not-present transactions. It captures the user's pre-authorized shopping intent with defined constraints, allowing the Shopping Agent to act autonomously within those bounds after the user has left the session.
The Shopping Agent creates the Intent Mandate based on the user's expressed intent. The agent captures the user's requirements and formalizes them into a structured mandate.
The User signs the Intent Mandate before going offline:
The spec describes several conceptual properties for the Intent Mandate (payer/payee identities, authorized payment method categories, risk payload, shopping intent, etc.). The actual V0.1 implementation uses the following IntentMandate Python type fields:
user_cart_confirmation_required (bool) — Whether the user must confirm the cart before purchasenatural_language_description (str) — The user's actual words / shopping intent, captured for accountabilitymerchants (Optional[List[str]]) — Optional list of preferred or allowed merchantsskus (Optional[List[str]]) — Optional list of specific SKUs the agent may purchaserequires_refundability (Optional[bool]) — Whether the user requires the purchase to be refundableintent_expiry (str, ISO 8601) — When this authorization expires (e.g., "2025-09-02T12:00:00Z")Note: Use intent_expiry (an ISO 8601 timestamp) rather than a generic "TTL" concept.
Additional conceptual fields described in the specification (but not necessarily present in V0.1 types) include:
| Aspect | Cart Mandate | Intent Mandate |
|---|---|---|
| Scenario | Human-present | Human-not-present |
| Created by | Merchant | Shopping Agent |
| Specificity | Exact items, prices, totals | Categories, constraints, intent |
| Payment method | Specific tokenized method | Authorized categories |
| User presence | User present at signing | User signs before leaving |
| Expiration | Transaction-scoped | intent_expiry (ISO 8601 timestamp) |
The Intent Mandate defines boundaries the agent must stay within:
intent_expiry — Authorization expires at the specified ISO 8601 timestampThe merchant can escalate a human-not-present flow to human-present:
intent_expiry values — don't leave Intent Mandates valid indefinitelyFetch the specification for exact Intent Mandate fields, constraint formats, and TTL semantics before implementing.