wc-variations-data

wc-variations-data is a skill for Claude Code, Codex from Lonsdale201/wp-agent-skills. It costs 84 tokens per session (3,965 once invoked), scanned A, original, MIT.

A guide to reading, querying, and changing WooCommerce product variations through WooCommerce's data layer. A variation is a specific option set of a variable product, such as a particular size and color.

In plain words
What is it for?
Use it when importing, synchronizing, creating, updating, deleting, or reading product variations and their catalog prices or stock data.
Why use it?
It prevents catalog prices, stock status, and frontend choices from showing old information after a variation changes. WooCommerce caches some parent-product data, so direct database writes can leave it stale.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when importing, synchronizing, creating, updating, deleting, or reading product variations and their catalog prices or stock data.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/lonsdale201/wp-agent-skills/wc-variations-data
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 Lonsdale201/wp-agent-skills --skill wc-variations-data
Clone the repo
git clone --depth 1 https://github.com/Lonsdale201/wp-agent-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 wc-variations-data

README.md
[![agentmods](https://agentmods.dev/badge/skills/lonsdale201/wp-agent-skills/wc-variations-data/github.svg)](https://agentmods.dev/skills/lonsdale201/wp-agent-skills/wc-variations-data)
Your own site
<a href="https://agentmods.dev/skills/lonsdale201/wp-agent-skills/wc-variations-data"><img src="https://agentmods.dev/badge/skills/lonsdale201/wp-agent-skills/wc-variations-data/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 wc-variations-data

Your own site · 80×15
<a href="https://agentmods.dev/skills/lonsdale201/wp-agent-skills/wc-variations-data"><img src="https://agentmods.dev/badge/skills/lonsdale201/wp-agent-skills/wc-variations-data.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 84 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,965 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00084 $0.03965
Opus 5.5 $0.00034 $0.01586
Sonnet 5.5 $0.00017 $0.00793
Haiku 4.5 $0.00008 $0.00396

Measured 2mo ago against content hash d4eae028f733, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

wc-variations-data 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 2mo 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.

woocommerce/wc-variations-data/SKILL.md · 278 lines

How it starts

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

WooCommerce: variations data layer (CRUD + cache)

For plugin code that reads, queries, or programmatically writes product variations. The pricing/display side (filter chain, sale-price overrides, frontend "Variation X is selected" hooks) is sibling skill wc-variations-pricing-filters — this one stops at the data layer.

Misconception this skill corrects

"A variation is just a product. I'll wp_insert_post( 'product_variation', ... ) and update_post_meta for price."

Variations work that way at the database level, but the data layer caches aggressively at the parent level. A raw post-insert leaves the parent's stored _price values, lookup table row, child-list transient, and wc_var_prices_<id> transient stale — your variation exists but the catalog shows the OLD price range, "Out of stock" stays on a re-stocked variable product, and frontend variation data may not see the new child until caches are rebuilt.

When to use this skill

Trigger when ANY of the following is true:

  • Programmatically creating, updating, or deleting variations (import scripts, sync from external system, CLI tools).
  • Reading variation prices for catalog display, custom listings, or reports.
  • Debugging "I added a variation programmatically and the parent's price range / stock didn't update".
  • Reviewing code where variations are touched via wp_insert_post, wp_update_post, update_post_meta, or raw $wpdb writes against product_variation post type.
  • The diff or file contains: WC_Product_Variation, WC_Product_Variable, get_variation_prices, get_available_variations, wc_var_prices_, sync_variation_names, or 'product_variation' post type references.

Mental model — two classes, one tree

Variable product (parent)
  post_type     = 'product'
  class         = WC_Product_Variable
  WP post id    = 100
  Holds:        product attributes (Color: Red, Blue; Size: S, M, L)
                cached min/max prices, derived stock status

  └── Variation (child)
      post_type   = 'product_variation'
      class       = WC_Product_Variation
      post_parent = 100
      WP post id  = 101, 102, 103, ...
      Holds:      attribute values (attribute_pa_color = red, attribute_pa_size = m)
                  own price, own stock, own SKU

Read the full file on GitHub · 278 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. 2mo ago Changed · -1 lines d4eae028f733
  2. 2mo ago First seen · 279 lines · 84 tokens per session scan A 812a03285c4c

Subscribe to this mod's changes

wc-variations-data is a skill published in the GitHub repository Lonsdale201/wp-agent-skills (26 stars, last pushed 10d ago), licensed MIT. It adds 84 tokens to every session and 3,965 once invoked, about $0.0003 per session on Opus 5.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-09-03.

Related

wc-variations-data compared with skills from other repositories

wc-variations-data next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
wc-variations-dataLonsdale201/wp-agent-skillsSkill2610d agoMITA84Claude Code, Codex
flightAILeoYeAI/openclaw-master-skillsSkill2.2k9d agoMITA63Claude Code, Codex
fb-hotel-skillLeoYeAI/openclaw-master-skillsSkill2.2k9d agoMITA54Claude Code, Codex
renewal-playbookmohitagw15856/pm-claude-skillsSkill1.6ktodayMITA88Claude Code, Codex
commerce-app-business-configadobe/skillsSkill342todayApache-2.0A80Claude Code
aes-landing-page-builderLeoYeAI/openclaw-master-skillsSkill2.2k9d agoMITA25Claude Code, Codex
acpmajiayu000/claude-skill-registrySkill754todayMITA0Claude Code, Codex