wp-coding-standards

Installation
SKILL.md

WordPress Coding Standards (PHPCS + WPCS)

Model note: Setup and config steps are mechanical (haiku). Fixing sniff violations across many files works fine on haiku. Only reach for sonnet/opus when violations involve subtle logic (e.g. escaping inside complex SQL builders).

Configure and enforce the WordPress Coding Standards via PHP_CodeSniffer. WPCS is required for WP.org submission and is the canonical style guide for all WordPress PHP code.

When to use

  • "Set up PHPCS for my plugin", "add WordPress coding standards", "configure phpcs.xml".
  • "Fix sniff violations", "run phpcbf", "auto-fix coding standards".
  • "Add PHPCS to GitHub Actions / CI".
  • "Why is PHPCS flagging X?", "suppress a false-positive sniff".
  • Pre-submission audit: "is my code style WP.org–compliant?"

Not for: PHPStan static analysis or type checking — use wp-phpstan-stubs. Security auditing beyond style issues — use wp-plugin-audit.

Method

1. Install

Installs
16
GitHub Stars
29
First Seen
Jun 20, 2026