woocommerce-backend-dev — Claude Code skill: WooCommerce PHP
Skill guides you through WooCommerce backend PHP development following project standards. Use it before creating new classes, modifying backend code, or writing unit tests.
npx skills add woocommerce/woocommerce --skill woocommerce-backend-dev -a claude-codeWhat woocommerce-backend-dev does
The skill covers naming conventions, coding style, hooks, and dependency injection for WooCommerce backend. It references project rules for file structure, PHPDoc annotations compatible with PHPStan, data integrity in CRUD operations, and test writing. Works with the Automattic\WooCommerce namespace and PSR-4 autoloading.
Inside are references to project documentation: class conventions, hook callbacks, DI container usage, unit test patterns. One key detail: the @since version comes from the $version property in includes/class-woocommerce.php on the trunk branch (strip -dev suffix if present). The skill expects you to run linting and tests before committing.
What it helps with
- write PHP classes following WooCommerce standards
- add hooks and filters with proper documentation
- use dependency injection in backend code
- prepare code before writing unit tests
- maintain PHPDoc and PHPStan type safety
Example prompts for the agent
- Create a new order handler class in `src/Internal/Orders` following WooCommerce conventions
- Add the `woocommerce_process_order` hook with a callback that matches project standards
- Set up a unit test file structure using woocommerce-backend-dev guidance before writing tests
How to install woocommerce-backend-dev
1Skills CLI (Vercel)
npx skills add woocommerce/woocommerce --skill woocommerce-backend-dev -a claude-code2Manually: put the files in place
~/.claude/skills/woocommerce-backend-dev/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/woocommerce-backend-dev/
1Skills CLI (Vercel)
npx skills add woocommerce/woocommerce --skill woocommerce-backend-dev -a codex2Manually: put the files in place
.agents/skills/woocommerce-backend-dev/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add woocommerce/woocommerce --skill woocommerce-backend-dev -a cursor2Manually: put the files in place
.cursor/skills/woocommerce-backend-dev/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install woocommerce/woocommerce woocommerce-backend-dev2Manually: put the files in place
.github/skills/woocommerce-backend-dev/SKILL.md1Skills CLI (Vercel)
npx skills add woocommerce/woocommerce --skill woocommerce-backend-dev -a gemini-cli2Platform CLI
gemini skills install https://github.com/woocommerce/woocommerce --path .ai/skills/woocommerce-backend-devManually: put the files in place
.devin/skills/woocommerce-backend-dev/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add woocommerce/woocommerce --skill woocommerce-backend-dev -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
From the same set2
The whole set →Similar
Questions about woocommerce-backend-dev
How do I install woocommerce-backend-dev in Claude Code?
Run npx skills add woocommerce/woocommerce --skill woocommerce-backend-dev -a claude-code, then check ~/.claude/skills/woocommerce-backend-dev/SKILL.md.
What does woocommerce-backend-dev do?
It provides guidance for WooCommerce PHP development: naming conventions, coding style, hooks, dependency injection, type annotations, and testing. Use it before building new classes and unit tests.
What version should I use in `@since` annotations?
Check includes/class-woocommerce.php on the trunk branch and read the $version property. Use that number in @since, removing the -dev suffix if present.