Skip to content
Kitbay
Skill

woocommerce-backend-dev

GPL-2.0-or-laterUpdated on Nov 11, 202610,592GitHub stars

A contributor skill kept in the WooCommerce repository for agents writing or changing WooCommerce's own back-end PHP.

What the skill teaches

A contributor skill kept in the WooCommerce repository for agents writing or changing WooCommerce's own back-end PHP. It must be used before writing unit tests, new classes or hooks, and points to companion files on file layout, naming, coding style, PHPStan-aware type annotations, hook callbacks, the dependency injection container, data integrity in CRUD code and unit test conventions. Key rules include using class methods instead of standalone functions, placing internal classes under src/Internal, and following the WordPress coding standards.

Capabilities

  • Follow WooCommerce PHP coding conventions
  • Write WooCommerce unit tests
  • Use the WooCommerce dependency injection container