skills/commercetools-api/SKILL.md
Production-tested patterns for commercetools cart/checkout, orders, payments, B2B, promotions, extensions, and subscriptions from a Platinum partner with 50+ live implementations.
npx skillsauth add ariessolutionsio/composable-skills commercetools-apiInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Progressive loading — only load what you need:
references/sdk-setup.mdreferences/cart-checkout.mdreferences/order-management.mdreferences/customer-management.mdreferences/extensions-subscriptions.mdreferences/promotions-pricing.mdreferences/b2b-patterns.mdreferences/search-discovery.mdreferences/performance.mdreferences/anti-patterns.mdMUST load the relevant reference file before writing commercetools API code. For SDK client setup, always start with references/sdk-setup.md.
| Pattern | File | Impact | |---------|------|--------| | Optimistic concurrency & version handling | references/sdk-setup.md | Every update/delete fails without correct version tracking | | Cart lifecycle & freeze before payment | references/cart-checkout.md | Price changes during checkout cause order failures | | Payment flow — never reuse/delete Payments | references/cart-checkout.md | Lost audit trail, double charges, PSP inconsistencies | | Extension timeout constraints (2s / 10s) | references/extensions-subscriptions.md | Entire API call fails on timeout — affects all clients | | Discount stacking & sort order | references/promotions-pricing.md | Unexpected pricing, revenue loss, customer complaints | | Direct Discounts block Discount Codes | references/promotions-pricing.md | Codes silently stop working when Direct Discounts exist |
| Pattern | File | Impact | |---------|------|--------| | Client setup & auth flows | references/sdk-setup.md | Wrong setup causes auth failures and token leaks | | Order state machines & returns | references/order-management.md | Invalid state transitions, incomplete fulfillment | | Customer auth & email verification | references/customer-management.md | Broken sign-up/login, unverified accounts | | Subscription idempotency & ordering | references/extensions-subscriptions.md | Duplicate side effects, stale data overwrites | | Business unit hierarchies & permissions | references/b2b-patterns.md | Security gaps, broken approval workflows | | Product Search API vs Query API | references/search-discovery.md | 10-100x slower queries on large catalogs | | N+1 queries & reference expansion | references/performance.md | Cascading latency on listing pages |
| Pattern | File | Impact | |---------|------|--------| | Tax mode configuration | references/cart-checkout.md | Failed order creation from incomplete tax data | | Approval rules & quote lifecycle | references/b2b-patterns.md | Blocked B2B purchasing workflows | | Connect application patterns | references/extensions-subscriptions.md | Deployment failures, resource constraint issues | | Pagination & query optimization | references/performance.md | Slow page loads, unnecessary API load | | Customer groups & address management | references/customer-management.md | Wrong pricing tiers, address data issues | | Faceting & search performance | references/search-discovery.md | Slow search responses, poor relevance |
| Anti-Pattern | File | Consequence | |-------------|------|-------------| | Creating a client per request | references/anti-patterns.md | Memory leaks, token exhaustion | | Not batching update actions | references/anti-patterns.md | Version conflicts under load | | Using /products instead of /product-projections | references/anti-patterns.md | 2x response payload size | | Polling instead of Subscriptions | references/anti-patterns.md | Wasted API quota, delayed detection | | Ignoring ConcurrentModification errors | references/anti-patterns.md | Silent data loss, corrupt state | | Expanding all references "just in case" | references/anti-patterns.md | Bloated responses, slow queries | | Creating empty carts for every visitor | references/anti-patterns.md | Millions of unused cart resources | | Not monitoring Subscription health | references/anti-patterns.md | Silent notification failures for 7 days |
Use this skill to understand the right pattern, then use the Developer MCP to look up exact field names and schemas, and the Commerce MCP for CRUD operations.
tools
Operator-side patterns for integrating Marketplacer into a composable commerce stack — GraphQL Operator API, per-seller order splits via Invoices, caller-shaped webhooks with HMAC, MPay deposit-and-reconcile payouts, Golden Product PIM sync, wholesale orders, additional charges, and Catalog Rules. Use when implementing or maintaining a Marketplacer marketplace behind any commerce platform (commercetools, Kibo, Scayle, etc.), any search engine, any PIM, OMS, or ERP. Triggers on Marketplacer, marketplace, multi-vendor, multi-seller, Advert, Seller, Invoice, Golden Product, MPay, Airwallex, Hyperwallet, Xero, RefundRequest, RemittanceAdvice, Remittance, Taxon, Prototype, Catalog Rule, marketplace commission, marketplace fees, marketplace operator, marketplace webhooks, paymentReferences. Consult this skill before writing code that talks to a Marketplacer instance, defines a Marketplacer webhook, or maps Marketplacer data into another system.
tools
Use for Kibo Subscription Commerce work — implementing recurring billing, configuring plans (evergreen, fixed-term, subscribe-and-save), managing subscriptions (pause, skip, swap, cancel), setting up dunning / retry for failed payments, handling cycles and continuity orders, building customer self-service portals, and understanding the Subscription-to-Order relationship. Triggers on Kibo Subscription, Kibo Subscription Commerce, subscriptionCreate, subscriptionUpdate, subscription cycle, subscription pause / skip / swap, subscription dunning, recurring billing Kibo, evergreen subscription, fixed-term subscription, subscribe and save, continuity order, payment recycling, subscription churn, subscription retention. Invoke for any Kibo Subscription question — API integration, implementation, configuration, debugging, or projecting subscription state into reporting/ERP.
development
Use for Kibo Order Management (OMS) implementation — design order routing strategies (DC-to-store fallback, location-based), implement fulfillment workflows (BOPIS, curbside pickup, ship-from-store), build RMA and returns processing, integrate inventory APIs with WMS (Refresh vs Adjust semantics), set up standalone-OMS behind Shopify / SFCC / custom storefronts, or import orders from external platforms. Triggers on Kibo OMS, Kibo Order Management, Kibo fulfillment, order routing, BOPIS, ship-from-store, fulfiller, fulfillment task, RMA, Kibo returns, Kibo inventory location, Kibo dropship, Kibo carrier, agentic order routing, standalone OMS. Covers routing rules, allocation logic, carrier integration, location capabilities, and the OMS-behind-non-Kibo-storefront pattern.
tools
Build, debug, and integrate Kibo Commerce eCommerce features — implement checkout/cart/catalog flows, troubleshoot cart and promotion issues, develop B2B portals, write API Extensions (Arc.js), configure Event Subscriptions, or connect to external PIMs/OMS/search. Covers OAuth, `x-vol-tenant`/`x-vol-site`/`x-vol-master-catalog` headers, tenant/site/catalog hierarchy, `@kibocommerce/rest-sdk`, REST vs GraphQL selection. Triggers on Kibo, Kibo Commerce, KiboCommerce, KiboSoftware, x-vol-tenant, x-vol-site, MasterCatalog, Kibo cart/checkout/catalog/storefront/B2B/promotions, API Extensions, Arc.js, Event Subscription, @kibocommerce/rest-sdk. Use whenever working with Kibo's commerce platform — implementing new features, debugging existing code, or integrating external systems.