# Commercetools commerce patterns

> Commercetools commerce patterns is an open-source agent skill for e-commerce. Guides agents through commercetools pricing, discount, shipping, tax, payment and catalog. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/commercetools/commercetools-ai-plugins/tree/main/skills/commercetools-commerce-patterns
- **Repository:** https://github.com/commercetools/commercetools-ai-plugins
- **GitHub stars:** 6
- **License:** CC-BY-4.0
- **Skill name:** commercetools-commerce-patterns
- **Collection:** https://github.com/commercetools/commercetools-ai-plugins
- **Categories:** [e-commerce](https://ai-powered.com/categories/e-commerce)
- **Listing updated:** 2026-12-04

## About

This skill gives an agent a reference library for commerce-domain questions that do not depend on a specific front end. It covers customer group and channel-based pricing, high-precision money, discount stacking and sort order, discount groups, shipping predicates and cart score tiers, tax modes, payment object modeling, Import API batching, catalog and ProductType design, and B2B flows such as business units, quotes and approval rules.

Before answering, the agent is directed to run a bundled Node script that searches commercetools documentation, and it can also fetch GraphQL or OpenAPI schema fragments for a given resource. The answers are then grounded in a set of topic reference files and a list of priority rules, such as never marking a payment transaction successful before PSP confirmation and always using the as-associate API chain for B2B writes.

The skill expects a commercetools project context for the documentation search when available, and it uses JavaScript scripts that run through Node.

## When your agent uses it

> Surface-independent commerce domain logic — pricing models (customer groups, channel fallback, high-precision money), discount stacking (Product/Cart/Code/Direct/Groups), shipping predicates and cart score, tax modes, payment object modeling, Import API bulk patterns, and catalog architecture. Use for commerce-domain questions that are independent of surface (storefront, MC app, Connect).

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Runs JavaScript scripts](https://github.com/commercetools/commercetools-ai-plugins/tree/HEAD/skills/commercetools-commerce-patterns)
- [Network calls found in its scripts](https://github.com/commercetools/commercetools-ai-plugins/tree/HEAD/skills/commercetools-commerce-patterns)
- [License: CC-BY-4.0](https://github.com/commercetools/commercetools-ai-plugins/tree/HEAD/skills/commercetools-commerce-patterns)

## Features

- **Pricing and customer groups:** Covers customer group price selection, channel price fallback, time-limited prices and high-precision money settings.
- **Discount stacking rules:** Explains the order of product, cart, code and direct discounts, sort order behavior and discount groups.
- **Shipping and cart score:** Describes shipping predicates, cart score tiers and price functions for dynamic shipping rates.
- **Tax and payment modeling:** Summarizes tax modes and how payment objects, transactions and PSP interface IDs should be modeled.
- **Catalog and Import API:** Provides guidance on ProductType design, bundles, item substitutes, inventory and bulk import limits.
- **B2B order flows:** Covers business units, as-associate API calls, quote lifecycle and recurring order behavior.

## Good for

- Design a customer group pricing setup for wholesale buyers
- Work out how multiple cart discounts will stack and which one fires first
- Model a payment flow that records PSP authorizations and refunds
- Choose a tax mode for an external tax service integration
- Set up tiered shipping rates driven by a cart score

## Install

### Claude Code

This skill ships in the `commercetools` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add commercetools/commercetools-ai-plugins
/plugin install commercetools@commercetools
```

Or copy only this skill to `~/.claude/skills/commercetools-commerce-patterns`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/commercetools/commercetools-ai-plugins.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/commercetools-commerce-patterns &&
cp -R "$tmp/skills/commercetools-commerce-patterns" ~/.claude/skills/commercetools-commerce-patterns &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/commercetools-commerce-patterns` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/commercetools-commerce-patterns` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/commercetools/commercetools-ai-plugins.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/commercetools-commerce-patterns &&
cp -R "$tmp/skills/commercetools-commerce-patterns" ~/.agents/skills/commercetools-commerce-patterns &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/commercetools-commerce-patterns` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/commercetools-commerce-patterns` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/commercetools/commercetools-ai-plugins.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/commercetools-commerce-patterns &&
cp -R "$tmp/skills/commercetools-commerce-patterns" ~/.cursor/skills/commercetools-commerce-patterns &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/commercetools-commerce-patterns` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/commercetools/commercetools-ai-plugins.git --path skills/commercetools-commerce-patterns
```

Or copy the folder to `~/.gemini/skills/commercetools-commerce-patterns` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/commercetools-commerce-patterns`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/commercetools/commercetools-ai-plugins.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/commercetools-commerce-patterns &&
cp -R "$tmp/skills/commercetools-commerce-patterns" ~/.copilot/skills/commercetools-commerce-patterns &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/commercetools-commerce-patterns` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/commercetools/commercetools-ai-plugins.git
```

Then copy `commercetools-ai-plugins/skills/commercetools-commerce-patterns` into your agent's skills folder as `commercetools-commerce-patterns`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What does Commercetools commerce patterns need to run?

The skill runs bundled Node.js scripts for documentation search and schema lookup. A commercetools project key and region are optional and only passed when already known.

### Does Commercetools commerce patterns work with every AI client?

It is a plain SKILL.md folder that follows the shared agent skills format, so it applies across the supported clients listed on the platform.

### When does the skill trigger?

It triggers for commerce-domain questions about pricing, discounts, shipping, tax, payments, catalog, B2B or recurring orders that are independent of a storefront, Merchant Center app or Connect surface.

### How do I install Commercetools commerce patterns in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/commercetools-commerce-patterns to use it in all your projects, or to .claude/skills/commercetools-commerce-patterns in one project. Or install the commercetools plugin, which includes it: /plugin marketplace add commercetools/commercetools-ai-plugins, then /plugin install commercetools@commercetools.

### Does Commercetools commerce patterns run scripts?

Yes. It runs JavaScript scripts. Its scripts contain network calls. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Commercetools commerce patterns?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Commercetools commerce patterns?

The closest alternatives to Commercetools commerce patterns are Commercetools storefront, Commercetools checkout, Commercetools integration layer, Commercetools catalog migration and Commercetools scaffold anthropic agent.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Commercetools storefront](https://ai-powered.com/skills/commercetools-storefront): Commercetools storefront is an open-source agent skill for e-commerce.
- [Commercetools checkout](https://ai-powered.com/skills/commercetools-checkout): Commercetools checkout is an open-source agent skill for e-commerce.
- [Commercetools integration layer](https://ai-powered.com/skills/commercetools-integration-layer): Commercetools integration layer is an open-source agent skill for e-commerce.
- [Commercetools catalog migration](https://ai-powered.com/skills/commercetools-catalog-migration): Commercetools catalog migration is an open-source agent skill for e-commerce.
- [Commercetools scaffold anthropic agent](https://ai-powered.com/skills/commercetools-scaffold-anthropic-agent): Commercetools scaffold anthropic agent is an open-source agent skill for e-commerce.
- [Commercetools intake](https://ai-powered.com/skills/commercetools-intake): Commercetools intake is an open-source agent skill for e-commerce.
- [Commercetools MCP](https://ai-powered.com/skills/commercetools-mcp): Commercetools MCP is an open-source agent skill for e-commerce.
- [Commercetools aihub](https://ai-powered.com/skills/commercetools-aihub): Commercetools aihub is an open-source agent skill for e-commerce.

---
Source: https://ai-powered.com/skills/commercetools-commerce-patterns
