Agent Native

wp-phpstan

This skill configures and runs PHPStan static analysis in WordPress projects, handling phpstan.neon setup, baseline management, WordPress-specific type…

by AutomatticOfficial publisherNot reviewed

Identity proven by GitHub's verified organisation badge (Automattic)

Agents
Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode
License
No license stated
Pin
48d4aa2pinned Oct 9, 2026
Context cost
about 940 tokenswhen the skill loads
GitHub stars
211on automattic/agent-skills
Scripts
1 script

What it does

“Use when configuring, running, or fixing PHPStan static analysis in WordPress projects (plugins/themes/sites): phpstan.neon setup, baselines, WordPress-specific typing, and handling third-party plugin classes.”
The author's description, from SKILL.md

Generated summary from the skill's own text

This skill configures and runs PHPStan static analysis in WordPress projects, handling phpstan.neon setup, baseline management, WordPress-specific type annotations, and third-party plugin class resolution. It guides agents through discovering PHPStan entrypoints, loading WordPress core stubs, fixing type errors with proper PHPDoc, and managing ignore patterns narrowly. The skill targets WordPress 6.9+ with PHP 7.2.24+ using Composer-based PHPStan.

When to use it

  • Setting up or updating phpstan.neon configuration for WordPress plugins or themes
  • Generating and maintaining phpstan-baseline.neon for legacy code migration
  • Fixing PHPStan errors using WordPress-specific type annotations and PHPDoc
  • Resolving third-party plugin or theme class typing issues in analysis

When not to

  • Projects not using Composer-based PHPStan setup
  • When baseline is used as a dumping ground rather than migration tool
  • Runtime type checking or validation instead of static analysis

Install

No license stated: install from the publisher's repository, and ask the author before you reuse or share it.

These commands install from the publisher's repository and need no account.

skills CLI

npx skills add automattic/agent-skills --skill wp-phpstan

Installs from the repository's default branch, which may have changed since the commit we checked.

GitHub CLI 2.90 or later

gh skill install automattic/agent-skills wp-phpstan@48d4aa21d0da0e7bda1c7ac155fef2e16b87aa25

Installs the commit we checked (48d4aa2).

Copy by hand

Download the folder at 48d4aa2 and put it in .claude/skills/wp-phpstan for Claude Code and in .agents/skills/wp-phpstan for Codex, Cursor, Gemini CLI, GitHub Copilot and OpenCode.

Skill folder on GitHub at 48d4aa2

Claude Code plugin

/plugin install build-with-wordpress@claude-plugins-official

The publisher's plugin in Claude's official marketplace. It may hold more than this skill, and we have not pinned it.

Copy for your agent

A prompt for any coding agent. It installs this skill from GitHub at the pinned commit, copies the files as they are, and runs nothing unless you ask.

Prompt

Install the agent skill "wp-phpstan" by Automattic.

Source, pinned to commit 48d4aa21d0da0e7bda1c7ac155fef2e16b87aa25:
https://github.com/automattic/agent-skills/tree/48d4aa21d0da0e7bda1c7ac155fef2e16b87aa25/skills/wp-phpstan

1. Download that folder at exactly this commit. Do not use the default branch.
2. Copy every file unchanged, keeping the folder structure, into .claude/skills/wp-phpstan/ for Claude Code and .agents/skills/wp-phpstan/ for Codex, Cursor, Gemini CLI, GitHub Copilot and OpenCode. Create the folders if they do not exist.
3. Do not edit the files, and do not run any script in the folder unless I ask you to.
4. When you are done, list the files you copied and where you put them.

Its license is restricted or not stated. Show me the license terms from the repository before you copy anything.

Listing and checks: https://www.agentnative.dev/skills/automattic/wp-phpstan

SKILL.md at the pin

The license of this skill does not let us show its files here.

Files

5 files, 19 KB in total. Each file has a sha256 in the pin's manifest; the first 12 characters are shown.

Skill folder on GitHub at 48d4aa2
All 31 skills from Automattic

More from Automattic

  • annotate

    This skill opens a browser with annotation tools that let users click page elements and leave feedback, then the agent reads those annotations and applies the…

    Claude Code, Codex, Cursor +3 · about 1K tokens · pinned 6 days ago

  • block-content

    This skill instructs agents to write editable WordPress block markup for block themes, enforcing use of core blocks over HTML, managing layout cascades, and…

    Claude Code, Codex, Cursor +3 · about 4.4K tokens · pinned 6 days ago

  • hosting-plans-helper

    This skill fetches current WordPress.com plan names, pricing, and feature details from live APIs, then answers questions about which plan tier includes…

    Claude Code, Codex, Cursor +3 · about 840 tokens · pinned 6 days ago

  • imagery

    This skill guides generating AI images for WordPress sites using the generate_images tool, or alternative image generation tools.

    Claude Code, Codex, Cursor +3 · about 2.6K tokens · pinned 6 days ago

  • liberate

    This skill helps agents migrate websites into WordPress by copying the site from a URL or local files using the Studio CLI, then comparing the imported…

    Claude Code, Codex, Cursor +4 · about 830 tokens · pinned 6 days ago

  • need-for-speed

    Measures Core Web Vitals and page composition metrics for WordPress sites using synthetic testing, then suggests targeted optimization actions based on…

    Claude Code, Codex, Cursor +3 · about 650 tokens · pinned 6 days ago

All Coding workflow skills
  • wordpress-router

    This skill classifies WordPress repository types and routes the agent to appropriate workflows.

    by AutomatticOfficial publisher

    Claude Code, Codex, Cursor +4 · about 440 tokens · pinned 6 days ago

  • wp-project-triage

    This skill analyzes a WordPress repository to detect its type, tooling, and testing setup, returning structured JSON that guides subsequent workflows.

    by AutomatticOfficial publisher

    Contains scripts

    Claude Code, Codex, Cursor +3 · about 270 tokens · pinned 6 days ago

  • wp-guard

    Reviews WordPress code for security, API compliance, internationalization, and performance issues before deployment.

    by amElnagdyCommunity

    Claude Code, Codex, Cursor +4 · about 2.2K tokens · pinned 6 days ago

  • planning

    This skill orchestrates multi-workflow projects with dependencies and shared data tables by creating a task graph in the orchestrator via the create-tasks tool.

    by n8nOfficial publisher

    Claude Code, Codex, Cursor +3 · about 2.4K tokens · pinned 6 days ago

  • progressive-building

    This skill implements incremental workflow development for agents building or extending workflows.

    by n8nOfficial publisher

    Claude Code, Codex, Cursor +3 · about 1.4K tokens · pinned 6 days ago

  • workflow-builder

    Builds and edits n8n workflows using the TypeScript SDK.

    by n8nOfficial publisher

    Claude Code, Codex, Cursor +3 · about 14.2K tokens · pinned 6 days ago

The skills listed here are third-party software, collected from public GitHub repositories as a catalog of recent skills and provided as is. Agent Native does not write or control them and is not responsible for any harm, loss or damage caused by installing or using them. Labels and checks describe what we saw at one commit and are not a guarantee. Read a skill's files before you run it. Terms of use