woocommerce-code-review — Claude Code skill: what it does
Checks WooCommerce changes against PHP, JS/TS, testing, and UI copy conventions. Useful for local reviews and automated PR checks.
npx skills add woocommerce/woocommerce --skill woocommerce-code-review -a claude-codeWhat woocommerce-code-review does
This skill reviews WooCommerce code changes against project conventions. For PHP, it checks class structure, dependency injection, file placement, snake_case, WordPress-style conditions, enum constants, docblocks, and @since annotations. It also looks for state validation before data is changed or deleted.
For tests, the skill checks use of $sut, @testdox, test file naming, and cleanup that duplicates the base lifecycle. In JS/TS it flags a file importing from its own package barrel when that barrel re-exports the file, which can create a circular dependency. It also catches Title Case in UI text where sentence case is expected. For a complete review, consult woocommerce-backend-dev, woocommerce-dev-cycle, and woocommerce-copy-guidelines, because this skill points to them for detailed standards and examples.
Findings are grouped by issue type and tied to a file, line, relevant standard, and suggested fix. The skill can be used with Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, and OpenCode.
What it helps with
- check PHP changes against WooCommerce conventions
- spot self-imports from a re-exporting package barrel
- find missing docblocks and
@sinceannotations - catch test cleanup duplicated by the fixture lifecycle
- flag Title Case in UI copy
Example prompts for the agent
- Review the current WooCommerce changes and group findings by issue type.
- Review the PHP code in this PR. Give the file, line, standard, and a concise fix for each issue.
- Check the JS/TS and UI copy for barrel self-imports and sentence-case violations.
How to install woocommerce-code-review
1Skills CLI (Vercel)
npx skills add woocommerce/woocommerce --skill woocommerce-code-review -a claude-code2Manually: put the files in place
~/.claude/skills/woocommerce-code-review/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/woocommerce-code-review/
1Skills CLI (Vercel)
npx skills add woocommerce/woocommerce --skill woocommerce-code-review -a codex2Manually: put the files in place
.agents/skills/woocommerce-code-review/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add woocommerce/woocommerce --skill woocommerce-code-review -a cursor2Manually: put the files in place
.cursor/skills/woocommerce-code-review/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install woocommerce/woocommerce woocommerce-code-review2Manually: put the files in place
.github/skills/woocommerce-code-review/SKILL.md1Skills CLI (Vercel)
npx skills add woocommerce/woocommerce --skill woocommerce-code-review -a gemini-cli2Platform CLI
gemini skills install https://github.com/woocommerce/woocommerce --path .ai/skills/woocommerce-code-reviewManually: put the files in place
.devin/skills/woocommerce-code-review/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add woocommerce/woocommerce --skill woocommerce-code-review -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
From the same set2
The whole set →Similar
Questions about woocommerce-code-review
How do I install woocommerce-code-review in Claude Code?
Run npx skills add woocommerce/woocommerce --skill woocommerce-code-review -a claude-code, then run npx skills add woocommerce/woocommerce --skill woocommerce-code-review -a claude-code again. The skill file is at ~/.claude/skills/woocommerce-code-review/SKILL.md.
What does woocommerce-code-review do?
It reviews WooCommerce changes for PHP, JS/TS, testing, and UI copy conventions. Each finding includes a location, the relevant standard, and a suggested fix.
Which PHP issues does it check?
It checks standalone functions instead of class methods, new for DI-managed classes, camelCase names, missing @since or docblocks, raw values where enum constants apply, and missing state validation before data changes or deletion.