Проверка стандартов кода WP Rocket

★ 6.9 · code-review-automation

Проверка соответствия стандартам (Compliance Check) is a Claude Code skill that validates PHP and JavaScript changes in the WP Rocket plugin against WordPress.org plugin rules and the repository's PHPCS configuration. Reach for it when you want a pre-review sanity check on new code, when output escaping feels wrong for the context, when someone used `manage_options` instead of WP Rocket's custom capabilities, or when translation calls are using an incorrect text domain. The skill audits: context-appropriate escaping (`esc_html()`, `esc_attr()`, `esc_url()`, `wp_kses_post()`), the `rocket` text domain in every translation call, `rocket_manage_options` capability checks instead of bare `manage_options`, absence of unescaped variable output and unsanitized superglobal access, and no jQuery in new or modified JS — native DOM APIs only. Configuration targets the `wp-media/wp-rocket` repository and references specs from `.claude/specs/phpcs/`. This is a compliance-checking skill, not an auto-formatter or code generator — for those, see neighboring skills in the code-review-automation category. Git operations follow AGENTS.md §5.1; `git commit` and `git push` are off-limits outside the issue workflow. Best suited for teams working on WP Rocket itself; adapting it to other plugins requires updating the text domain and capability constants.