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

woo-guard

Skill by amElnagdy

Woo Guard reviews generated or changed WooCommerce code before it ships. It is for developers and agents writing extensions, payment and shipping integrations, checkout changes, and order or product logic.

  • Score 91
  • 1.3k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install woo-guard

Built from the published package, never by AI.

git clone --depth 1 https://github.com/amElnagdy/guard-skills /tmp/guard-skills && mkdir -p ~/.claude/skills && cp -r /tmp/guard-skills/skills/woo-guard ~/.claude/skills/woo-guard

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

Step-by-step: install woo-guard in Claude Code

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

About

Woo Guard is an agent skill that applies a set of rules to WooCommerce code after an first implementation pass. The rules cover HPOS-safe order access through the CRUD API, CRUD objects over direct meta writes, feature-compatibility declarations, server-side checkout validation, and money handling. They also cover runtime context checks, hooks over template overrides, and background work through Action Scheduler.

The skill supports three modes. Guard-pass mode checks a diff or target files after code is written. Live mode applies the rules while writing. Review mode walks a checklist and produces a structured findings report without editing code unless asked. It is meant for WooCommerce developers and for agents that write WooCommerce extensions.

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

What it can do

  • Guard-pass reviewApplies the rules to a diff or target files after WooCommerce code is generated or edited.
  • HPOS-safe order accessRequires wc_get_order, wc_get_orders and order CRUD methods instead of post meta calls.
  • Feature compatibility checksChecks for HPOS and cart_checkout_blocks compatibility declarations.
  • Server-side checkout validationRequires checkout rules to be enforced at woocommerce_checkout_process or Store API schemas.
  • Money handling rulesFlags float arithmetic, hardcoded currency symbols and number_format() on prices.
  • Runtime context guardsChecks WC()->cart and WC()->session access in REST, cron and CLI contexts.
  • Template override flaggingFlags template overrides shipped in a plugin and prefers hooks and filters instead.
  • Review mode reportProduces findings grouped by file, with rule number, risk and fix for each issue.

What you need

  • WooCommerce code to review or write
  • wp-guard installed for the full WordPress layer (optional)

Try asking

  • Review this WooCommerce plugin for HPOS compatibility issues.
  • Check this checkout field change for server-side validation gaps.
  • Guard this order status update code before I ship it.

Good to know

  • Does not cover the full WordPress layer beyond the security floor; wp-guard handles that.
  • Does not review store configuration, theme styling or payment provider account setup.
  • Does not decide pricing or business logic.
  • Review mode does not edit code unless the user asks.

Security check

A

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

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

Inside the skill

  • SKILL.md8 KB
  • agents/openai.yaml250 B
  • references/checkout-and-money.md3 KB
  • references/hpos-and-crud.md4 KB
  • references/review-checklist.md2 KB
Show all 6 files
  • references/sources.md925 B

Alternatives to woo-guard

All alternatives →
openclaw-github-repo-commandersickn33
94

Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.

AAA Skill 50k
gradiogradio-app
94

Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.

AAA Skill 44k
hig-components-menussickn33
94

Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.

AAA Skill 50k
fastapi-templateswshobson
94

Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.

AAA Skill 43k
appfunctionsandroid
94

Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.

AAA Skill 11k
agent-qa-authoringsickn33
94

Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.

AAA Skill 50k

Compare with openclaw-github-repo-commander, gradio or hig-components-menus

woo-guard: common questions

What is HPOS and why does Woo Guard check for it?

The source says WooCommerce order storage changed engines, and code that reads order data through get_post_meta() silently breaks on HPOS stores. Woo Guard requires order access through the CRUD API instead.

Does Woo Guard replace wp-guard or clean-code-guard?

No. The source says wp-guard covers WordPress code without WooCommerce APIs, clean-code-guard covers generic code review, and test-guard covers test review. Woo Guard can run alongside wp-guard.

Does Woo Guard check the store's checkout settings?

No. The source says it does not review store configuration or admin-screen questions. It checks that checkout rules are enforced server-side in the code.

How do I install woo-guard?

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

Is woo-guard free?

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

Is woo-guard safe to use?

It scores 91 of 100. Grades: maintenance A, licence A, quality A. 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 woo-guard?

Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.

woo-guard Install

Add to stack

Loading.