Set up and run PHP_CodeSniffer with the WordPress Coding Standards (WPCS) and PHPCompatibility on a plugin or theme. Covers the composer dev-dependencies and their exact (and confusingly-named) packages — squizlabs/php_codesniffer, wp-coding-standards/wpcs, phpcompatibility/phpcompatibility-wp, dealerdirect/phpcodesniffer-composer-installer — the required allow-plugins config, the phpcs.xml.dist ruleset (the WordPress / -Core / -Extra / -Docs standards, prefixes, text_domain, minimum_wp_version, testVersion), running phpcs (check) vs phpcbf (auto-fix), phpcs -i, phpcs:ignore / disable comments, and the WPCS 3.x breaking changes (sniff and property renames such as minimum_supported_version -> minimum_wp_version). Use when adding coding-standards linting, writing/auditing a ruleset, or fixing "standard not installed" / WPCS 2.x-to-3.x migration problems.
$npx -y skills add lonsdale201/wp-agent-skills --skill wp-phpcs-coding-standardsInstalls into the current project.
Run `npx skills use "https://github.com/lonsdale201/wp-agent-skills" --skill "lonsdale201/wp-agent-skills/wp-phpcs-coding-standards"` and follow the generated skill instructions now. Read its complete output, redirecting it to a temporary file first if necessary. Resolve relative paths from the supporting-files directory it provides.
Use the skills in "https://github.com/lonsdale201/wp-agent-skills" that are relevant to the current task. Run `npx skills add "https://github.com/lonsdale201/wp-agent-skills"` and select the relevant skills, then follow their instructions.