What problem does it solve?
This Skill helps prevent WooCommerce code from shipping with compatibility, checkout, pricing, and data-access mistakes that can break stores or cause financial errors. It is especially useful when AI-generated or recently edited code touches orders, products, checkout flows, gateways, stock, or WooCommerce hooks.
Core Features & Use Cases
- HPOS-safe code review: Flags legacy order access patterns like post meta reads and shop_order queries that fail on High-Performance Order Storage stores.
- CRUD and checkout enforcement: Verifies that orders, products, customers, and coupons use WooCommerce CRUD APIs and that checkout validation happens server-side for legacy checkout, Blocks, or both.
- Money and runtime safeguards: Detects float-based price handling, unsafe cart or session access, missing compatibility declarations, and fragile template overrides.
- Use Case: Review a WooCommerce plugin update after adding a checkout field, changing order metadata, or integrating a payment callback to catch HPOS breakage, skipped hooks, and pricing errors before deployment.
Quick Start
Ask the AI to use woo-guard to review your changed WooCommerce files for HPOS compatibility, CRUD correctness, checkout validation, and money-handling issues.