跳到正文
cccskills
免费在 GitHub 公开

commerce-data-model

Design and audit the core e-commerce domain model — products, variants, SKUs, options, collections, attributes, taxonomy, faceted search and pagination. Language- and platform-agnostic. Triggers: modeling a catalog, reviewing an existing product schema, designing filtering/search.

中文简介正在准备中。当前显示原文说明。

SebastianLuser/claude-code-arcane星标 3(GitHub 3 + cccskills 0)

实测评分 未实测

查看安装方法

包含的文件(2)

  • SKILL.md4.0 KB
  • references/data-model-spec.md3.0 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Commerce Data Model

Design the backbone of any storefront: a product catalog model that survives variants, bundles, localization, and faceted search — independent of language, framework, or database.

Note: This skill may create or modify files in your project (a model spec or schema doc). It will ask before writing.

Before Starting

Gather: business context (physical/digital/services, single vs multi-vendor, B2C/B2B), scale (SKU count, variant explosion, locales/currencies), and goal (model from scratch, audit an existing schema, or design taxonomy + filtering).

How This Skill Works

ModeTriggerOutput
ModelmodelEntity model spec: Product, Variant, SKU, Option, Collection, Attribute
AuditauditGap analysis of an existing schema against commerce best practices
TaxonomytaxonomyCategory tree, attribute schema, faceted-search and pagination design

Phase 1 — Core Entities

The canonical separation that prevents 90% of catalog pain:

EntityIsIs NOTKey fields
ProductThe marketing/SEO unit ("Acme Tee")A buyable thingtitle, description, slug, status, brand
VariantA buyable combination ("Tee / Red / M")A categoryoption values, price, weight, barcode
SKUThe stock-keeping identifierA variant's pricecode, variant_id
OptionAn axis of variation (Color, Size)A valuename, position
CollectionA merchandising groupingA taxonomy nodetitle, rules (manual/automatic)

Rule: Price, inventory, and barcode live on the Variant, never the Product. A product with no options still has exactly one variant.

For the full field-level spec, identifiers (GTIN/MPN), bundles/kits, and digital vs physical modeling, see references/data-model-spec.md.


Phase 2 — Attributes & Taxonomy

  • Taxonomy (category tree): hierarchical, navigational, one primary path per product. Stable URLs.
  • Collections: many-to-many merchandising overlays (manual or rule-based). A product lives in one category branch but many collections.
  • Attributes: typed key-values (material: cotton, sleeve: short). Drive facets. Define a controlled vocabulary — free-text attributes break filtering.

Attribute typing: text | enum | number | boolean | measurement. Enums must reference a value list. Measurements carry a unit.


Phase 3 — Faceted Search & Pagination

  • Facets come from enum/boolean/measurement attributes, not free text.
  • Multi-select within a facet = OR; across facets = AND.
  • Always show counts; never show zero-result facet values.
  • Pagination: prefer cursor/keyset over offset for deep catalogs (offset degrades and double-counts under writes). Cap page size.

Output Artifacts

RequestOutput
Model from scratchEntity spec + ER sketch + identifier strategy
Audit schemaVerdict per entity: COMPLIANT / CONCERNS, with fixes
Design taxonomyCategory tree + attribute schema + facet plan

A schema is COMPLIANT when price/inventory sit on variants, every product has ≥1 variant, attributes are typed against vocabularies, and URLs are stable.


Related Skills

  • storefront-architecture: consumes this model to design PLP/PDP pages. Next step after modeling.
  • merchant-feed: maps these entities to Google/Meta feed attributes.
  • inventory-stock: owns stock levels that hang off the SKU/variant.
  • order-lifecycle: references variants as order line items.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Plan, design, and implement A/B tests and experiments with statistical rigor. Covers hypothesis frameworks, sample sizing, metrics, and result analysis.

中文简介正在准备中。当前显示原文说明。

SebastianLuser/claude-code-arcane32026年10月27日 更新

Web/mobile accessibility decision guide: WCAG 2.2 AA, ARIA, keyboard nav, focus management, contrast, testing. Use for: a11y, accessibility, wcag, aria, screen reader, keyboard, contrast.

中文简介正在准备中。当前显示原文说明。

SebastianLuser/claude-code-arcane32026年10月27日 更新

Generate, iterate, and scale ad creative for paid advertising across Google, Meta, LinkedIn, and X. Covers platform specs, creative frameworks, and quality validation.

中文简介正在准备中。当前显示原文说明。

SebastianLuser/claude-code-arcane32026年10月27日 更新

Musica interactiva para juegos: layering vertical, re-secuenciacion horizontal, stingers, reglas de transicion con sync points, y mapeo de estados de gameplay a musica. Usar para: musica adaptativa, sistema de musica dinamica, transiciones musicales, combat music.

中文简介正在准备中。当前显示原文说明。

SebastianLuser/claude-code-arcane32026年10月27日 更新

Design multi-agent systems, create agent architectures, define communication patterns, and build autonomous agent workflows with structured evaluation frameworks.

中文简介正在准备中。当前显示原文说明。

SebastianLuser/claude-code-arcane32026年10月27日 更新

Inter-agent communication protocol for C-suite agent teams. Defines invocation syntax, loop prevention, isolation rules, response formats, and quality loops.

中文简介正在准备中。当前显示原文说明。

SebastianLuser/claude-code-arcane32026年10月27日 更新

查看 SebastianLuser 的全部技能

报告此技能的问题