mcpField
C
commercetools-api

commercetools-api

github.com/ariessolutionsioDevelopment135 installsUpdated 24w ago
Repository

About commercetools-api

A skill for developers building with the commercetools API, with topic-based references for SDK setup, carts, orders, customers, and more. It highlights implementation concerns such as version handling, checkout, and discounts, and is intended to be used alongside Developer MCP and Commerce MCP.

Key features

  1. 01Load topic-specific reference files
  2. 02Guide SDK client setup
  3. 03Cover cart and checkout flows
  4. 04Explain order and customer management
  5. 05Flag common anti-patterns and risks

Use cases

  1. 01Set up a commercetools SDK
  2. 02Implement cart, payment, or order flows
  3. 03Build customer and B2B features
  4. 04Review API code and debug issues

MCP support

The skill guides implementation patterns for the commercetools API. The README recommends Developer MCP for looking up fields and schemas, and Commerce MCP for CRUD operations.

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/ariessolutionsio/composable-skills --skill commercetools-api

After installing, type/commercetools-apiin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

references/
anti-patterns.md
b2b-patterns.md
cart-checkout.md
customer-management.md
extensions-subscriptions.md
order-management.md
performance.md
promotions-pricing.md
sdk-setup.md
search-discovery.md

Details

From the project README

commercetools API Development

Progressive loading — only load what you need:

  • Setting up the SDK or client? Load references/sdk-setup.md
  • Building cart or checkout? Load references/cart-checkout.md
  • Working with orders? Load references/order-management.md
  • Managing customers? Load references/customer-management.md
  • Setting up extensions or subscriptions? Load references/extensions-subscriptions.md
  • Implementing discounts? Load references/promotions-pricing.md
  • Building B2B features? Load references/b2b-patterns.md
  • Implementing search? Load references/search-discovery.md
  • Optimizing performance? Load references/performance.md
  • Code review or debugging? Load references/anti-patterns.md

MUST load the relevant reference file before writing commercetools API code. For SDK client setup, always start with references/sdk-setup.md.

CRITICAL Priority

PatternFileImpact
Optimistic concurrency & version handlingreferences/sdk-setup.mdEvery update/delete fails without correct version tracking
Cart lifecycle & freeze before paymentreferences/cart-checkout.mdPrice changes during checkout cause order failures
Payment flow — never reuse/delete Paymentsreferences/cart-checkout.mdLost audit trail, double charges, PSP inconsistencies
Extension timeout constraints (2s / 10s)references/extensions-subscriptions.mdEntire API call fails on timeout — affects all clients
Discount stacking & sort orderreferences/promotions-pricing.mdUnexpected pricing, revenue loss, customer complaints
Direct Discounts block Discount Codesreferences/promotions-pricing.mdCodes silently stop working when Direct Discounts exist

HIGH Priority

PatternFileImpact
Client setup & auth flowsreferences/sdk-setup.mdWrong setup causes auth failures and token leaks
Order state machines & returnsreferences/order-management.mdInvalid state transitions, incomplete fulfillment
Customer auth & email verificationreferences/customer-management.mdBroken sign-up/login, unverified accounts
Subscription idempotency & orderingreferences/extensions-subscriptions.mdDuplicate side effects, stale data overwrites
Business unit hierarchies & permissionsreferences/b2b-patterns.mdSecurity gaps, broken approval workflows
Product Search API vs Query APIreferences/search-discovery.md10-100x slower queries on large catalogs
N+1 queries & reference expansionreferences/performance.mdCascading latency on listing pages

MEDIUM Priority

PatternFileImpact
Tax mode configurationreferences/cart-checkout.mdFailed order creation from incomplete tax data
Approval rules & quote lifecyclereferences/b2b-patterns.mdBlocked B2B purchasing workflows
Connect application patternsreferences/extensions-subscriptions.mdDeployment failures, resource constraint issues
Pagination & query optimizationreferences/performance.mdSlow page loads, unnecessary API load
Customer groups & address managementreferences/customer-management.mdWrong pricing tiers, address data issues
Faceting & search performancereferences/search-discovery.mdSlow search responses, poor relevance

Common Anti-Patterns (Quick Reference)

Anti-PatternFileConsequence
Creating a client per requestreferences/anti-patterns.mdMemory leaks, token exhaustion
Not batching update actionsreferences/anti-patterns.mdVersion conflicts under load
Using /products instead of /product-projectionsreferences/anti-patterns.md2x response payload size
Polling instead of Subscriptionsreferences/anti-patterns.mdWasted API quota, delayed detection
Ignoring ConcurrentModification errorsreferences/anti-patterns.mdSilent data loss, corrupt state
Expanding all references "just in case"references/anti-patterns.mdBloated responses, slow queries
Creating empty carts for every visitorreferences/anti-patterns.mdMillions of unused cart resources
Not monitoring Subscription healthreferences/anti-patterns.mdSilent notification failures for 7 days

MCP Complement

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.

Comments

Markdown supported