scaledockhq/scaledock-skills/agentic-commerce-protocol
Claude Code and agent skill by scaledockhq/scaledock-skills
- community
Checking that the SKILL.md file is still in the repository.
Agentic Commerce Protocol (ACP) 2026-04-17: build and review agent checkouts with merchants and delegated payment tokens. Covers Agentic Checkout (create, update, retrieve, complete and cancel checkout_sessions, status, line_items, fulfillment options, totals in minor units, messages, capability negotiation, payment handlers, 3DS), Delegate Payment (vault tokens with one_time allowances and risk signals), order webhooks signed with Merchant-Signature, the Error model, Idempotency-Key, API-Version, Signature and Timestamp headers, /.well-known/acp.json discovery and the MCP binding. Targets ACP 2026-04-17; upgrades from 2026-01-30, 2026-01-16, 2025-12-12 and 2025-09-29, and tracks spec/unreleased. Use when an AI agent must buy from a merchant, a merchant exposes checkout to agents, or a payment provider vaults agent payment credentials. Triggers: acp, agentic commerce, agentic checkout, delegate payment, checkout_sessions, agenticcommerce.dev.
Install
npx vskill@latest install scaledockhq/scaledock-skills/agentic-commerce-protocolSKILL.md
The same SKILL.md was published earlier as scaledockhq/scaledock-skills/agentic-commerce-protocol.
Agentic Commerce Protocol (ACP)
The Agentic Commerce Protocol is an open, Apache 2.0 specification, published in the agentic-commerce-protocol/agentic-commerce-protocol repository and at agenticcommerce.dev, that lets an AI agent check out with a merchant for a buyer: the merchant exposes checkout session endpoints and stays the merchant of record, and a payment service provider (PSP) issues a delegated, allowance-bound token for the buyer's card. The repository marks the protocol beta. This skill pins ACP 2026-04-17 at commit 7fdd78d and produces a merchant endpoint, an agent client, a Delegate Payment service or a review that meets its MUST-level rules.
Follow the workflow below step by step. Every rule here comes from a source in Sources, with the section it cites. RFC rules cite the RFC and section (for example "Checkout RFC §6.1"); schema rules name the schema in the pinned OpenAPI or JSON Schema file (for example "checkout schema Error"). When a rule and the pinned source disagree, the source wins; when the source has a newer revision than the pin, follow the refresh steps.
Inputs (fill in, or ask before starting)
- Role: merchant (serves checkout endpoints and sends order webhooks), agent (calls checkout, calls Delegate Payment, receives webhooks), or payment service provider (serves Delegate Payment). A seller platform hosting many merchants plays the merchant role for each.
- Surfaces: Agentic Checkout, Delegate Payment, order webhooks, and optionally discovery (
/.well-known/acp.json), carts and the MCP binding. - Payment handlers: which handlers the merchant advertises (for example
dev.acp.tokenized.card), and whether each setsrequires_delegate_payment. - Interventions: whether 3DS or other interventions can be required, and what the agent can display.
- Target version: ACP 2026-04-17 (current, the default). ACP 2026-01-30, ACP 2026-01-16, ACP 2025-12-12 and ACP 2025-09-29 are legacy: each is deprecated by the next release, so read and upgrade from them, never author them. ACP unreleased (
spec/unreleased/) is a preview (posture: track): never send it asAPI-Version. Agentic Checkout and Delegate Payment share the one API version. See `references/versions.md`. - Revision: the pinned commit in Sources, unless the user names another.
- Sources: when refreshing this skill or when a rule looks out of date, list
spec/andchangelog/in the repository for a new dated folder, read its changelog andchangelog/unreleased/, then re-read every URL in Sources. Update the pins and bump the version.
Invariants
- Version on every request. Clients MUST send
API-Version, and servers MUST validate it; rejections SHOULD be400withsupported_versions(Checkout RFC §2.1; Delegate Payment RFC §2.1). - Bearer auth over TLS 1.3.
Authorization: Bearer <token>is required, all endpoints MUST use HTTPS and JSON, and TLS 1.3 MUST be used (Checkout RFC §3.1 and §7; Delegate Payment RFC §6). - Idempotency on every POST. Clients MUST send
Idempotency-Key; servers scope it to identity plus path, reject a missing key with400 idempotency_key_required, replay identical bodies with the original status, answer422 idempotency_conflictand409 idempotency_in_flight, never cache 5xx, and keep keys at least 24 hours (Checkout RFC §6; Delegate Payment RFC §5). - No double side effects. A replay MUST NOT re-execute payment capture, inventory reservation or vault token creation (Checkout RFC §6.3; Delegate Payment RFC §5.3).
- Authoritative state. Every checkout response returns the full session; create returns
201, and complete MUST create an order and returnstatus: completedwithorder.id,checkout_session_idandpermalink_url(Checkout RFC §2.2 and §4.4). - Integer minor units. All amounts MUST be integers in minor units (Checkout RFC §3.1).
- Capabilities both ways. Agents MUST send
capabilitieson create; merchants MUST return them on every session with the intersection ofinterventions.supported, and MUST NOT rely only on agent-declared capabilities for security (Capability Negotiation RFC §6.2 and §7.1). - 3DS is not skippable. In
authentication_required, the agent MUST sendauthentication_resulton complete; without it the merchant MUST return 4XXrequires_3dswithparam: $.authentication_result(Checkout RFC §4.4). - Tokens stay inside the allowance. A delegated token MUST ONLY be usable within its
one_timeallowance (max_amount,currency,checkout_session_id,merchant_id) and MUST be invalid at or afterexpires_at(Delegate Payment RFC §2.5 and §3.5). - No card data in logs. Card handling MUST follow PCI DSS, and logs MUST NOT contain full PAN or CVC (Delegate Payment RFC §6; Checkout RFC §7).
- Flat errors. Errors are flat
{type, code, message, param?}objects, never wrapped (Checkout RFC §3.1; Delegate Payment RFC §2.6). - Signed, full-order webhooks. Order events MUST carry
Merchant-Signature: t=<unix_seconds>,v1=<hex>(HMAC-SHA256 overtimestamp.raw_body) and the fullOrder; receivers return 401 on any signature failure and MUST accept unknown event types (Webhooks OpenAPI,postOrderEvents,WebhookEvent). - Safe markdown.
markdowncontent MUST be CommonMark 0.31.2 without raw HTML, and agents MUST render with raw HTML disabled or sanitized (Checkout RFC §5.1).
Workflow
- Pick the version and role. Confirm the role, surfaces and target from Inputs; record the peers' versions.
-> `references/versions.md` ✓ The design names ACP 2026-04-17 and the pinned commit, and no legacy or unreleased shapes are emitted.
- Build the HTTP layer. Add Bearer auth,
API-Versionvalidation withsupported_versions, idempotency middleware,Request-Idecho, optionalSignatureandTimestampverification, and TLS 1.3.
-> `references/security-and-headers.md` ✓ A POST without Idempotency-Key gets 400; the same key with a different body gets 422; a wrong version gets 400 with supported_versions.
- Implement the checkout session. Create, update, retrieve, complete and cancel, returning the full session with status, line items, totals, fulfillment options, messages, links and capabilities.
-> `references/checkout.md` ✓ Every response validates against the 2026-04-17 CheckoutSession schema, and the agent can render it without computing anything.
- Negotiate capabilities and payment handlers. Intersect interventions, advertise
capabilities.payment.handlers[]withpspandconfig.merchant_id, and acceptpayment_datawithhandler_idandinstrument.
-> `references/checkout.md` ✓ An agent that cannot do a required intervention gets intervention_required before payment.
- Delegate the payment. For handlers with
requires_delegate_payment, the agent calls/agentic_commerce/delegate_paymentwith the card, allowance and risk signals; the PSP returns201with a token; the merchant redeems it on complete.
-> `references/delegate-payment.md` ✓ The allowance is one_time and names this checkout_session_id and the handler's merchant_id, and the token fails after expires_at.
- Handle authentication. Return
authentication_requiredwithauthentication_metadatawhen 3DS is needed; the agent returnsauthentication_resulton complete.
-> `references/checkout.md` ✓ A complete without authentication_result in that state gets requires_3ds.
- Emit and receive order webhooks. Sign with
Merchant-Signature, send the fullOrder, verify within the timestamp window.
-> `references/webhooks-and-errors.md` ✓ A tampered body or a timestamp older than the window gets 401 invalid_signature.
- Map errors. Choose
ErrorversusMessageError, and the status codes, for every failure path; map to MCP-32000if the MCP binding is used.
-> `references/webhooks-and-errors.md` ✓ No 2xx carries an Error, and no recoverable buyer problem is returned as a 4xx.
- Upgrade (only when asked). Follow each checklist from the source version to ACP 2026-04-17.
-> `references/versions.md` ✓ The upgraded integration passes the Verify list below and charges the same amounts.
Verify before done
- [ ] Requests and responses validate against the 2026-04-17 JSON Schema and OpenAPI files, and any disagreement between them is noted.
- [ ]
API-Versionis required; version errors return 400 withsupported_versions, newest first. - [ ] Every POST requires
Idempotency-Key; replay returns the stored status and body withIdempotent-Replayed: true; 409 carriesRetry-After; 5xx is not stored. - [ ] Create returns 201; retrieve returns 404 for unknown ids; cancel returns 405 on completed or canceled sessions.
- [ ] Complete returns
status: completedwithorder.id,order.checkout_session_idandorder.permalink_url. - [ ] All money fields are integers, and a
totalentry is present when calculable. - [ ]
capabilitiesis sent on create and returned on every session. - [ ] Delegate Payment rejects any credential type other than
card, requires the allowance fields, and returns201withid,createdandmetadata. - [ ] No log, trace or error message contains a full PAN or CVC.
- [ ] Webhooks carry a valid
Merchant-Signature, the receiver enforces the window, anddatais a fullOrderwithtype: "order". - [ ] Markdown content is rejected or sanitized when it contains raw HTML.
- [ ] Nothing from
spec/unreleased/is sent to a 2026-04-17 peer.
Reference index
- `references/versions.md`: every ACP version with its status, why older versions are legacy, what each changed, upgrade checklists, and the unreleased preview. Load for steps 1 and 9.
- `references/checkout.md`: endpoints, the session object, status values, line items, fulfillment, totals, messages, capability negotiation, payment handlers, 3DS, cancel, orders, discovery, carts, the MCP binding, and schema drift.
- `references/delegate-payment.md`: roles, the request (card, allowance, risk signals, billing address), the response, token scope and expiry, errors, and common mistakes.
- `references/security-and-headers.md`: request and response headers, Bearer auth,
SignatureandTimestamp, version negotiation, the full idempotency rules, TLS and PCI, markdown safety, capability and discovery hardening. - `references/webhooks-and-errors.md`: order webhook endpoint,
Merchant-Signature, payload rules,ErrorversusMessageError, error types and codes, status codes, retries, and MCP error mapping.
Related skills
ucp, the Universal Commerce Protocol, another protocol for agent checkout:npx skills add ScaleDockHQ/scaledock-skills --skill ucpap2, Agent Payments Protocol mandates for authorizing agent payments:npx skills add ScaleDockHQ/scaledock-skills --skill ap2x402, HTTP 402 payments for agents:npx skills add ScaleDockHQ/scaledock-skills --skill x402openapi, for reading and validating the ACP OpenAPI 3.1 files:npx skills add ScaleDockHQ/scaledock-skills --skill openapihttp-message-signatures, RFC 9421 signatures, which ACP's ownSignatureheader is not:npx skills add ScaleDockHQ/scaledock-skills --skill http-message-signaturesmcp-authorization, for authenticating an ACP MCP server:npx skills add ScaleDockHQ/scaledock-skills --skill mcp-authorization
Sources
Status uses the publishing body's own maturity term. Checked is the date the source was last read.
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/agentic-commerce-protocol/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/scaledockhq/scaledock-skills/agentic-commerce-protocol)