AgentSkillsCN

ce

Commerce Engine 的路由功能。当用户咨询如何搭建商城页面、配置 SDK、进行身份验证、管理商品、操作购物车、完成结账、处理订单、设置 Webhook,或探讨 Next.js 电商模式时,此技能会根据用户的实际需求,自动将请求路由至相应的细分技能。

SKILL.md
--- frontmatter
name: ce
description: 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.

Commerce Engine Skills Router

These skills cover B2C storefronts. B2B storefronts share ~95% of the same patterns — the main difference is customer group pricing (see ce-catalog § "Customer Groups & Pricing" and ce-setup § "Default Headers").

Based on what you're trying to do, here's the right skill to use:

By Task

Setting up the SDK → Use ce-setup

  • Framework detection and SDK install
  • Token storage selection
  • Environment variables (CE_STORE_ID, CE_API_KEY)

Authentication & login → Use ce-auth

  • Anonymous auth, OTP login (email/phone/WhatsApp)
  • Password auth, token refresh
  • User profile management

Products & catalog → Use ce-catalog

  • Products, variants, SKUs
  • Categories, faceted search
  • Reviews, recommendations

Cart & checkout → Use ce-cart-checkout

  • Hosted Checkout (recommended) — pre-built, embeddable, saves 2-3 months
  • Custom checkout (advanced) — Cart CRUD, fulfillment, payment gateways
  • Coupons, loyalty points

Orders & returns → Use ce-orders

  • Create orders from cart
  • Shipment tracking, payment status
  • Cancellation, returns flow

Webhooks & events → Use ce-webhooks

  • 14 event types (order, payment, refund, shipment)
  • Signature verification
  • Async processing patterns

Next.js patterns → Use ce-nextjs-patterns

  • storefront() universal function
  • CookieTokenStorage for SSR
  • Server Actions, SSG, ISR

Decision Tree

code
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

Quick Navigation

If you know your task, you can directly access:

  • /ce-setup - SDK setup & framework detection
  • /ce-auth - Authentication & user management
  • /ce-catalog - Products & categories
  • /ce-cart-checkout - Cart, checkout & payments
  • /ce-orders - Order management
  • /ce-webhooks - Webhook events & syncing
  • /ce-nextjs-patterns - Next.js patterns

Or describe what you need and I'll recommend the right one.