variant-matrix

variant-matrix is a skill for Claude Code, Codex from finsilabs/awesome-ecommerce-skills. It costs 27 tokens per session (2,693 once invoked), scanned A, original, MIT.

A product-variant system for creating every size, color, or material combination under one online-store listing. Each combination can have its own price, stock level, SKU, and other details.

In plain words
What is it for?
It is for grouping supplier variant rows, generating SKUs, setting prices and inventory in bulk, and building selectors that disable combinations that are unavailable.
Why use it?
It prevents merchants from managing each combination as a separate product and makes large product option sets easier to maintain.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: positional $N argument; mentions Codex; mentions Gemini CLI.

Good fit It is for grouping supplier variant rows, generating SKUs, setting prices and inventory in bulk, and building selectors that disable combinations that are unavailable.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/finsilabs/awesome-ecommerce-skills/variant-matrix
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add finsilabs/awesome-ecommerce-skills --skill variant-matrix
Clone the repo
git clone --depth 1 https://github.com/finsilabs/awesome-ecommerce-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for variant-matrix

README.md
[![agentmods](https://agentmods.dev/badge/skills/finsilabs/awesome-ecommerce-skills/variant-matrix/github.svg)](https://agentmods.dev/skills/finsilabs/awesome-ecommerce-skills/variant-matrix)
Your own site
<a href="https://agentmods.dev/skills/finsilabs/awesome-ecommerce-skills/variant-matrix"><img src="https://agentmods.dev/badge/skills/finsilabs/awesome-ecommerce-skills/variant-matrix/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for variant-matrix

Your own site · 80×15
<a href="https://agentmods.dev/skills/finsilabs/awesome-ecommerce-skills/variant-matrix"><img src="https://agentmods.dev/badge/skills/finsilabs/awesome-ecommerce-skills/variant-matrix.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 27 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,693 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00027 $0.02693
Opus 5 $0.00014 $0.01347
Sonnet 5 $0.00005 $0.00539
Haiku 4.5 $0.00003 $0.00269

Measured 11d ago against content hash eef6cd3cf2b1, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

variant-matrix scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/catalog-inventory/variant-matrix/SKILL.md · 267 lines

How it starts

The opening of the file, as written. The whole thing — 267 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Variant Matrix

Overview

Product variants let one product listing cover all size/color/material combinations — each with its own price, SKU, and inventory. Platforms generate the full matrix of combinations from your option values and handle the variant selector UI automatically. The main tasks are: entering options correctly, generating all SKUs, setting per-variant pricing and inventory, and managing large matrices efficiently.

When to Use This Skill

  • When modeling apparel, footwear, or accessories where products have multiple option axes
  • When importing products from a supplier CSV with flat variant rows that need to be grouped
  • When building an admin interface for merchants to manage variant pricing and inventory
  • When a variant selector on the product page needs to disable unavailable combinations

Core Instructions

Step 1: Determine platform and understand the variant model

Platform Options Max Variants Variant Fields
Shopify Up to 3 options (e.g., Size, Color, Style) 100 per product Price, SKU, barcode, inventory, weight, image
WooCommerce Unlimited attributes used as variations Practically unlimited (performance degrades at ~50+) Price, sale price, SKU, stock, weight, dimensions, image
BigCommerce Unlimited options per product 600 SKUs per product Price adjustment, SKU, stock, weight, image
Custom / Headless Design your own Unlimited Design your own variant fields

Step 2: Platform-specific variant setup


Shopify

Creating variants from options:

  1. Go to Admin → Products → [Product]
  2. Scroll to the Options section
  3. Click Add option to add the first axis (e.g., Size)
  4. Enter the option values: XS, S, M, L, XL
  5. Add a second option (e.g., Color): Red, Blue, Black
  6. Shopify generates all combinations automatically (5 × 3 = 15 variants)
  7. Scroll to the Variants section to see the generated matrix

Read the full file on GitHub · 267 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 267 lines · 27 tokens per session scan A eef6cd3cf2b1

Subscribe to this mod's changes

variant-matrix is a skill published in the GitHub repository finsilabs/awesome-ecommerce-skills (52 stars, last pushed 6mo ago), licensed MIT. It adds 27 tokens to every session and 2,693 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

retail-scrapers

Assess, reuse, build, repair, and validate public retail catalog and price channels in the Retail Scrapers Python toolkit. Use when a user provides a retailer name or URL, asks whether an existing adapter or market configuration can handle it, requests a new channel, or needs an existing channel fixed after site drift.

Mrjie7205/retail-scrapers · 68 tokens

amazon-reviews-api-skill

This skill helps users automatically extract Amazon product reviews via the Amazon Reviews API. Agent should proactively apply this skill when users express needs like getting reviews for Amazon product with ASIN B07TS6R1SF, analyzing customer feedback for a specific Amazon item, getting ratings and comments for a…

browser-act/skills · 124 tokens

amazon-competitor-analyzer

Scrapes Amazon product data from ASINs using browseract.com automation API and performs surgical competitive analysis. Compares specifications, pricing, review quality, and visual strategies to identify competitor moats and vulnerabilities.

browser-act/skills · 48 tokens

asc-subscription-localization

Bulk-localize subscription, subscription-group, and in-app purchase display names across App Store locales using asc, including API 4.4.1 version-scoped v2 resources. Use when filling or updating subscription/IAP names and descriptions without App Store Connect UI work.

rorkai/app-store-connect-cli-skills · 60 tokens

food-order

Reorder previous Foodora orders, preview cart contents, and track delivery ETA/status with ordercli. Use when the user wants to reorder food, check delivery status, or browse recent Foodora order history. Never confirm an order without explicit user approval.

Bitterbot-AI/bitterbot-desktop · 53 tokens

product-description-generator

E-commerce product description generator for any platform. Generates optimized titles, bullet points, descriptions, and backend keywords using competitor research + keyword scoring + FABE copywriting. Two modes: (A) Create — generate listing from product specs with optional competitor analysis, (B) Optimize — improve…

nexscope-ai/eCommerce-Skills · 126 tokens