Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

product-data-modeling

БесплатноБез исполняемых скриптовНе проверен

Structure your product catalog using your platform's native data model for variants, attributes, metafields, and product relationships

finsilabsот finsilabs★ 69 звёзд на GitHub

Об этом скилле

Product Data Modeling

Overview

Every platform has its own product data model — Shopify uses products with variants and metafields, WooCommerce uses products with attributes and custom fields, and BigCommerce uses products with options and custom fields. Understanding your platform's model and fitting your catalog into it correctly prevents data quality problems and import failures. Only build a custom data model if you're building a headless storefront from scratch.

When to Use This Skill

  • When designing a product catalog structure for a new store on an existing platform
  • When adding variant support (size, color, material) to existing products
  • When implementing custom attributes for faceted filtering
  • When modeling product relationships (bundles, cross-sells, accessories)
  • When importing products from a PIM or ERP into the platform's model

Core Instructions

Step 1: Understand your platform's core data model

Platform Product Variants Custom Attributes Relationships
Shopify Product + up to 3 Options, up to 100 Variants Per-variant: price, SKU, inventory, weight, image Metafields (standard or custom namespaces) Collections, cross-sell via apps
WooCommerce Product (Simple, Variable, Grouped, External) Per-variation: price, SKU, stock, attributes Custom product attributes + WooCommerce custom fields Upsells, cross-sells (built-in), grouped products
BigCommerce Product with Options and Option Sets Per-variant (modifier/option combination): price, SKU, stock Custom fields per product Related products, bundled products
Custom / Headless Design from scratch with PostgreSQL/MongoDB Full control over schema EAV or JSONB for flexible attributes Junction tables for relationships

Step 2: Platform-specific modeling


Shopify

Core structure:

  • Product: title, description, vendor, product_type, tags, images
  • Options: up to 3 (e.g., Size, Color, Material) — defines the axes of variation
  • Variants: one per combination of option values — each has its own price, SKU, inventory, weight
  • Metafields: custom data per product or variant (e.g., care instructions, sizing guide URL, technical specs)

Modeling decisions:

  1. Product vs. Variant: Put a product into a single product record if customers compare the options side-by-side on one page. Create separate product records for fundamentally different products that happen to share a name.

  2. Option naming: Shopify limits you to 3 options per product. If you need more (e.g., Size + Color + Material + Length), consider combining two options (e.g., "Size/Width") or using metafields for the 4th dimension.

  3. Metafields for custom attributes: Go to Settings → Custom data → Products to create metafield definitions. Use metafields for attributes that:

    • Don't affect price or inventory (those belong on variants)
    • Are product-specific custom data (care instructions, certifications, dimensions)
    • Need to be displayable in your theme or filterable via a search app
  4. Product types and tags: Use product_type for the primary merchandise category (e.g., "Dress", "Running Shoe") and tags for cross-cutting attributes (e.g., color-navy, occasion-formal, material-cotton).

Example product structure for a shirt:

  • Product: "Organic Cotton T-Shirt"
  • Options: Size (XS, S, M, L, XL), Color (White, Black, Navy)
  • Variants: 15 combinations (5 sizes × 3 colors), each with SKU and inventory
  • Metafields: care_instructions, material_weight_gsm, sustainability_cert

Bulk field updates via Matrixify:

  • Export products to see all supported columns
  • Edit in spreadsheet, re-import to update any field in bulk including metafields

WooCommerce

Product types:

  • Simple: one SKU, one price — use for products with no variants
  • Variable: multiple variations based on attributes — use for products with size, color, etc.
  • Grouped: a collection of simple products shown together — use for product families
  • External/Affiliate: linked to an external URL — for affiliate products
  • Virtual: no shipping — for services, subscriptions
  • Downloadable: digital products

Attributes and variations:

  1. Go to Products → Attributes to define global attributes (shared across all products):

    • Add attribute: Color with values: Red, Blue, Black, White
    • Add attribute: Size with values: XS, S, M, L, XL
    • Check Enable archives to make the attribute browseable
  2. On a Variable product, go to Attributes tab:

    • Select your global attributes and check which values apply to this product
    • Go to Variations tab → Generate variations from all combinations
  3. Per-variation settings: set a unique price, SKU, stock, image, and weight for each variation

Custom fields (product metadata):

For

Полный SKILL.md на GitHub

Установить product-data-modeling в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

claude-code
cursor
gemini-cli
copilot
codex-cli
kiro
opencode

Вложенные файлы

evals/core-product-variant-schema-design/criteria.jsonevals/core-product-variant-schema-design/task.mdevals/eav-pattern-and-faceted-filtering/criteria.jsonevals/eav-pattern-and-faceted-filtering/task.mdevals/relationships-collections-multi-tenant-p/criteria.jsonevals/relationships-collections-multi-tenant-p/task.mdtile.json

FAQ

Что делает скилл product-data-modeling?

Structure your product catalog using your platform's native data model for variants, attributes, metafields, and product relationships

Как установить скилл product-data-modeling?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл product-data-modeling запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить product-data-modeling с