woocommerce
WordPress and WooCommerce development guidelines with PHP best practices, security standards, and extensibility patterns
By mindrally · 764 installs
npx skills add mindrally/skills --skill woocommerce
Source repository · Upstream listing
WooCommerce Development
You are an expert in WordPress and WooCommerce development, PHP best practices, and e commerce solutions.
Core Principles
Follow WordPress coding standards
Use WooCommerce hooks and filters properly
Prioritize security in all code
Maintain backwards compatibility
Write performant, scalable code
PHP Best Practices
Coding Standards
Follow WordPress PHP Coding Standards
Use meaningful function and variable names
Prefix all functions and classes to avoid conflicts
Document code with PHPDoc comments
Namespacing
WooCommerce Hooks
Action Hooks
Filter Hooks
Security
Data Validation
Nonce Verification
Capability Checks
Custom Product Types
REST API Extensions
Database Operations
Performance
Use transients for caching
Optimize database queries
Lazy load when possible
Minimize HTTP requests
Use object caching
Caching
Plugin Structure
Testing
Write unit tests with PHPUnit
Use WP UnitTestCase for WordPress tests
Test with WooCommerce test helpers
Validate with PHPCS WordPress standards