Token导航 LogoToken导航

Agent Skill · 研究检索

ce-catalog(CE 目录)

ce-catalog 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

ce-catalog 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为需要联网;许可证信息还不明确,第三方扫描已通过,按安装量在研究检索类的 73,675 个 Skill 里排第 48,496。

总安装 685周安装 28GitHub Stars 公开资料未说明下载 220核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:ce-catalog(CE 目录)
来源仓库:https://github.com/commercengine/skills
仓库路径:skills/ce-catalog
安装命令:
npx skills add https://github.com/commercengine/skills --skill ce-catalog
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/commercengine/skills --skill ce-catalog

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

ce-catalog 提供 Commerce Engine 商品目录管理接口规范,支持产品与变体查询。适用于在 Codex、Claude、Cursor、Gemini CLI 中构建商品展示页或库存管理系统时调用。需完成匿名认证后方可调用 listProducts 等公共方法。

返回数据结构包含价格、库存与媒体资源引用路径。不支持实时价格更新推送,需轮询或 webhook 另建通道。

来源仓库内路径:skills/ce-catalog

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/commercengine/skills --skill ce-catalog;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要需要联网,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

ce-catalog 怎么安装?

在终端执行 npx skills add https://github.com/commercengine/skills --skill ce-catalog。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

ce-catalog 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

ce-catalog 需要什么权限?

权限级别是需要联网。该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

ce-catalog 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

ce-catalog 用的人多吗?

公开数据是累计安装 685 次,近一周安装 28 次,下载 220 次。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

ce-catalog 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
ce-catalog

CE 目录 · 本页

685—需要联网未明确通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

LLM Docs Header: All requests to https://llm-docs.commercengine.io must include the Accept: text/markdown header (or append .md to the URL path). Without it, responses return HTML instead of parseable markdown.

Products & Catalog

Prerequisite: SDK initialized and anonymous auth completed. See setup/.

Quick Reference

TaskSDK Method
List productssdk.catalog.listProducts({page, limit, category_id})
Get product detailsdk.catalog.getProductDetail({product_id})
List variantssdk.catalog.listProductVariants({product_id})
Get variant detailsdk.catalog.getVariantDetail({product_id, variant_id})
List SKUs (flat)sdk.catalog.listSkus()
List categoriessdk.catalog.listCategories()
Search productssdk.catalog.searchProducts({query: searchTerm, filter?, sort?, facets?})
Get reviewssdk.catalog.listProductReviews({product_id})
Submit reviewsdk.catalog.createProductReview({product_id}, {...})
Similar productssdk.catalog.listSimilarProducts({product_id})
Upsell productssdk.catalog.listUpSellProducts({product_id})
Cross-sell productssdk.catalog.listCrossSellProducts({product_id})

Product Hierarchy

Understanding the Product → Variant → SKU relationship is critical:

Product (has_variant: false)
  └─ A simple product with one SKU, one price

Product (has_variant: true)
  ├─ Variant A (Color: Red, Size: M) → SKU: "RED-M-001"
  ├─ Variant B (Color: Red, Size: L) → SKU: "RED-L-001"
  └─ Variant C (Color: Blue, Size: M) → SKU: "BLU-M-001"
ConceptReturn TypeDescriptionWhen to Use
ProductProductBase item with nested variants arrayPLP where one card per product is desired (e.g., "T-Shirt" card showing color/size selectors)
Variant—A specific option combo (Color + Size)PDPs, cart items — accessed via listProductVariants() or nested in Product
SKU / ItemItemFlat sellable unit — each variant is its own recordPLP where a flat grid is desired (each color/size combo = separate card), or any page with filters/sorting/search

Decision Tree

User Request
    │
    ├─ "Show products" / "Product list"
    │   ├─ With filters/sorting/search? → sdk.catalog.searchProducts({ query, filter, sort, facets })
    │   │   → Returns Item[] (flat SKUs) + facet_distribution + facet_stats
    │   ├─ Flat grid (no filters)? → sdk.catalog.listSkus()
    │   │   → Returns Item[] (flat SKUs)
    │   └─ One card per product (group variants)? → sdk.catalog.listProducts()
    │       → Returns Product[] (with nested variants)
    │
    ├─ "Product detail page"
    │   ├─ sdk.catalog.getProductDetail({ product_id })
    │   └─ If has_variant → sdk.catalog.listProductVariants({ product_id })
    │
    ├─ "Search" / "Filter" / "Sort"
    │   └─ sdk.catalog.searchProducts({ query, filter, sort, facets })
    │       → Returns Item[] + facet_distribution + facet_stats
    │
    ├─ "Categories" / "Navigation"
    │   └─ sdk.catalog.listCategories()
    │
    ├─ "Reviews"
    │   ├─ Read → sdk.catalog.listProductReviews({ product_id })
    │   └─ Write → sdk.catalog.createProductReview({ product_id }, body)
    │
    └─ "Recommendations"
        ├─ Similar → sdk.catalog.listSimilarProducts()
        ├─ Upsell → sdk.catalog.listUpSellProducts()
        └─ Cross-sell → sdk.catalog.listCrossSellProducts()

