From wordpress-expert
Reviews WordPress PHP/JS/CSS/HTML code against WPCS standards, static analysis with PHPCS/PHPStan/ESLint, architecture patterns, error handling, and deprecated functions. Use for custom themes/plugins.
How this skill is triggered — by the user, by Claude, or both
Slash command
/wordpress-expert:code-qualityThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
- PHP code adheres to WordPress PHP Coding Standards
if ( true === $var ))WP_Error objects rather than false or exceptions for API boundariesmysql_* functions completely absentcreate_function() replaced with closureseach() replaced with foreach# Install WordPress Coding Standards
composer require --dev wp-coding-standards/wpcs
# Run PHPCS with WordPress standards
phpcs --standard=WordPress /path/to/plugin-or-theme
# Run with specific rulesets
phpcs --standard=WordPress-Extra /path/to/plugin
phpcs --standard=WordPress-VIP-Go /path/to/plugin
# PHPStan (static analysis)
composer require --dev phpstan/phpstan szepeviktor/phpstan-wordpress
phpstan analyse --level=max /path/to/src
# Psalm (type safety)
composer require --dev vimeo/psalm
psalm --init
psalm
# PHP Linting (syntax check)
find /path/to/plugin -name "*.php" -exec php -l {} \;
# ESLint with WordPress preset
npm install --save-dev eslint @wordpress/eslint-plugin
eslint /path/to/js-files
# Stylelint for CSS
npm install --save-dev stylelint stylelint-config-wordpress
stylelint "**/*.css"
npx claudepluginhub dr-robert-li/cowork-wordpress-expertAnalyzes code quality in custom WordPress themes and plugins using two-pass approach: quick grep scans for deprecated functions and anti-patterns, then AI contextual review of flagged PHP/JS files.
Automatically checks code against PHPCS, ESLint, WordPress Coding Standards, or Drupal Coding Standards. Useful for code style and standards compliance questions.
Reviews WordPress plugin pull requests for security, performance, WPCS standards, and backward compatibility. Supports GitHub, GitLab, and local diffs.