acp-dev-patterns

acp-dev-patterns is a skill for Claude Code from OrcaQubits/agentic-commerce-skills-plugins. It costs 48 tokens per session (1,186 once invoked), scanned A, original, MIT.

A set of design patterns for building reliable Agentic Commerce Protocol (ACP) services, including safe retries, error handling, payment checks, request signing, rate limits, monitoring, and security.

In plain words
What is it for?
Use it when designing an ACP service or fixing production concerns such as retries, 3D Secure payment flows, authentication, rate limiting, and monitoring.
Why use it?
It helps prevent duplicate operations, unsafe requests, confusing failures, and production problems when an ACP service handles real traffic and payments.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the acp-agentic-commerce plugin — 17 skills, 1 agent shipped together

Good fit Use it when designing an ACP service or fixing production concerns such as retries, 3D Secure payment flows, authentication, rate limiting, and monitoring.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/orcaqubits/agentic-commerce-skills-plugins/acp-dev-patterns
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 OrcaQubits/agentic-commerce-skills-plugins --skill acp-dev-patterns
Clone the repo
git clone --depth 1 https://github.com/OrcaQubits/agentic-commerce-skills-plugins

Made for: Claude Code.

Or install acp-agentic-commerce, the plugin that ships this one along with the rest of its 17 skills, 1 agent.

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 acp-dev-patterns

README.md
[![agentmods](https://agentmods.dev/badge/skills/orcaqubits/agentic-commerce-skills-plugins/acp-dev-patterns/github.svg)](https://agentmods.dev/skills/orcaqubits/agentic-commerce-skills-plugins/acp-dev-patterns)
Your own site
<a href="https://agentmods.dev/skills/orcaqubits/agentic-commerce-skills-plugins/acp-dev-patterns"><img src="https://agentmods.dev/badge/skills/orcaqubits/agentic-commerce-skills-plugins/acp-dev-patterns/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 acp-dev-patterns

Your own site · 80×15
<a href="https://agentmods.dev/skills/orcaqubits/agentic-commerce-skills-plugins/acp-dev-patterns"><img src="https://agentmods.dev/badge/skills/orcaqubits/agentic-commerce-skills-plugins/acp-dev-patterns.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 48 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,186 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.00048 $0.01186
Opus 5.5 $0.00019 $0.00474
Sonnet 5.5 $0.00010 $0.00237
Haiku 4.5 $0.00005 $0.00119

Measured 1mo ago against content hash d8a060cf3cb2, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

acp-dev-patterns 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 1mo 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.

acp-agentic-commerce/skills/acp-dev-patterns/SKILL.md · 133 lines

How it starts

The opening of the file, as written. The whole thing — 133 lines — stays where its author put it; the contents beside it link to each section on GitHub.

ACP Development Patterns

Before writing code

Fetch live docs:

  • Checkout spec: Fetch https://developers.openai.com/commerce/specs/checkout/ for error codes and idempotency rules
  • Production guide: Fetch https://developers.openai.com/commerce/guides/production/ for operational requirements
  • Stripe integration: Web-search site:docs.stripe.com agentic-commerce for PSP-side patterns
  • Changelog: Web-search site:github.com agentic-commerce-protocol CHANGELOG for latest changes

Pattern: Idempotency

Every POST request MUST include Idempotency-Key (UUID v4, max 255 chars).

Server-side implementation:

  • Store key → response mapping for minimum 24 hours
  • Same key + identical body = replay original response, add Idempotent-Replayed: true header
  • Same key + different body = 422 idempotency_conflict
  • Key in flight = 409 idempotency_in_flight with Retry-After header
  • 5xx responses are NOT cached — retries treated as fresh requests

Client-side implementation:

  • Generate UUID v4 for each logical operation
  • Reuse the same key when retrying a failed request
  • Generate a new key for a genuinely new operation
  • Handle 409 by waiting per Retry-After then retrying

Pattern: Error Handling

ACP uses a flat error structure:

{type, code, message, param}
  • type: invalid_request | processing_error | service_unavailable
  • code: Well-known identifier (e.g., idempotency_conflict, invalid_card, rate_limit_exceeded)
  • message: Human-readable description
  • param: JSONPath (RFC 9535) to the offending field

Retry strategy:

  • 429 rate_limit_exceeded — Exponential backoff with jitter
  • 409 idempotency_in_flight — Wait per Retry-After header
  • 5xx — Retry with same idempotency key, exponential backoff
  • 4xx (except 429) — Do not retry, fix the request

Pattern: 3D Secure Authentication

When complete returns authentication_required:

  1. Extract 3DS challenge from the response
  2. Present challenge to the buyer (redirect or modal)
  3. Buyer completes authentication
  4. Call complete again with authentication_result:
    • three_ds_cryptogram
    • electronic_commerce_indicator
    • transaction_id
    • version
  5. Merchant processes the authenticated payment

Read the full file on GitHub · 133 lines

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. 1mo ago First seen · 133 lines · 48 tokens per session scan A d8a060cf3cb2

Subscribe to this mod's changes

acp-dev-patterns is a skill published in the GitHub repository OrcaQubits/agentic-commerce-skills-plugins (40 stars, last pushed 1mo ago), licensed MIT. It adds 48 tokens to every session and 1,186 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-08-30.

Related

Other skills, from other repositories

mppx

TypeScript SDK for the Payment HTTP Authentication Scheme. Handles 402 Payment Required flows with Tempo, Stripe, and other payment methods. Use when integrating payments or mppx into a client or server application.

internet-court/internet-court-skill · 45 tokens

archestra-dev-frontend

Use when modifying Archestra frontend Next.js/React code, UI components, forms, TanStack Query hooks, generated API client usage, frontend copy, or documentation links.

archestra-ai/archestra · 40 tokens

archestra-dev-testing

Use for test selection and quality across backend, frontend, and e2e; load its backend reference for Vitest projects, mocking, DB fixtures, and performance.

archestra-ai/archestra · 38 tokens

managing-archestra-releases

Runs rolling beta releases, stable patches, and complete stable-line cutovers. Use when backporting fixes, cutting or retiring release branches, configuring release protections, testing artifacts, recovering failed runs, or approving releases.

archestra-ai/archestra · 51 tokens

archestra-dev-llm-providers

Use when adding an LLM provider, changing proxy adapters or provider routes, fixing streaming/tool-call translation bugs, editing model fetchers or model handling, or touching provider credentials/enums and model constants.

archestra-ai/archestra · 49 tokens

migrate-to-archestra

Migrate an existing agentic PoC/pilot (Claude Code project files, MCP configs, hooks, local tools, openclaw config, or similar hand-rolled setup artifacts) into an Archestra instance. Use when the user wants to move, port, or convert an existing agentic setup into an Archestra pilot.

archestra-ai/archestra · 73 tokens