// Review WooCommerce code changes for coding standards compliance. Use when reviewing code locally, performing automated PR reviews, or checking code quality.
| name | woocommerce-code-review |
| description | Review WooCommerce code changes for coding standards compliance. Use when reviewing code locally, performing automated PR reviews, or checking code quality. |
Review code changes against WooCommerce coding standards and conventions.
Consult the woocommerce-backend-dev skill for detailed standards. Using these standards as guidance, flag these violations and other similar ones:
Architecture & Structure:
new for DI-managed classes - Classes in src/ must use $container->get() (dependency-injection.md)src/Internal/ - Default location unless explicitly public (file-entities.md)Naming & Conventions:
Documentation:
@since annotations - Required for public/protected methods and hooks (code-entities.md)Data Integrity:
Testing:
$instance in tests - Must use $sut variable name (unit-tests.md)@testdox - Required in test method docblocks (unit-tests.md)includes/ vs src/ (unit-tests.md)Consult the woocommerce-copy-guidelines skill. Flag:
For each violation found:
โ [Issue Type]: [Specific problem]
Location: [File path and line number]
Standard: [Link to relevant skill file]
Fix: [Brief explanation or example]
woocommerce-backend-dev, woocommerce-dev-cycle, and woocommerce-copy-guidelines skills