AI-Assisted Development
Commerce Engine provides first-class support for AI-assisted development. Our documentation is machine-readable out of the box, and we publish askill.md so AI coding agents can deeply understand our platform.
Machine-Readable Documentation
llms.txt
Our docs site hosts anllms.txt file that indexes every page. AI agents use this to discover what documentation is available before diving in.
skill.md
We also host askill.md file following the Agent Skills specification. This tells agents what they can accomplish with Commerce Engine, what SDK patterns to follow, and what constraints apply.
LLM-Optimized API Reference
In addition to the standard docs, we maintain a dedicated LLM-optimized site with our complete API reference, SDK methods, schemas, and webhooks in clean markdown:LLM API/SDK Reference
Browse the full LLM-optimized API reference at
llm-docs.commercengine.ioAccept: text/markdown header:
| Section | URL Path | Content |
|---|---|---|
| Index | / | Full documentation overview |
| SDK Methods | /sdk/ | 151 SDK method references with signatures |
| API Operations | /operations/ | All REST endpoint documentation |
| Schemas | /schemas/ | 244 request/response type definitions |
| Webhooks | /webhooks/ | 14 webhook event payload specs |
| Parameters | /parameters/ | Shared API parameter definitions |
| Responses | /responses/ | Shared response type definitions |
Adding the Skill to Your Agent
Using the skills CLI
The fastest way to add Commerce Engine capabilities to your AI agent:skill.md and adds Commerce Engine’s capabilities to your agent’s context.
Claude Code
Add the skill directly:Manual
Fetchhttps://docs.commercengine.io/skill.md and place it in your project. Any agent that supports the Agent Skills spec will pick it up automatically.
What Agents Can Do
With the skill installed, your AI coding assistant can:Generate SDK Code
Produce correct, type-safe SDK calls with proper error handling and token management
Look Up TypeScript Definitions
Fetch exact TypeScript interfaces for any of the 244 schemas or 151 SDK methods on demand
Build Full Features
Scaffold complete e-commerce flows: auth, catalog, cart, checkout, orders
Debug Issues
Understand error codes, token refresh behavior, and framework-specific gotchas
Looking Up TypeScript Definitions
The LLM docs site atllm-docs.commercengine.io is the definitive reference for TypeScript types. Every schema and every SDK method includes its full TypeScript definition with JSDoc comments.
Schema Types
To look up the TypeScript definition for any schema (e.g.,Cart, Product, Order):
/schemas/.
SDK Method Signatures
To look up the full TypeScript signature for any SDK method (e.g.,createCart, listProducts):
/sdk/storefront.
Importing Types
All types are auto-generated from the OpenAPI spec and exported as direct named exports from the SDK. Always import types from the package — never write custom interfaces for API schemas.{OperationName}Body— Request body{OperationName}Content— Response data (thecontentfield){OperationName}Query— Query parameters{OperationName}PathParams— Path parameters
Ready-to-Use Prompts
We provide a library of copy-paste prompts for common Commerce Engine tasks. These are designed to give AI assistants the right context to produce production-quality code on the first try.Browse Prompts
Copy-paste prompts for authentication, catalog, cart, checkout, Next.js, and more