Key Patterns

Product Listing Page (PLP)

For PLPs with filters, sorting, or search — use searchProducts (recommended). It returns Item[] (flat SKUs) plus facet_distribution and facet_stats for building filter UI:

const { data, error } = await sdk.catalog.searchProducts({
  query: "running shoes",
  filter: "pricing.selling_price 50 TO 200 AND categories.name = footwear",
  sort: ["pricing.selling_price:asc"],
  facets: ["categories.name", "product_type", "tags"],
  page: 1,
  limit: 20,
});

// data.skus → Item[] (flat list — each variant is its own record)
//   Each Item includes product_slug and variant_slug for building SEO-friendly URLs
// data.facet_distribution → { [attribute]: { [value]: count } }
// data.facet_stats → { [attribute]: { min, max } } (e.g. price range)
// data.pagination → { page, limit, total, total_pages }

// filter also accepts arrays — conditions are AND'd:
// filter: ["product_type = physical", "rating >= 4"]
//
// Nested arrays express OR within AND:
// filter: ["pricing.selling_price 50 TO 200", ["categories.name = footwear", "categories.name = apparel"]]

For PLPs without filters where one card per product is desired (variants grouped under a single card):

const { data, error } = await sdk.catalog.listProducts({
  page: 1,
  limit: 20,
  category_id: ["cat_123"],  // Optional: filter by category
});

// data.products → Product[] (each product may contain a variants array)
// Check product.has_variant to know if options exist

For a flat grid without filters (each variant = separate card):

const { data, error } = await sdk.catalog.listSkus();
// Returns Item[] — same flat type as searchProducts
// Each Item includes product_slug and variant_slug for building SEO-friendly URLs

Product Detail Page (PDP)

const { data, error } = await sdk.catalog.getProductDetail({
  product_id: "blue-running-shoes", // Accepts product ID or slug
});

const product = data?.product;

// Prefer product.variants from getProductDetail.
// Fetch separately only if variants are missing or you specifically need the variants endpoint.
if (product?.has_variant && (!product.variants || product.variants.length === 0)) {
  const { data: variantData } = await sdk.catalog.listProductVariants({
    product_id: product.id,
  });
  // variantData.variants contains all options with pricing and stock
}

Adding a Product to Cart from PDP

After resolving the variant on the PDP, use product.id and variant.id from the getProductDetail response:

// product = data.product from getProductDetail()
// resolvedVariant = the variant matched from product.variants via option selection

if (product.has_variant) {
  // Variant product — must specify both product_id and variant_id
  await sdk.cart.addDeleteCartItem(
    { id: cartId },
    { product_id: product.id, variant_id: resolvedVariant.id, quantity: 1 }
  );
} else {
  // Simple product — variant_id is null
  await sdk.cart.addDeleteCartItem(
    { id: cartId },
    { product_id: product.id, variant_id: null, quantity: 1 }
  );
}

With Hosted Checkout, use addToCart instead:

const { addToCart } = useCheckout();
addToCart(product.id, product.has_variant ? resolvedVariant.id : null, 1);

Canonical Variant URL State (PDP)

Use option query params as source of truth for variant products: ?size=large&color=blue.

  • Query keys should be plain option.key values (no custom prefixes).
  • Render option groups in variant_options order (do not derive option groups by iterating variants).
  • Match a variant only when all option keys match variant.associated_options.
  • Normalize option values consistently before comparison:

- color → compare with option.value.name (use option.value.hexcode for swatch UI) - single-select → compare with option.value

  • variant query param is optional derived state:

- Set/update it when options resolve to one variant. - Remove it when selection is incomplete/invalid. - If URL has only variant, backfill option params from that variant. - If URL has partial options + valid variant, fill only missing options from that variant. - If variant is invalid, fall back to default (is_default, else first variant).

  • Disable Add to Cart until required options are selected and the resolved variant is purchasable (stock_available or backorder).
  • Disable option values that cannot lead to a purchasable variant under current partial selection.

