Skip to main content
skill CX Codex

headless-checkout-proxy — Claude Code skill: setup and features

Guides agents when building cart and checkout flows for headless VTEX via a BFF. Ensures safe OrderForm proxying and strict PCI DSS compliance.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add vtex/skills --skill headless-checkout-proxy -a claude-code
Open on GitHub

What headless-checkout-proxy does

This skill enforces architectural boundaries for headless VTEX storefronts. Every interaction with the Checkout API (/api/checkout/...) must pass through the backend-for-frontend layer. Saving orderFormId or session cookies inside localStorage is forbidden; they must stay inside server-side storage to protect customer profile and address data.

For checkout completion, the rule enforces a three-stage sequence: place order, submit payment, and process transaction. Credit card payloads must bypass the BFF entirely. Browsers send sensitive card fields directly to vtexpayments.com.br, keeping the merchant server outside the scope of strict PCI DSS audits.

Values like orderGroup must travel between flow steps via request bodies rather than req.session. When running multiple BFF replicas, pod restarts or routing mismatches drop in-memory session data, triggering unwanted 400 errors.

What it helps with

  • proxy VTEX Checkout API calls safely through a backend layer
  • keep orderFormId and session cookies out of browser storage
  • route raw credit card data straight to vtexpayments.com.br
  • pass orderGroup across checkout steps in multi-replica deployments

Example prompts for the agent

  • Write a BFF endpoint to attach shipping data to the current VTEX OrderForm
  • Implement the 3-step checkout flow with direct card submission to VTEX payments
  • Show how to manage OrderForm ownership cookies on the server

How to install headless-checkout-proxy

1Skills CLI (Vercel)

npx skills add vtex/skills --skill headless-checkout-proxy -a claude-code

2Manually: put the files in place

~/.claude/skills/headless-checkout-proxy/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/headless-checkout-proxy/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about headless-checkout-proxy

How to install headless-checkout-proxy in Claude Code?

Run npx skills add vtex/skills --skill headless-checkout-proxy -a claude-code. The file will be placed in ~/.claude/skills/headless-checkout-proxy/SKILL.md.

What does headless-checkout-proxy do?

It provides rules for building VTEX cart and checkout integrations through a dedicated BFF. It governs OrderForm state transitions, input validation, and payment security boundaries.

Why do credit card details bypass the BFF?

PCI DSS isolation requires keeping cardholder data off merchant servers. The client sends payment details directly to vtexpayments.com.br, while the BFF handles only order placement and final callback processing.

Similar skills

All skills for Backend and APIs →

From the same set38

vtex-io-service-apps Guides backend service development under node/ in VTEX IO apps. Configures routes, middleware chains, and @vtex/api clients for background tasks or APIs. CX Codex +1 1,200installs headless-caching-strategy Sets caching rules and TTL values for headless VTEX storefronts. Keeps public endpoints fast while preventing accidental caching of sensitive shopper data. CX Codex +1 1,100installs headless-intelligent-search Build VTEX Intelligent Search into a headless storefront, with facets, autocomplete and search analytics. Useful when a custom frontend needs product discovery. CX Codex +1 1,100installs payment-idempotency A skill for payment connector code that keeps Gateway retries from hitting the acquirer twice and charging the customer again. CX Codex +1 1,100installs headless-bff-architecture Design a VTEX BFF for headless storefronts and keep private APIs, credentials, and shopper tokens out of browser code. CX Codex +1 1,100installs vtex-io-observability-and-ops Adds structured logs and client metrics to VTEX IO backend services, so production failures are easy to trace before and after a release. CX Codex +1 1,100installs faststore-storefront Guides AI coding agents through VTEX FastStore storefront development: React 18 components, section overrides, SCSS styling constraints, and CMS schema sync. CX Codex +1 1,100installs vtex-io-service-paths-and-cdn Picks the right path prefix in service.json and matches Cache-Control to the data, so edge caching does not serve one shopper's payload to another. CX Codex +1 1,100installs

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor