Loading...
Loading...
Commerce Engine router. Use when user asks about building a storefront, setting up the SDK, authentication, products, cart, checkout, orders, webhooks, or Next.js e-commerce patterns. Automatically routes to the specific skill based on their task.
npx skill4agent add commercengine/skills ceLLM Docs Header: All requests tomust include thehttps://llm-docs.commercengine.ioheader (or appendAccept: text/markdownto the URL path). Without it, responses return HTML instead of parseable markdown..md
ce-catalogce-setupce-setupCE_STORE_IDCE_API_KEYce-authce-catalogce-cart-checkoutce-ordersce-webhooksce-nextjs-patternsstorefront()CookieTokenStorage| Page | Example Route | Skills | Key SDK Methods |
|---|---|---|---|
| Home | | catalog | |
| Product Listing (PLP) | | catalog | |
| Product Detail (PDP) | | catalog | |
| Cart | Hosted Checkout drawer | cart-checkout | |
| Checkout | Hosted Checkout drawer | cart-checkout | |
| Login | | auth | |
| Account | | auth | |
| Orders | | orders | |
| Order Detail | | orders | |
Cart & Checkout routes: With Hosted Checkout (recommended), cart and checkout are drawers — no dedicated pages needed. With custom checkout, addand/cartas separate pages (see/checkout).ce-cart-checkout
Building a new storefront? Start with, then build pages in this order: Home → PLP → PDP → Cart/Checkout → Login → Account → Orders.ce-setupConverting an existing project? Follow the migration checklist below.
ce-setupsdk.auth.getAnonymousToken()sdk.catalog.*searchProductslistProductsgetProductDetaillistProductVariantslistCategoriesce-authloginWithEmailloginWithPhoneverifyOtpce-cart-checkoutuseCheckout()authMode: "provided"listOrdersgetOrderDetailsce-ordersce-nextjs-patternsKey principle: Replace one data source at a time. Keep existing UI components — only swap the data layer underneath.
User Request
│
├─ "Set up SDK" / "Add Commerce Engine" → ce-setup
├─ "Login" / "Auth" / "OTP" → ce-auth
├─ "Products" / "Categories" / "Search" → ce-catalog
├─ "Cart" / "Checkout" / "Payments" → ce-cart-checkout
├─ "Orders" / "Returns" / "Shipments" → ce-orders
├─ "Webhooks" / "Events" / "Sync" → ce-webhooks
└─ "Next.js" / "SSR" / "Server Actions" → ce-nextjs-patterns/ce-setup/ce-auth/ce-catalog/ce-cart-checkout/ce-orders/ce-webhooks/ce-nextjs-patterns