wp-phpcs-coding-standards
Installation
SKILL.md
WordPress coding standards with PHPCS
PHP_CodeSniffer (phpcs) checks code against a ruleset; phpcbf auto-fixes what it can. The WordPress Coding Standards (WPCS) are the rulesets; PHPCompatibility flags syntax that breaks on your minimum PHP version. This skill wires them up correctly — the package names and the WPCS 3.x renames are where people get stuck.
When to use this skill
- Adding coding-standards linting to a plugin/theme (or to the
.phpcs.xml.distthe test scaffolder dropped in). - Writing or auditing a
phpcs.xml.distruleset. - Fixing "Referenced sniff … does not exist", "standard not installed", or
allow-pluginserrors. - Migrating a ruleset from WPCS 2.x to 3.x.