woocommerce

woocommerce is a skill for Claude Code from TheBeardedBearSAS/claude-craft. It costs 44 tokens per session (648 once invoked), scanned A, original, MIT.

A guide for developing WooCommerce extensions, which add or change features in the WordPress e-commerce platform. It covers orders, products, carts, checkout, and related WooCommerce interfaces.

In plain words
What is it for?
Use it when building or updating a WooCommerce plugin that handles orders, products, customers, payments, shipping, emails, webhooks, or checkout blocks.
Why use it?
It helps avoid outdated or unsafe ways of reading and changing WooCommerce data, especially as orders move to high-performance order storage. It also keeps extensions compatible with newer checkout features.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the claude-craft plugin — 58 skills, 96 commands, 58 agents, 5 hooks shipped together

Good fit Use it when building or updating a WooCommerce plugin that handles orders, products, customers, payments, shipping, emails, webhooks, or checkout blocks.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/thebeardedbearsas/claude-craft/woocommerce
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 TheBeardedBearSAS/claude-craft --skill woocommerce
Clone the repo
git clone --depth 1 https://github.com/TheBeardedBearSAS/claude-craft

Made for: Claude Code.

Or install claude-craft, the plugin that ships this one along with the rest of its 58 skills, 96 commands, 58 agents, 5 hooks.

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 woocommerce

README.md
[![agentmods](https://agentmods.dev/badge/skills/thebeardedbearsas/claude-craft/woocommerce/github.svg)](https://agentmods.dev/skills/thebeardedbearsas/claude-craft/woocommerce)
Your own site
<a href="https://agentmods.dev/skills/thebeardedbearsas/claude-craft/woocommerce"><img src="https://agentmods.dev/badge/skills/thebeardedbearsas/claude-craft/woocommerce/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 woocommerce

Your own site · 80×15
<a href="https://agentmods.dev/skills/thebeardedbearsas/claude-craft/woocommerce"><img src="https://agentmods.dev/badge/skills/thebeardedbearsas/claude-craft/woocommerce.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 44 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 648 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.00044 $0.00648
Opus 5.5 $0.00018 $0.00259
Sonnet 5.5 $0.00009 $0.00130
Haiku 4.5 $0.00004 $0.00065

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

Security

Grade A, and why

woocommerce 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 25d 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.

Dev/i18n/base/WordPress/skills/woocommerce/SKILL.md · 41 lines

How it starts

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

WooCommerce Extension Development

Optional module of the WordPress stack (WooCommerce 11.2 line, WordPress 7.0+, PHP 7.4+). Load it only when the project depends on WooCommerce. The WordPress core rules (hooks, security, i18n, tests) still apply.

When to Use

  • Plugin header has Requires Plugins: woocommerce, or code calls wc_* functions, WC_Order, WC_Product, WC()
  • Work touches orders, products, customers, cart, checkout, payment gateways, shipping, emails or webhooks
  • A before_woocommerce_init hook or FeaturesUtil call is present or missing

Key Rules

  1. HPOS first: orders are not posts. Use wc_get_order(), wc_get_orders(), $order->get_meta() and $order->update_meta_data() followed by $order->save(). Never get_post(), WP_Query or *_post_meta() on orders
  2. Declare compatibility on before_woocommerce_init with FeaturesUtil::declare_compatibility() for custom_order_tables and cart_checkout_blocks, guarded by class_exists()
  3. Use the CRUD layer (WC_Data, WC_Product, WC_Customer, WC_Order) for reads and writes; avoid direct SQL on WooCommerce tables
  4. Blocks-ready checkout: extend Cart and Checkout through the Store API (woocommerce_store_api_register_endpoint_data, ExtendSchema) and block integrations (IntegrationInterface, slot-fills), not only classic template hooks
  5. Security: verify payment webhooks (signature plus hash_equals()), never trust client-sent prices or totals, check capabilities (manage_woocommerce, edit_shop_order), escape all order data on output
  6. Dependency guard: do not run when WooCommerce is inactive; rely on Requires Plugins and check class_exists( 'WooCommerce' ) for load-order safety

Where to Look

  • Detailed APIs, snippets, hooks, Store API, gateways, REST, testing: REFERENCE.md (this folder)
  • Auditable items for reviews and /wordpress:check: checklist.md (this folder)
  • Core WordPress rules: .claude/references/wordpress/rules/

Read the full file on GitHub · 41 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 25d ago First seen · 41 lines · 44 tokens per session scan A c1103ab4797b

Subscribe to this mod's changes

woocommerce is a skill published in the GitHub repository TheBeardedBearSAS/claude-craft (108 stars, last pushed 19d ago), licensed MIT. It adds 44 tokens to every session and 648 once invoked, about $0.0002 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-11-11.

Related

woocommerce compared with skills from other repositories

woocommerce next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
woocommerceTheBeardedBearSAS/claude-craftSkill10819d agoMITA44Claude Code
agent-payment-billing-specialisttravisjneuman/.claudeSkill116todayMITA67Claude Code
agent-monetization-experttravisjneuman/.claudeSkill116todayMITA24Claude Code
impact-report-writertravisjneuman/.claudeSkill116todayMITA43Claude Code
product-managementtravisjneuman/.claudeSkill116todayMITA58Claude Code
ai-ml-developmenttravisjneuman/.claudeSkill116todayMITA43Claude Code
generic-fullstack-code-reviewertravisjneuman/.claudeSkill116todayMITA64Claude Code