woocommerce-blocks

woocommerce-blocks is a skill for Claude Code, Codex from finsilabs/awesome-ecommerce-skills. It costs 27 tokens per session (3,105 once invoked), scanned A, original, MIT.

A guide to extending WooCommerce cart and checkout pages with Gutenberg blocks, the WordPress editor’s reusable page components. It covers React-based interface additions, server-rendered content, and Store API extensions.

In plain words
What is it for?
Use it to add gift-message fields, delivery dates, VAT fields, promotional content, custom checkout steps, and saved custom checkout data.
Why use it?
It helps add checkout behavior and content without changing WooCommerce’s core templates or relying on older shortcodes.

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 add gift-message fields, delivery dates, VAT fields, promotional content, custom checkout steps, and saved custom checkout data.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/finsilabs/awesome-ecommerce-skills/woocommerce-blocks"><img src="https://agentmods.dev/badge/skills/finsilabs/awesome-ecommerce-skills/woocommerce-blocks.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 3,105 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.03105
Opus 5 $0.00014 $0.01553
Sonnet 5 $0.00005 $0.00621
Haiku 4.5 $0.00003 $0.00311

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

Security

Grade A, and why

woocommerce-blocks 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 9d 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-blocks/SKILL.md · 383 lines

How it starts

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

WooCommerce Blocks

Overview

WooCommerce Blocks replaces the classic shortcode-based cart and checkout with React-powered Gutenberg blocks. Custom plugins can extend the Checkout Block by registering inner blocks (custom fields inside checkout steps), using SlotFills (inject UI into predefined injection points), and extending the Store API to save and retrieve custom data. The block-based checkout is the default for new WooCommerce stores since version 8.3.

When to Use This Skill

  • When adding custom fields to the checkout form (gift message, delivery date picker, VAT number)
  • When injecting promotional content or upsell banners into the cart or checkout block
  • When creating a custom checkout step with additional business logic
  • When replacing the legacy shortcode checkout on existing WooCommerce sites
  • When building a plugin that extends checkout behavior without modifying core templates

Core Instructions

  1. Register a Checkout Inner Block

    Inner blocks are React components that render inside a checkout step. They require PHP block registration + a JS/React frontend:

    <?php
    // my-checkout-fields/my-checkout-fields.php
    add_action('woocommerce_blocks_loaded', function () {
        if (!class_exists('Automattic\WooCommerce\Blocks\Integrations\IntegrationInterface')) {
            return;
        }
        require_once __DIR__ . '/class-my-checkout-integration.php';
        add_action(
            'woocommerce_blocks_checkout_block_registration',
            function ($integration_registry) {
                $integration_registry->register(new My_Checkout_Integration());
            }
        );
    });
    
    <?php
    // class-my-checkout-integration.php
    use Automattic\WooCommerce\Blocks\Integrations\IntegrationInterface;
    
    class My_Checkout_Integration implements IntegrationInterface {
        public function get_name() {
            return 'my-checkout-fields';
        }
    
        public function initialize() {
            $this->register_block_frontend_scripts();
            $this->register_inner_block();
        }
    
        private function register_block_frontend_scripts() {
            wp_register_script(
                'my-checkout-fields-frontend',
                plugin_dir_url(__FILE__) . 'build/frontend.js',
                ['wc-blocks-checkout', 'wp-element'],
                filemtime(plugin_dir_path(__FILE__) . 'build/frontend.js'),
                true
            );
        }
    
        private function register_inner_block() {
            register_block_type(plugin_dir_path(__FILE__) . 'build/blocks/gift-message/block.json');
        }
    
        public function get_script_handles() {
            return ['my-checkout-fields-frontend'];
        }
    
        public function get_editor_script_handles() {
            return [];
        }
    
        public function get_script_data() {
            return [];
        }
    }
    

Read the full file on GitHub · 383 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. 9d ago First seen · 383 lines · 27 tokens per session scan A 693b18ac6a01

Subscribe to this mod's changes

woocommerce-blocks 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 3,105 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.