variant-matrix

Generate and manage product variant combinations with SKU naming and bulk pricing across ecommerce platforms.

3|1|Updated Mar 21, 2026
One-click install
npx skills add https://github.com/tomtoto757/ecomm-ai-team --skill variant-matrix-tomtoto757
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: variant-matrix
Source: https://github.com/tomtoto757/ecomm-ai-team/tree/main/skills/catalog-inventory/finsilabs/catalog-inventory/variant-matrix
Command: npx skills add https://github.com/tomtoto757/ecomm-ai-team --skill variant-matrix-tomtoto757

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Managing products with multiple size, color, or material options requires generating every combination as a variant with its own SKU, price, and inventory — a process that is error-prone when done manually and hits platform limits at scale. ## Core Features & Use Cases - Platform-Specific Setup: Step-by-step variant creation workflows for Shopify, WooCommerce, BigCommerce, and custom headless builds, including option limits and bulk edit tools. - SKU Naming Conventions: A standardized SKU format (uppercase, hyphen-separated, max 20 characters) with normalization rules for values like "Navy Blue". - Large Matrix Strategies: Cartesian product generation, diff-based variant updates, archiving instead of deletion, and lazy on-demand variant creation for matrices with hundreds of combinations. - Use Case: An apparel merchant adds a new color to an existing product; the diff logic identifies only the genuinely new combinations to create and archives discontinued variants without breaking historical orders. ## Quick Start Ask the AI to generate all size and color variant combinations with SKUs for a product on your platform, following the variant matrix naming conventions.

Frequently Asked Questions about variant-matrix

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate all size and color variant combinations for a product?▼

Compute the Cartesian product of your option value arrays, then create one variant per combination with its own SKU, price, and inventory. On Shopify and BigCommerce the admin generates the matrix automatically; for custom builds, use a reduce/flatMap cartesian function.

What is a good SKU naming convention for product variants?▼

Use the format [PRODUCT-CODE]-[OPTION1]-[OPTION2], all uppercase, hyphen-separated, max 20 characters. Normalize special characters with a regex like replace(/[^A-Z0-9]/g, '-') and use standard abbreviations such as M for medium and BLU for blue.

How do I handle Shopify's 100-variant limit?▼

Combine two options into one axis, create separate product records per color linked with metafields, or use Shopify Bundles for configurable products. For very large catalogs, generate variants lazily on first order instead of pre-creating all combinations.

Should I delete discontinued product variants?▼

No, archive variants by marking them unpublished instead of deleting them. Deletion breaks historical order line items that reference the variant; use diff logic to compute which variants to archive when option values change.

Why does my product page load slowly with many variants?▼

Embedding hundreds of variants in the initial page HTML slows rendering. For 100+ variants, fetch variant availability via API on option change, and consider lazy variant creation rather than storing every combination upfront.