Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add skills/lonsdale201/wp-agent-skills/wp-phpcs-coding-standardsnpx skills add Lonsdale201/wp-agent-skills --skill wp-phpcs-coding-standardsgit clone --depth 1 https://github.com/Lonsdale201/wp-agent-skillsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/lonsdale201/wp-agent-skills/wp-phpcs-coding-standards)<a href="https://agentmods.dev/skills/lonsdale201/wp-agent-skills/wp-phpcs-coding-standards"><img src="https://agentmods.dev/badge/skills/lonsdale201/wp-agent-skills/wp-phpcs-coding-standards.svg" alt="Measured on agentmods" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00261 | $0.02864 |
| Opus 5 | $0.00130 | $0.01432 |
| Sonnet 5 | $0.00052 | $0.00573 |
| Haiku 4.5 | $0.00026 | $0.00286 |
Grade A, and why
wp-phpcs-coding-standards scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 192 lines — stays where its author put it; the contents beside it link to each section on GitHub.
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.
Install (exact packages — names are confusing)
composer config --no-plugins allow-plugins.dealerdirect/phpcodesniffer-composer-installer true
composer require --dev \
wp-coding-standards/wpcs:"^3.4.1" \
phpcompatibility/phpcompatibility-wp:"^2.1" \
dealerdirect/phpcodesniffer-composer-installer:"^1.0"
Four things that trip people up, all verified:
squizlabs/php_codesnifferis still the correct Packagist name even though the project moved to thePHPCSStandardsGitHub org. WPCS pulls it in transitively, so you usually don't list it. WPCS 3.4.1 requires PHPCS^3.13.5, not 4.x — don't forcesquizlabs/php_codesniffer:^4.- The installer is still
dealerdirect/phpcodesniffer-composer-installeron Packagist (the repo is nowPHPCSStandards/composer-installer, but the package name is unchanged). It auto-registers WPCS and PHPCompatibility with PHPCS, so you never runphpcs --config-set installed_paths …by hand. - PHPCompatibilityWP: use the stable
^2.1. The README advertises^3.0@dev, but 3.0 is alpha-only; pin^2.1for production unless you deliberately want the alpha. - Do not use WPCS below 3.4.1. Version 3.4.1 fixes arbitrary command execution in
WordPress.WP.EnqueuedResourceParameterswhen scanning untrusted PHP. This affects theWordPressandWordPress-Extrarulesets; update developer machines and CI runners, not only production dependencies.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 6d ago First seen · 192 lines · 261 tokens per session scan A 44ee2f8476a2
wp-phpcs-coding-standards is a skill published in the GitHub repository Lonsdale201/wp-agent-skills (22 stars, last pushed 7d ago), licensed MIT. It adds 261 tokens to every session and 2,864 once invoked, about $0.0013 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
auditing-php-applications
Audit PHP web application source for critical vulnerabilities using PHP's specific sink and footgun catalog — object injection via unserialize and phar:// POP chains, type-juggling and magic-hash auth bypass, LFI/RFI through php:// and phar:// wrappers, dynamic includes and extract()/superglobal trust, SQL injection…
mvc-expert
Expert guidelines to refactor legacy PHP codebases into clean, modern, and scalable MVC-structured projects / Pedoman ahli untuk merefaktor codebase PHP lama menjadi proyek terstruktur MVC yang bersih, modern, dan skalabel.
yao-geoflow-template
Use only for explicit legacy GEOFlow template skill questions, old PHP template-package contracts, or historical outputs using root index.php/article.php/category.php/archive.php and includes/.php. Route current Laravel Blade themes, reference-site cloning, homepage modules, leadform, theme editor, channel frontend…
phpunit-testing
Guide for writing and running PHPUnit unit and integration tests for WP Rig theme components.
php-laravel
Modern PHP 8.4 and Laravel patterns: architecture, Eloquent, migrations, queues, testing. Use when working with Laravel, Eloquent, Blade, artisan, or building/testing a framework-based PHP app. Not for php-src internals, standalone PHP libraries, or general PHP language discussion.
php
Use when writing PHP 8.2+ or working in Laravel and Symfony codebases. Covers strict types, enums, readonly classes, attributes, PSR standards, and static analysis with PHPStan.