# Commercetools integration layer

> Commercetools integration layer is an open-source agent skill for e-commerce. Guides building and publishing commercetools Commerce Integration Layer extensions. It is available on Claude Code.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code
- **Website:** https://github.com/commercetools/commercetools-ai-plugins/tree/main/skills/commercetools-integration-layer
- **Repository:** https://github.com/commercetools/commercetools-ai-plugins
- **GitHub stars:** 6
- **License:** CC-BY-4.0
- **Skill name:** commercetools-integration-layer
- **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 walks an agent through choosing and building extensions for the commercetools Commerce Integration Layer, a project-scoped GraphQL gateway in front of a commercetools project. It separates two mechanisms: schema extensions that shape what clients read through the Experience API, and Managed API Extensions that approve, modify, or block a write before it is persisted. A decision tree helps place custom logic, including porting logic that previously ran in a pre-request backend, and it steers toward native commercetools features first.

The skill also covers the integration-layer CLI workflow: initializing a workspace, running unit tests, a local gateway, validation, and pushing the bundle to a project. It advises confirming with the user before installing tools or pushing, since a push replaces what the project serves. Testing guidance covers handlers run offline and against real writes for every entry point of a business action.

Users need a commercetools project enrolled in the Commerce Integration Layer, Node tooling with pnpm, and the commercetools CLI. Reference documents on the write path and on verifying and pushing bundles are included.

## When your agent uses it

> Build and publish extensions for the commercetools Commerce Integration Layer — the project-scoped commercetools BFF. Covers the two extension types (a schema extension, i.e. an extension subgraph of GraphQL typeDefs + resolvers that shapes what clients read through the Experience API; and a Managed API Extension that approves, modifies, or blocks a commercetools write), a decision tree for where custom logic belongs (incl. porting pre-request BFF logic), and the integration-layer CLI flow to init, test, validate, and push an extension bundle. Use when building, publishing, or debugging a Commerce Integration Layer extension, or asking how to add custom logic to a Commerce Integration Layer project — even if the user just says 'integration layer' or 'CIL'. Not for building commercetools Connect connectors (see commercetools-connect), the hosted Checkout (see commercetools-checkout), or storefront clients that consume the Experience API (see commercetools-storefront).

## What it can access

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

- [Instructions only, no scripts](https://github.com/commercetools/commercetools-ai-plugins/tree/HEAD/skills/commercetools-integration-layer)
- [License: CC-BY-4.0](https://github.com/commercetools/commercetools-ai-plugins/tree/HEAD/skills/commercetools-integration-layer)

## Features

- **Extension type selection:** Guides choosing between a schema extension and a Managed API Extension based on when the logic must run.
- **Schema extension authoring:** Covers GraphQL typeDefs and resolvers that add fields or queries to the Experience API.
- **Managed API Extension handlers:** Explains approving, modifying, or blocking commercetools writes before they are persisted.
- **Integration-layer CLI workflow:** Lists the commands to init, test, run locally, validate, and push an extension bundle.
- **Pre-request logic porting:** Helps move logic from a hand-built backend into the integration layer.
- **Pre-push verification:** Describes testing the merged bundle in layers before publishing.

## Good for

- Add a computed field to products returned through the Experience API
- Block a cart update that breaks a business rule before it is saved
- Port custom logic from an older backend into a Commerce Integration Layer project
- Set up and test a new integration-layer extension bundle before pushing it

## 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-integration-layer`:

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

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

### Codex

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

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

### Cursor

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

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

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

### VS Code

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

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

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

## FAQ

### Does Commercetools integration layer work with commercetools Connect or Checkout?

No. The skill states it does not cover commercetools Connect connectors, the hosted Checkout, or storefront clients that consume the Experience API; those have their own skills.

### What must be in place before pushing an extension?

The project must be enrolled and activated for the Commerce Integration Layer, and the CLI and its integration-layer plugin must be installed and the user logged in.

### Does the skill run commands on my machine automatically?

No. It asks for explicit approval before installing the CLI or pushing, and names the target project first.

### How do I install Commercetools integration layer in Claude Code?

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

No. It is instructions only, with no scripts. 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 integration layer?

Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.

### What are the best alternatives to Commercetools integration layer?

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

## Where this comes from

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

## Alternatives

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

---
Source: https://ai-powered.com/skills/commercetools-integration-layer
