Configures and fixes PHPStan static analysis in WordPress plugins, themes, and sites. You'll reach for this when setting up phpstan.neon files, managing baselines, or clearing out type errors that stem from WordPress's dynamic API (REST requests, hook callbacks, database queries). It knows the common pain points: making sure WordPress core stubs are loaded, typing WP_REST_Request parameters properly, and handling third-party plugin classes that aren't present during analysis. The skill treats baselines as migration tools, not permanent error suppression, and pushes you toward proper PHPDoc annotations instead of ignoring legitimate type issues. Assumes Composer-based PHPStan and WordPress 6.9 or later.
npx -y skills add automattic/agent-skills --skill wp-phpstan --agent claude-codeInstalls into .claude/skills of the current project.
Select a file.
sickn33/antigravity-awesome-skills
moizibnyousaf/ai-agent-skills
github/awesome-copilot