Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

woocommerce-security

Skill by wpultimatesecurity

Guides developers on secure WooCommerce plugin code, covering capability checks, input sanitizing, PII escaping and payment data handling. Aimed at plugin and theme authors who read or write orders, customers or Store API routes.

  • Score 51
  • 56 stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install woocommerce-security

Built from the published package, never by AI.

git clone --depth 1 https://github.com/wpultimatesecurity/WordPress-Security-Skills /tmp/WordPress-Security-Skills && mkdir -p ~/.claude/skills && cp -r /tmp/WordPress-Security-Skills/skills/woocommerce-security ~/.claude/skills/woocommerce-security

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install woocommerce-security in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

WooCommerce security is an agent skill that tells an AI assistant how to write secure code for plugins or themes that extend WooCommerce. It covers reading and writing orders, products, customers and coupons, hooking checkout and order status actions, and adding REST or Store API endpoints. It asks for WooCommerce capabilities such as edit_shop_orders and manage_woocommerce instead of generic WordPress capabilities.

The skill sets rules for sanitizing input with wc_clean, validating order IDs before acting, and using CRUD setters instead of raw post meta. It says never to store full card data, to escape customer PII on output, and to use real permission callbacks on REST routes. It includes five anti-pattern examples with fixes, a checklist and a sample secure order handler. It is written for developers and AI assistants working on WooCommerce extensions and is licensed under MIT.

Written from the project's SKILL.md and checked against it.

What it can do

  • Capability gatingChecks WooCommerce capabilities such as edit_shop_orders and manage_woocommerce before shop actions.
  • Input sanitizingCleans user-supplied data with wc_clean, sanitize_text_field and absint.
  • Order ID validationLoads orders with wc_get_order and confirms the user may act on them first.
  • CRUD object useUses WC_Order setters and save instead of raw update_post_meta calls.
  • Payment data minimizationStores gateway tokens or token references instead of card numbers or CVV.
  • PII escapingEscapes customer names, emails, addresses and phone numbers on output.
  • REST and Store API permissionsRequires real permission_callback handlers instead of __return_true.
  • Anti-pattern reviewShows five common insecure patterns with secure replacements.
  • Security checklistProvides a checklist for verifying WooCommerce security controls before release.

What you need

  • WordPress
  • WooCommerce
  • PHP

Try asking

  • Review my WooCommerce plugin's order handler for missing capability checks.
  • Write a secure Store API route that returns the current customer's orders.
  • Escape customer billing details in my order admin meta box output.

Good to know

  • Examples use PHP 7.4 syntax and should be checked against target WordPress and PHP versions.
  • Covers WooCommerce code patterns only. GDPR export and erase hooks are handled by a related skill.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: skills/woocommerce-security/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to woocommerce-security

All alternatives →

Compare with function_health, windows-privilege-escalation or github-actions-advanced

woocommerce-security: common questions

Does this skill allow storing card numbers or CVV?

No. It says never to store full card numbers, CVV or magnetic-stripe data, and to use the gateway token system instead.

Which capability should I use for WooCommerce orders?

The skill recommends edit_shop_orders or edit_others_shop_orders for orders and manage_woocommerce for shop settings, rather than edit_posts or manage_options.

Does it cover GDPR export and erase?

It mentions GDPR export and erase hooks and points to a separate user-data-protection-privacy skill for them.

How do I install woocommerce-security?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is woocommerce-security free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is woocommerce-security safe to use?

It scores 51 of 100. Grades: maintenance B, licence A, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to woocommerce-security?

Similar skills: function_health, windows-privilege-escalation, github-actions-advanced, propose-security-hardening.

woocommerce-security Install

Add to stack

Loading.