Use canonical SDK types directly:

import type {
  AssociatedOption,
  Product,
  Variant,
  VariantOption,
} from "@commercengine/storefront";

Do not derive these app-level types from OpenAPI schemas.

Reference implementation:

  • references/pdp-option-model.md (URL state + variant matching + attribute/variantOption UI unification)

Attribute vs VariantOption (PDP Consistency)

Treat variant_options as variant-driving attribute keys (usually single-select and color), not as a completely separate display domain.

  • Non-variant products can still expose ProductAttribute values for the same keys.
  • Brands may want the same UI treatment for those keys in PDP, even when product has no variants.
  • Keep one normalized option-display model:

- Variant product: selectable options from variant_options + variant.associated_options. - Non-variant product: read-only option-style groups from attributes for keys/types the brand wants to style as options.

  • If attribute.key overlaps a variant_option.key on variant products, render the variant-option UI once and avoid duplicate attribute rows.
  • Use attribute.key alignment plus attribute type (single-select/color) as primary signals.
  • Cart rule stays strict: only variant products require variant resolution before Add to Cart.

Product Types

TypeDescriptionKey Fields
physicalTangible goods requiring shippingshipping, inventory
digitalDownloadable or virtual productsNo shipping required
bundleGroup of products sold togetherContains sub-items

Inventory & Availability

  • stock_available — Boolean, always present on Product, Variant, and SKU schemas. Use it to disable "Add to Cart" or show "Out of Stock" when false.
  • backorder — Boolean, set per product in Admin. When true, the product accepts orders even when out of stock. If your business allows backorders, keep the button enabled when stock_available is false but backorder is true.
  • Inventory count — Catalog APIs (listProducts, listSkus, etc.) support including inventory data in the response. Use this to display numeric stock levels in the UI.

Customer Groups & Pricing

An advanced feature for B2B storefronts where the admin has configured customer groups (e.g., retailers, stockists, distributors). When customer_group_id is sent in API requests, product listings, pricing, and promotions are returned for that specific group.

Do not pass the header per-call. Set it once via defaultHeaders in SDK config (see setup/ § "Default Headers"). After the user logs in, update the SDK instance with their group ID — all subsequent SDK calls automatically include it.

Wishlists

Commerce Engine supports wishlists (add, remove, fetch) via SDK methods. These skills cover the main storefront flows — for wishlists and other secondary features, refer to the LLM API reference or CE docs.

Common Pitfalls

LevelIssueSolution
CRITICALBuilding PLP with filters using listProducts()Use searchProducts({query, filter, sort, facets}) — it returns data.skus (Item[]) + data.facet_distribution + data.facet_stats. listProducts() returns Product[] with no facets. Uses Meilisearch filter syntax (e.g. "rating > 4 AND product_type = physical").
CRITICALConfusing Product vs Item typeslistProducts() returns Product[] (grouped, with variants array). listSkus() and searchProducts() return Item[] (flat — each variant is its own record).
CRITICALUsing variant as PDP URL source of truth for multi-option productsKeep option params (size, color, etc.) canonical; treat variant as derived/backfill-only.
HIGHResolving variants from a single option or variant_options onlyMatch against variant.associated_options across all option keys.
HIGHDeriving option/variant types from generated schemas in app codeImport SDK types directly from @commercengine/storefront (AssociatedOption, VariantOption, Variant, Product).
MEDIUMTreating attributes and variant_options as unrelated PDP UIsBuild a unified option-display model so shared keys (e.g. metal) can render consistently across variant and non-variant products.
HIGHIgnoring has_variant flagAlways check has_variant before trying to access variant data
HIGHAdding product to cart instead of variantWhen has_variant: true, must add the specific variant, not the product
MEDIUMNot using slug for URLsUse slug field for SEO-friendly URLs — product_id params across catalog endpoints accept both IDs and slugs
MEDIUMMissing paginationAll list endpoints return pagination — use page and limit params
LOWRe-fetching categoriesCategories rarely change — cache them client-side

See Also

  • setup/ - SDK initialization required first
  • cart-checkout/ - Adding products to cart
  • orders/ - Products in order context
  • ssr-patterns/ - SSG / pre-rendering for product pages (Next.js generateStaticParams(), TanStack Start pre-rendering)

Documentation

平台分布

Codex

36.76%
按下载量换算81

Claude

32.26%
按下载量换算71

Cursor

16.47%
按下载量换算36

Gemini CLI

8.36%
按下载量换算18

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills