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.
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-securityRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/wpultimatesecurity/WordPress-Security-Skills /tmp/WordPress-Security-Skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/WordPress-Security-Skills/skills/woocommerce-security ~/.gemini/antigravity-cli/skills/woocommerce-securityAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install woocommerce-security in Antigravity CLI
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
ANo 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 →Retrieves lab biomarker results and clinician notes from Function Health through its FHIR API. It is for people who want an AI assistant to review their own lab history and notes.
Gives an AI assistant a methodology for finding and exploiting privilege escalation weaknesses on Windows systems during authorized penetration tests. It is for security testers and defenders validating escalation paths.
Guides the assistant through designing, debugging and hardening GitHub Actions CI/CD workflows. It is aimed at teams that run production pipelines on GitHub.
Develops evidence-backed structural security hardening proposals from disclosures, findings, source code, or Codex Security scans. It is for teams that need systemic fixes and architectural tradeoffs.
Claude Security scans code for security issues with Claude Code. It covers whole repositories, branch or pull request diffs, single commits, and existing findings from SARIF files or earlier reports.
Turns vulnerability notes, disclosure reports, PoCs, source code, or Codex Security findings into self-contained vulnerability reports. Built for security researchers who need claims the evidence supports.
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.
