Acp dev patterns

From OrcaQubits/agentic-commerce-skills-plugins · View interactive version

Acp dev patterns is an AI agent skill from the GitHub repository OrcaQubits/agentic-commerce-skills-plugins. Cross-cutting ACP development patterns — idempotency, error handling, 3D Secure flows, request signing, rate limiting, monitoring, and security best practices. Use when designing architecture or solving production concerns.

How to use this skill

Skill file

ACP Development Patterns

Before writing code

Fetch live docs:

Pattern: Idempotency

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

Server-side implementation:

Client-side implementation:

Pattern: Error Handling

ACP uses a flat error structure:

{type, code, message, param}

Retry strategy:

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:
  1. Merchant processes the authenticated payment

Handle authentication timeouts and failures gracefully.

Pattern: Request Signing

For request integrity verification:

Pattern: Webhook Delivery

Merchant → Agent webhook best practices:

Pattern: API Versioning

Pattern: Rate Limiting

Pattern: Monetary Amount Safety

Pattern: Monitoring & Observability

Pattern: Security Checklist

Fetch the latest spec and production guide for current error codes, header requirements, and security recommendations before implementing.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.