wp-phpstan

Official

WordPress PHPStan: setup, baselines, and fixes.

AuthorWPdoaction
Version1.0.0
Installs0

System Documentation

What problem does it solve?

WordPress projects often struggle with static analysis due to dynamic WP APIs and third‑party plugins. This skill guides configuring PHPStan for WordPress, establishing baselines, and applying WordPress‑specific typing to reduce false positives.

Core Features & Use Cases

  • PHPStan setup: create and maintain phpstan.neon and related configuration for WP plugins/themes.
  • Baseline management: generate and maintain a baseline to gradually fix legacy issues without blocking progress.
  • WP-specific typing: use WordPress stubs and annotations to improve type inferences for REST, hooks, and WP data structures.
  • Use Case: when working on a WordPress plugin, run PHPStan to catch type issues early and validate changes against the WP API surface.

Quick Start

Run the PHPStan inspection script to generate an initial analysis and baseline for your WordPress project: node skills/wp-phpstan/scripts/phpstan_inspect.mjs

Dependency Matrix

Required Modules

None required

Components

scriptsreferences

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: wp-phpstan
Download link: https://github.com/WPdoaction/animal-shelter/archive/main.zip#wp-phpstan

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.