WooCommerce code written from memory targets the platform of three years ago, and with money on the line that's a problem. This runs an opinionated guard pass after code generation, catching the systematic failures AI agents make: order meta accessed through get_post_meta instead of CRUD (breaks on HPOS stores), checkout validation only in JavaScript, prices computed as floats, and hooks registered before checking if WooCommerce is even active. It enforces HPOS compatibility declarations, server-side validation for both legacy and Blocks checkout, and proper money handling through wc_format_decimal. Best used reactively after an agent writes payment gateways, checkout customizations, or anything touching wc_get_order, the cart session, or order meta. Ships with a self-check grep list and a concrete review checklist.

skills.sh installs
2.6K
GitHub stars
1.3K
last updated
Aug 21, 2026

Install

$ npx -y skills add amelnagdy/guard-skills --skill woo-guard --agent claude-code

Installs into .claude/skills of the current project.

Files

Woo Guard

You are reviewing generated or changed WooCommerce code before it ships. Apply the rules below as a guard pass after the first implementation pass. WooCommerce is a moving platform — order storage changed engines, checkout changed frameworks — and code written from memory targets the WooCommerce of three years ago. With money on the line, "works on my demo store" is not a standard.

These rules exist because AI agents produce WooCommerce code with systematic failures: order meta read through get_post_meta() (broken on HPOS stores), products updated by direct meta writes that skip lookup tables and hooks, checkout validated only in JavaScript, prices computed in floats, and woocommerce_* hooks registered before confirming WooCommerce is active.

How to use this skill

Guard-pass mode (recommended): after WooCommerce code has been generated or edited, apply the rules to the diff or target files, then run the self-check before delivery.

Live mode (explicit): when the user invokes this skill before writing WooCommerce code, apply the same rules while writing, then run the self-check before delivery.

Sponsors

Details

Repository
github.com/amelnagdy/guard-skills
Categories
Frontend Development, Backend & APIs, Testing & QA, Git & Pull Requests, Code Review & Quality, AI & Agent Building, CLI & Terminal, Finance & Trading, PHP & Laravel
First seen
Jun 11, 2026

More from amelnagdy/guard-skills

All 5
1freshtechbro avatarsubstance-3d-texturingfreshtechbro/claudedesignskillsComprehensive skill for Adobe Substance 3D Painter texturing and material creation workflow. Use this skill when creating PBR materials, exporting textures for 2.6Kskills.sh installs
2davila7 avatarmarkitdowndavila7/claude-code-templatesConvert files and office documents to Markdown. Supports PDF, DOCX, PPTX, XLSX, images (with OCR), audio (with transcription), HTML, CSV, JSON, XML, ZIP, YouTub2.5Kskills.sh installs
3freshtechbro avatarplaycanvas-enginefreshtechbro/claudedesignskillsLightweight WebGL/WebGPU game engine with entity-component architecture and visual editor integration. Use this skill when building browser-based games, interac2.5Kskills.sh installs
4rendercv avatarrendercvrendercv/rendercv-skillCreate professional CVs and resumes with perfect typography using RenderCV (v2.8). Users write content in YAML, and RenderCV produces publication-quality PDFs v2.5Kskills.sh installs
5nvidia avatarrag-evalnvidia/skillsFilesystem RAG benchmarks: corpus/, train.json, evaluate_rag.py (RAGAS quality). Not for prod monitoring, latency/throughput benchmarking (use rag-perf), or eva2.5Kskills.sh installs
6alirezarezvani avatarengineering-skillsalirezarezvani/claude-skillsIndex of the engineering-team skills bundle for Claude Code, Codex, Gemini CLI, Cursor, OpenClaw, and 6 more tools. Architecture, frontend, backend, QA, DevOps,2.4Kskills.sh installs