# Commercetools storefront

> Commercetools storefront is an open-source agent skill for e-commerce. Patterns for building B2C and B2B commercetools storefronts with a server-side BFF. 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-storefront
- **Repository:** https://github.com/commercetools/commercetools-ai-plugins
- **GitHub stars:** 6
- **License:** CC-BY-4.0
- **Skill name:** commercetools-storefront
- **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 production patterns for customer-facing commercetools storefronts, covering the shared backend-for-frontend layer, sessions, carts, checkout, customer login, search and facets, and locale handling. It also covers B2C features such as anonymous cart merging, bundles, BOPIS and promotions, and B2B features such as quotes, approval workflows, store-scoped pricing and purchase lists.

The guidance is framework-neutral and states each pattern as a design decision backed by commercetools-specific code. It points to stack adapters for Next.js and Nuxt that map the concepts onto framework primitives, and to reference files for each feature area. Routing to the right reference happens through a documentation search script that the agent runs before answering.

The skill expects a server tier that can hold secrets and proxy commercetools calls, and it requires a commercetools project with the relevant APIs. Scripts for fetching GraphQL and OpenAPI schemas for individual commercetools resources are included, and the code examples are written in JavaScript and TypeScript.

## When your agent uses it

> Production patterns for building customer-facing storefronts on commercetools - the full B2C and B2B domain feature set. Patterns are stated as decisions plus commercetools-exact code; framework-specific implementation. Assumes a server tier exists to host the BFF. Use for PDP, PLP, cart, checkout flow, customer login, search/facets, locale handling, and any B2B- or B2C-specific feature.

## 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-storefront)
- [Network calls found in its scripts](https://github.com/commercetools/commercetools-ai-plugins/tree/HEAD/skills/commercetools-storefront)
- [License: CC-BY-4.0](https://github.com/commercetools/commercetools-ai-plugins/tree/HEAD/skills/commercetools-storefront)

## Features

- **Backend-for-frontend boundary:** Rules for keeping commercetools calls and credentials on the server, away from the browser bundle.
- **Server-managed sessions:** Guidance on storing session state on the server and exposing only opaque references to the client.
- **Cart and checkout flows:** Patterns for cart CRUD, anonymous carts, checkout steps and order placement.
- **Product listing and search:** Category pages, product search with facets, and URL-driven filter state.
- **B2B quotes and approvals:** Quote negotiation, approval rules and as-associate scoped buyer actions for business units.
- **Schema lookup scripts:** Scripts that fetch GraphQL and OpenAPI definitions for specific commercetools resources.

## Good for

- Build a product detail page with variant selectors on commercetools
- Add customer registration and login with anonymous cart merge
- Set up a category listing page with search facets
- Implement a B2B quote request and approval flow
- Add store-scoped pricing for a B2B buyer account
- Check the GraphQL fields for a commercetools Cart before writing a query

## 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-storefront`:

```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-storefront &&
cp -R "$tmp/skills/commercetools-storefront" ~/.claude/skills/commercetools-storefront &&
rm -rf "$tmp"
```

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

### Codex

Copy the skill folder to `~/.agents/skills/commercetools-storefront` 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-storefront &&
cp -R "$tmp/skills/commercetools-storefront" ~/.agents/skills/commercetools-storefront &&
rm -rf "$tmp"
```

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

### Cursor

Copy the skill folder to `~/.cursor/skills/commercetools-storefront` 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-storefront &&
cp -R "$tmp/skills/commercetools-storefront" ~/.cursor/skills/commercetools-storefront &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/commercetools-storefront` 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-storefront
```

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

### VS Code

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

```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-storefront &&
cp -R "$tmp/skills/commercetools-storefront" ~/.copilot/skills/commercetools-storefront &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/commercetools-storefront` 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-storefront` into your agent's skills folder as `commercetools-storefront`. Agents that support SKILL.md read one folder per skill.

## FAQ

### Does Commercetools storefront require a server-side tier?

Yes. The patterns assume the storefront runs on a stack with a server tier, such as SSR or a standalone BFF, that can hold secrets and proxy commercetools calls.

### Which frontend frameworks are covered?

The core patterns are framework-neutral. Stack adapters are provided for Next.js 16 and Nuxt 4, and each one maps the concepts to that framework's primitives.

### Does Commercetools storefront cover both B2C and B2B storefronts?

Yes. It has separate reference sets for B2C features such as bundles, BOPIS and promotions, and B2B features such as quotes, approval workflows, permissions and purchase lists.

### Does the skill change any code by itself?

No. It supplies patterns, reference files and schema lookup scripts that guide the agent while it implements a storefront.

### How do I install Commercetools storefront in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/commercetools-storefront to use it in all your projects, or to .claude/skills/commercetools-storefront 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 storefront 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 storefront?

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 storefront?

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

## Where this comes from

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

## Alternatives

- [Commercetools commerce patterns](https://ai-powered.com/skills/commercetools-commerce-patterns): Commercetools commerce patterns is an open-source agent skill for e-commerce.
- [Commercetools platform](https://ai-powered.com/skills/commercetools-platform): Commercetools platform is an open-source agent skill for ecommerce.
- [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 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 catalog migration](https://ai-powered.com/skills/commercetools-catalog-migration): Commercetools catalog migration is an open-source agent skill for e-commerce.
- [Commercetools custom application](https://ai-powered.com/skills/commercetools-custom-application): Commercetools custom application 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.

---
Source: https://ai-powered.com/skills/commercetools-storefront
