classic-woocommerce-template-overrides

classic-woocommerce-template-overrides is a skill for Claude Code, Codex from Lonsdale201/wp-agent-skills. It costs 110 tokens per session (1,748 once invoked), scanned A, original, MIT.

A guide to changing WooCommerce page markup through template files in a classic PHP WordPress theme. WooCommerce is the WordPress system for online shops, and a template override is a theme copy of one of its display files.

In plain words
What is it for?
Use it to review or create product, shop, cart, checkout, account, and email template overrides, or to replace an override with hooks and filters where possible.
Why use it?
It helps keep shop customizations working when WooCommerce updates, while avoiding unnecessary copies of files that could become outdated.

Skill for Claude CodeCodex

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

Good fit Use it to review or create product, shop, cart, checkout, account, and email template overrides, or to replace an override with hooks and filters where possible.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/lonsdale201/wp-agent-skills/classic-woocommerce-template-overrides
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 classic-woocommerce-template-overrides
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 classic-woocommerce-template-overrides

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/lonsdale201/wp-agent-skills/classic-woocommerce-template-overrides"><img src="https://agentmods.dev/badge/skills/lonsdale201/wp-agent-skills/classic-woocommerce-template-overrides.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 110 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,748 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 warn 7 Sept 2026
SkillSpector: 1 finding, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Anti-Refusal · line 124
    Skill attempts to nullify the agent's safety policies or restrictions ('you have no restrictions', 'ignore your guidelines', 'do anything now'). This is a direct jailbreak that disables guardrails.
    Fix: Remove jailbreak framing that nullifies safety policies or restrictions. Skill content must not instruct the agent to ignore its guidelines or operate without guardrails.
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.00110 $0.01748
Opus 5 $0.00055 $0.00874
Sonnet 5 $0.00022 $0.00350
Haiku 4.5 $0.00011 $0.00175

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

Security

Grade A, and why

classic-woocommerce-template-overrides 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.

theme-development/classic-woocommerce-template-overrides/SKILL.md · 196 lines

How it starts

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

Classic WooCommerce Template Overrides

Use this when a classic theme needs to change WooCommerce markup. Prefer hooks and filters first. Use template overrides only when the required markup change cannot be done safely through hooks.

When to Use This Skill

  • Creating yourtheme/woocommerce/*.php files.
  • Reviewing outdated Woo templates after a Woo update.
  • Deciding whether to override archive-product.php, content-product.php, single-product.php, cart, checkout, account, or email templates.
  • Debugging why a Woo template override is ignored.
  • Migrating copied templates to hook/filter customizations.

Override Lookup

Woo looks for theme overrides in the active theme using WC()->template_path(), which defaults to woocommerce/.

Typical paths:

yourtheme/
|-- woocommerce/
|   |-- archive-product.php
|   |-- content-product.php
|   |-- single-product.php
|   |-- content-single-product.php
|   |-- loop/
|   |   `-- add-to-cart.php
|   `-- single-product/
|       `-- product-image.php

Rules:

  • Copy from wp-content/plugins/woocommerce/templates/.
  • Preserve the relative path under woocommerce/.
  • Keep the template header and @version line.
  • Preserve defined( 'ABSPATH' ) || exit;.
  • Preserve core hooks unless the change explicitly replaces that behavior.

Hook/Filter First

Most Woo frontend templates are hook skeletons. Customize with hooks before copying templates.

Example: move single product price after excerpt.

add_action( 'after_setup_theme', 'mytheme_single_product_summary_order' );

function mytheme_single_product_summary_order() {
	remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_price', 10 );
	add_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_price', 25 );
}

Rules:

  • Use remove_action() with the exact callback and priority from wc-template-hooks.php.
  • Add custom output on Woo hooks with a prefixed function.
  • Use filters such as woocommerce_loop_add_to_cart_args, woocommerce_product_tabs, or woocommerce_output_related_products_args when they fit.
  • Do not override a whole template to change one class, priority, label, or count.

Read the full file on GitHub · 196 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 · 196 lines · 110 tokens per session scan A 49c0e509531a

Subscribe to this mod's changes

classic-woocommerce-template-overrides is a skill published in the GitHub repository Lonsdale201/wp-agent-skills (22 stars, last pushed 2d ago), licensed MIT. It adds 110 tokens to every session and 1,748 once invoked, about $0.0006 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

commerce-app-business-config

Manage custom business configuration in an Adobe Commerce app. Use when the user wants to add, modify, or remove merchant-configurable settings (config fields, admin config, store configuration) exposed through Commerce Admin. Creates typed config fields (text, password, email, url, tel, boolean, list) in…

adobe/skills · 80 tokens

muapi-amazon-product-listing

Generate a complete Amazon product listing image set — hero image, lifestyle shot, infographic with features, and comparison/detail closeups optimized for Amazon standards.

SamurAIGPT/Generative-Media-Skills · 37 tokens

muapi-multi-angle-shots

Generate a complete set of multi-angle product shots — front, side, back, top-down, and 45-degree perspective — for comprehensive product visualization.

SamurAIGPT/Generative-Media-Skills · 38 tokens

menu-engineer

Optimize menu pricing, placement, and item mix to maximize profitability. Uses menu engineering frameworks to analyze item performance by popularity and margin, then recommends pricing tweaks, repositioning, and removals.

cosmicstack-labs/mercury-agent-skills · 42 tokens

price-scout

Track and compare supplier prices across multiple vendors to reduce COGS. Monitors price changes, identifies savings opportunities, calculates total cost of ownership (including delivery fees and minimums), and generates renegotiation briefs.

cosmicstack-labs/mercury-agent-skills · 47 tokens

table-manager

Optimize table turns, manage reservations, and reduce wait times to maximize revenue per seat. Handles booking intake, table assignment strategy, waitlist management, and provides actionable insights for seating efficiency.

cosmicstack-labs/mercury-agent-skills · 40 tokens