woocommerce-plugin-development

woocommerce-plugin-development is a skill for Claude Code, Codex from finsilabs/awesome-ecommerce-skills. It costs 28 tokens per session (4,268 once invoked), scanned A, original, MIT.

A guide to creating WooCommerce plugins, which are WordPress add-ons that extend an online store. It uses WordPress extension hooks, settings pages, custom data fields, and REST API additions.

In plain words
What is it for?
Use it to build custom shipping, payment, discount, checkout, order, product, admin, and API features.
Why use it?
It lets you add store behavior without editing WooCommerce’s core files, so updates are less likely to overwrite your changes.

Skill for Claude CodeCodex

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

Good fit Use it to build custom shipping, payment, discount, checkout, order, product, admin, and API features.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/finsilabs/awesome-ecommerce-skills/woocommerce-plugin-development
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 woocommerce-plugin-development
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 woocommerce-plugin-development

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/finsilabs/awesome-ecommerce-skills/woocommerce-plugin-development"><img src="https://agentmods.dev/badge/skills/finsilabs/awesome-ecommerce-skills/woocommerce-plugin-development.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 28 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,268 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.00028 $0.04268
Opus 5 $0.00014 $0.02134
Sonnet 5 $0.00006 $0.00854
Haiku 4.5 $0.00003 $0.00427

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

Security

Grade A, and why

woocommerce-plugin-development 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 6d 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/platform-woocommerce/woocommerce-plugin-development/SKILL.md · 495 lines

How it starts

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

WooCommerce Plugin Development

Overview

Build custom WooCommerce plugins that extend store functionality using WordPress hooks (actions and filters), the WooCommerce Settings API, custom post types and meta boxes, REST API extensions, and HPOS (High-Performance Order Storage) compatibility. This skill covers plugin architecture, the WooCommerce lifecycle hooks for orders and products, and patterns for building maintainable, upgrade-safe extensions.

When to Use This Skill

  • When building a custom feature that extends WooCommerce (custom shipping, payment, or discount logic)
  • When creating a plugin that adds admin settings and configuration pages
  • When hooking into the WooCommerce checkout, order, or product lifecycle
  • When extending the WooCommerce REST API with custom endpoints
  • When migrating a plugin to support HPOS (High-Performance Order Storage)

Core Instructions

  1. Set up the plugin boilerplate

    <?php
    /**
     * Plugin Name: My Custom WooCommerce Extension
     * Description: Adds custom functionality to WooCommerce
     * Version: 1.0.0
     * Author: Your Name
     * Requires Plugins: woocommerce
     * WC requires at least: 8.0
     * WC tested up to: 9.0
     *
     * @package MyWooExtension
     */
    
    defined('ABSPATH') || exit;
    
    // Check if WooCommerce is active
    if (!in_array('woocommerce/woocommerce.php', apply_filters('active_plugins', get_option('active_plugins')))) {
        return;
    }
    
    define('MWE_VERSION', '1.0.0');
    define('MWE_PLUGIN_DIR', plugin_dir_path(__FILE__));
    define('MWE_PLUGIN_URL', plugin_dir_url(__FILE__));
    
    // Declare HPOS compatibility
    add_action('before_woocommerce_init', function () {
        if (class_exists(\Automattic\WooCommerce\Utilities\FeaturesUtil::class)) {
            \Automattic\WooCommerce\Utilities\FeaturesUtil::declare_compatibility(
                'custom_order_tables',
                __FILE__,
                true
            );
        }
    });
    
    // Initialize the plugin after WooCommerce loads
    add_action('woocommerce_loaded', function () {
        require_once MWE_PLUGIN_DIR . 'includes/class-mwe-main.php';
        MWE_Main::instance();
    });
    

Read the full file on GitHub · 495 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. 6d ago First seen · 495 lines · 28 tokens per session scan A 9c8d8ea76f8a

Subscribe to this mod's changes

woocommerce-plugin-development is a skill published in the GitHub repository finsilabs/awesome-ecommerce-skills (52 stars, last pushed 6mo ago), licensed MIT. It adds 28 tokens to every session and 4,268 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-09-03.

Related

Other skills, from other repositories

wordpress-plugin-fundamentals

Modern WordPress plugin development with PHP 8.3+, OOP architecture, hooks system, database interactions, and Settings API.

bobmatnyc/claude-mpm-skills · 32 tokens

wcs-subscription-hooks

Curated WooCommerce Subscriptions hook map for subscription creation, status/date transitions, renewal orders, scheduled payments, retries, gateway events, switching, gifting, related orders, APFS plans, REST, and account/admin UI. Use when choosing where to hook around WCSubscription, wcscreatesubscription…

Lonsdale201/wp-agent-skills · 106 tokens

wc-order-lifecycle-and-items

Work safely with WooCommerce order statuses, payment completion, status hooks, order items, line-item meta, totals, stock side effects, and paid analytics/conversion idempotency. Covers paymentcomplete() vs updatestatus(), status-hook ordering, woocommercethankyou vs paid events, replay-safe external side effects…

Lonsdale201/wp-agent-skills · 121 tokens

wcs-renewal-scheduler

Safely integrate with WooCommerce Subscriptions renewal scheduling, Action Scheduler, renewal-order creation, gateway charge dispatch, guarded process-renewal-now commands, and retries. Use for WCSubscription::updatedates, wcscreaterenewalorder, woocommercescheduledsubscriptionpayment, gateway-specific scheduled…

Lonsdale201/wp-agent-skills · 85 tokens

wc-cart-checkout-classic

Customize the classic WooCommerce cart and shortcode checkout with woocommerceaddcartitemdata, woocommercegetitemdata, woocommercebeforecalculatetotals, woocommercecartcalculatefees, woocommercecheckoutfields, woocommerceaftercheckoutvalidation, woocommercecheckoutcreateorder, and…

Lonsdale201/wp-agent-skills · 134 tokens

wc-coupon-dynamic

Build or audit WooCommerce virtual coupons resolved at runtime without a shopcoupon row. Covers woocommercegetshopcoupondata, the readmanualcoupon() data contract, reserved code namespaces and resolver precedence, database-fallback collisions, request caching, Store API and classic checkout behavior, validation…

Lonsdale201/wp-agent-skills · 135 tokens