/ucp-agentic-commerce:ucp-cartfrom ucp-agentic-commerce
Implements the UCP Cart capability (dev.ucp.shopping.cart) — a lightweight CRUD surface for collecting line items before purchase intent, plus conversion to Checkout. Covers create/get/update/cancel operations, full-replacement update semantics, and idempotent checkout conversion.
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: Web-search site:ucp.dev specification shopping cart and fetch the page for the exact Cart schema, operation names, and binding details. Also fetch https://ucp.dev/latest/schemas/shopping/cart.json for the authoritative JSON Schema. Field names and required-ness change between spec versions — never write the schema from memory.
Checkout carries payment handler configuration, buyer commitment, and a status lifecycle. That is overhead a buyer does not need while still browsing. Cart is the lightweight half: collect items, get estimated totals, share a link — with no payment configuration and no status machine.
The canonical progression is:
cart session → checkout session → order
Cart handles exploration. Checkout enforces commitment.
| Operation | Purpose |
|---|---|
| Create Cart | Initialize a session with line items and optional buyer / context data |
| Get Cart | Read current state; returns not_found once expired or cancelled |
| Update Cart | Full replacement of cart contents — not a patch |
| Cancel Cart | Terminate the session |
Update Cart replacing rather than merging is the detail most implementations get wrong. Send the complete intended line-item set every time.
id — cart identifierline_items — entries with quantity (in the authoritative sale basis), unit price, and line totalscontext — localization signals: country, region, postal code, locationbuyer — optional name, email, phonecurrency — ISO 4217totals — estimated subtotal, tax, fulfillment, discountsmessages — validation warnings and informational noticescontinue_url — handoff link for session recoveryexpires_at — optional expiryCarts are binary: they exist or they do not. There is no incomplete → completed lifecycle, and totals stay estimates until checkout conversion. Treat any amount read from a cart as indicative only — never as something to charge against.
Create a checkout referencing cart_id. Two rules govern this:
cart_id and expect them to merge.After checkout completion the business may clear the cart, driven by TTL or its own business logic. Do not depend on the cart surviving.
Cart is exposed over REST, MCP, and Embedded. It is not an A2A capability. Negotiate it like any other capability — see ucp-dev-patterns for the intersection algorithm.
Create Cart idempotent on your side too; agents retry aggressively.continue_url — it is what makes a cart shareable and recoverable, which is the main reason Cart exists as a separate capability.messages rather than failing the whole request, so an agent can repair one line item without rebuilding the cart.expires_at deliberately and honour it in Get Cart with not_found.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
23 skills in this plugin
/ucp-ap2-mandatesImplement UCP AP2 Mandates extension — cryptographic payment mandates for fully autonomous agent commerce using SD-JWT credentials, merchant authorization signatures, and the Agent Payments Protocol. Use when building autonomous agent payment flows without human-in-the-loop./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-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./ucp-checkout-a2aImplement UCP Checkout over the A2A (Agent-to-Agent) binding — enable autonomous agent-to-agent commerce using Agent Cards and structured message parts. Use when building agent-to-agent commerce flows./ucp-checkout-mcpImplement UCP Checkout over the MCP (Model Context Protocol) binding — expose checkout operations as MCP tools for AI agents. Use when building an MCP server that AI agents like Claude or Gemini can call for commerce, or when integrating with Shopify's MCP endpoint./ucp-checkout-restImplement UCP Checkout over the REST binding — create, get, update, complete, and cancel checkout sessions with proper headers, idempotency, status transitions, and error handling. Use when building REST-based UCP checkout endpoints or clients.npx claudepluginhub orcaqubits/agentic-commerce-skills-plugins --plugin ucp-agentic-commerceOther plugins' skills for the same job