Agent skills
Decision trees, architecture rules, implementation patterns, and known pitfalls for complete commerce features.
LLM-first reference
Exact, current SDK methods, operation examples, request types, response types, and schemas retrieved only when needed.
Production starters
Working storefront implementations across supported frameworks, including rendering, performance, SEO, session, and deployment patterns.
Install the skills package
Run this command in the storefront repository:Start broad Commerce Engine tasks through the
ce router when your agent supports skills or slash commands. The router identifies the framework and loads the relevant specialist guidance.The agent workflow
A reliable agent should follow this sequence rather than generating from memory:1
Inspect the project
Read
package.json, framework configuration, existing routes, styling conventions, package manager, deployment configuration, and environment-variable patterns.2
Load the relevant skills
Load setup plus every feature skill needed by the request. A complete storefront normally spans framework setup, catalog, Hosted Checkout, authentication, and orders.
3
Retrieve exact contracts on demand
Before writing an SDK call, fetch the current operation page or schema from the LLM-first reference. Do not guess method signatures or duplicate API interfaces.
4
Use a starter as implementation evidence
Compare framework boundaries, bootstrap, session ownership, rendering, SEO, loading states, and deployment configuration with the closest production starter.
5
Implement and validate
Run the repository’s typecheck, lint/check, and production build commands. Exercise the relevant customer journeys and report anything that could not be verified.
Context-efficient SDK lookup
The LLM reference is available atllm-docs.commercengine.io. Every page supports raw Markdown through content negotiation or a .md suffix.
.md URLs work in agents that cannot send custom headers:
Current SDK mental model
All supported frameworks install the unified package:- Public reads use the public accessor. They are publishable-key-backed and do not create a user session.
- Live user flows use a session accessor. Authentication, cart, wishlist, account, orders, and payments belong to the anonymous or logged-in session.
- Hosted Checkout should use
authMode: "provided"with two-way token synchronization whenever the application also uses@commercengine/storefront.
Type lookup rule
Import Commerce Engine schema and operation types directly from@commercengine/storefront. Do not recreate API interfaces in application code.
{OperationName}Body{OperationName}Content{OperationName}Query{OperationName}PathParams
Build a complete storefront
Production storefront workflow
A complete agent execution contract, route matrix, validation gates, and copy-paste prompt.
Production starters
Framework-by-framework reference implementations and the patterns agents should study before generating code.
Prompt library
Prompts for new storefronts, existing-project integrations, feature work, debugging, and production review.
LLM API/SDK reference
Browse exact methods, operations, schemas, webhook payloads, parameters, and responses.