Agent skill

Wp Phpstan Review

by jorgerosal in jorgerosal/wordpress-skills

WordPress PHPStan review and setup guidance. An agent skill from jorgerosal/wordpress-skills.

MITAuto-check passedSecurity

Install Wp Phpstan Review

skills CLI
$ npx skills add jorgerosal/wordpress-skills --skill wp-phpstan-review -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install jorgerosal/wordpress-skills wp-phpstan-review --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/jorgerosal/wordpress-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/claude-skills/wp-phpstan-review .claude/skills/wp-phpstan-review && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
wp-phpstan-review
GitHub stars
101
Token cost
~1.2k tokens
SKILL.md length
487 words
Files
5 (incl. references)
Skills in repo
35
Repo updated
First seen
Licence
MIT

At a glance

WordPress PHPStan review and setup guidance. An agent skill from jorgerosal/wordpress-skills.

  • Works in 5 steps: Identify the analysis entrypoints → Check base configuration first → Review baseline and ignore strategy → …
  • Reviewing phpstan.neon
  • SKILL.md covers Overview, When to Use, Code Review Workflow and File-Type Specific Checks, plus 3 more sections
  • Calls rg and composer

What it does

Wp Phpstan Review is an agent skill from jorgerosal/wordpress-skills. WordPress PHPStan review and setup guidance. Use when reviewing phpstan.neon, WordPress static-analysis setup, baselines, PHPStan levels, CI jobs, WordPress stubs, szepeviktor/phpstan-wordpress, or when user mentions "PHPStan", "static analysis", "phpstan.neon", "baseline", "WordPress stubs", or "CI type checks". Helps review WordPress-specific PHPStan configuration, baseline strategy, extension wiring, and practical rollout patterns for plugins, themes, and larger WordPress codebases.

Its SKILL.md is about 1.2k tokens, which your agent loads only when the skill is triggered. The skill folder holds 5 other files, including reference files (for example `references/baseline-and-ci.md`, `references/config-and-bootstrap.md` and `references/wordpress-stubs-guide.md`).

It sits in Security, covering Static analysis and SAST. It works with WordPress. The repository describes itself as: ✅ 🎉 Claude skills and Codex skills for Wordpress development❗️. The licence is MIT.

When your agent uses it

  • Reviewing phpstan.neon
  • WordPress static-analysis setup
  • WordPress stubs
  • Szepeviktor/phpstan-wordpress

Example prompts

  • “PHPStan”
  • “static analysis”
  • “phpstan.neon”
  • “/wp-phpstan-review”

Workflow steps

5 steps, taken from the first numbered list in SKILL.md.

  1. Identify the analysis entrypoints
  2. Check base configuration first
  3. Review baseline and ignore strategy
  4. Review CI ergonomics
  5. Classify findings

What it can do on your machine

Read from SKILL.md and the folder at commit 8c96442. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • rg
    • composer

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Wp Phpstan Review loads about 1.2k tokens when it runs, and up to ~2.8k if it reads all its reference files. Until then it costs about 128 tokens; SKILL.md has 487 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~128
When it runs · the whole SKILL.md, loaded when a task matches
~1.2k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~2.8k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from jorgerosal/wordpress-skills at commit 8c96442, republished under its MIT licence (© jorgerosal). 487 words, ~1,225 tokens.

Download SKILL.mdSave it as .claude/skills/wp-phpstan-review/SKILL.md (or your agent's skills folder). This skill also uses 4 other files; get the full folder from GitHub.
name
wp-phpstan-review
description
WordPress PHPStan review and setup guidance. Use when reviewing `phpstan.neon`, WordPress static-analysis setup, baselines, PHPStan levels, CI jobs, WordPress stubs, `szepeviktor/phpstan-wordpress`, or when user mentions "PHPStan", "static analysis", "phpstan.neon", "baseline", "WordPress stubs", or "CI type checks". Helps review WordPress-specific PHPStan configuration, baseline strategy, extension wiring, and practical rollout patterns for plugins, themes, and larger WordPress codebases.

WordPress PHPStan Review Skill

Overview

Systematic review guidance for PHPStan in WordPress projects. Core principle: static analysis should be strict enough to catch real bugs without becoming noise, and WordPress-specific extensions or stubs should be wired in intentionally. Review covers config files, includes, baselines, CI integration, analysis paths, bootstrap files, WordPress stubs, and gradual adoption strategy.

When to Use

Use when:

  • Reviewing phpstan.neon, phpstan.neon.dist, or CI config
  • Planning PHPStan adoption in a WordPress plugin or theme
  • Auditing baseline usage or ignored errors
  • Reviewing szepeviktor/phpstan-wordpress setup
  • Checking analysis scope, bootstrap files, or stub configuration

Don't use for:

  • Runtime performance review
  • PHPUnit or browser test strategy without static analysis focus
  • General PHP refactors unrelated to analysis setup

Code Review Workflow

  1. Identify the analysis entrypoints

    • phpstan.neon / phpstan.neon.dist
    • Composer require-dev
    • CI workflows and scripts
    • bootstrap or stub files
  2. Check base configuration first

    • Config file naming and includes
    • Level and analysed paths
    • Exclusions and bootstrap files
    • Whether WordPress-specific extensions/stubs are actually loaded
  3. Review baseline and ignore strategy

    • Baseline used to phase in analysis, not bury new issues forever
    • Ignored errors are intentional and reviewable
    • New code is still held to a higher bar
  4. Review CI ergonomics

    • Deterministic command
    • Correct config path
    • Reasonable failure behavior
    • No accidental drift between local and CI config
  5. Classify findings

    • CRITICAL: PHPStan appears configured but is not really analysing project code, WordPress extension missing, baseline hiding everything indefinitely
    • WARNING: overly broad exclusions, stale baseline workflow, config split is confusing, analysis paths too narrow
    • INFO: could raise level, document bootstrap behavior, or tighten ignores

File-Type Specific Checks

PHPStan Config
  • CRITICAL: Config analyses no meaningful project paths
  • WARNING: ignoreErrors or excludes are too broad
  • WARNING: WordPress extension installed but not included when extension installer is not present
  • INFO: Could split local overrides into phpstan.neon on top of a committed .dist file
Show full SKILL.md (184 more words)Show less
Baseline Files
  • WARNING: Baseline regenerated casually instead of fixed deliberately
  • WARNING: Baseline used when analysis still appears underconfigured
  • INFO: Could document when to refresh versus when to fix findings
CI and Composer
  • WARNING: CI command differs materially from the documented local command
  • WARNING: require-dev includes stubs/extension but config does not use them correctly
  • INFO: Could add clearer scripts or output formatting

Search Patterns for Quick Detection (PST-21)

Use these rg commands to find PHPStan setup quickly.

Config and CI Discovery
bash
rg -n "phpstan|phpstan\\.neon|phpstan\\.neon\\.dist|phpstan-baseline" . -g '*.{neon,php,json,md,yml,yaml}'
rg -n "vendor/bin/phpstan|composer .*phpstan|phpstan analyse" . -g '*.{json,md,yml,yaml,sh}'
WordPress-Specific Setup
bash
rg -n "szepeviktor/phpstan-wordpress|php-stubs/wordpress-stubs|extension\\.neon" . -g '*.{json,neon,md}'
rg -n "bootstrapFiles|scanFiles|scanDirectories|paths|ignoreErrors|includes:" . -g '*.neon*'

Reference Files

  • references/config-and-bootstrap.md - Config structure, includes, analysed paths, bootstrap files, and WordPress extension wiring
  • references/baseline-and-ci.md - Baseline strategy, CI integration, and rollout heuristics
  • references/wordpress-stubs-guide.md - phpstan-wordpress, WordPress stubs, and common WordPress static-analysis tradeoffs
  • references/sample-phpstan.neon.dist - Sample shared config file for a WordPress plugin or theme

Output Format (PST-23)

For each finding include:

  1. Severity: CRITICAL, WARNING, or INFO
  2. File and line number
  3. Static-analysis issue summary
  4. Why it matters for WordPress PHPStan coverage or signal quality
  5. Recommended fix

If no issues are found, say so clearly and mention any residual risk such as baseline growth, narrow analysis scope, or undocumented local overrides.

© jorgerosal, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 4 other files (references) in claude-skills/wp-phpstan-review of jorgerosal/wordpress-skills.

  • SKILL.md
  • references/baseline-and-ci.md
  • references/config-and-bootstrap.md
  • references/sample-phpstan.neon.dist
  • references/wordpress-stubs-guide.md

Open the folder on GitHubat commit 8c96442

Compare with similar skills

Wp Phpstan Review next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Wp Phpstan Review compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Wp Phpstan Review this skilljorgerosal/wordpress-skills101—~1.2kAutomated safety check: PassMIT
Wp PhpstanAutomattic/agent-skills2111 repos~1kAutomated safety check: PassNone
Semgrepvigolium/piolium1401 repos~2.4kAutomated safety check: NotesMIT
C To AstNarwhal-Lab/MagicSkills316—~1.1kAutomated safety check: PassMIT
Semgrep Security Scantrailofbits/skills7.4k—~3.7kAutomated safety check: NotesCC-BY-SA-4.0
LLM Sast ScannerSunWeb3Sec/llm-sast-scanner286—~6.2kAutomated safety check: PassNone

Similar skills

  • Wp Phpstan

    Automattic/agent-skills

    A skill your agent uses when configuring, running, or fixing PHPStan static analysis in WordPress projects (plugins/themes/sites): phpstan.neon setup, baselines, WordPress-specific typing, and…

    211 GitHub starsUsed in 1 repo~1k tokens
    SecurityAuto-check passed
  • Semgrep

    vigolium/piolium

    Run Semgrep static analysis scan on a codebase using parallel subagents.

    140 GitHub starsUsed in 1 repo~2.4k tokens
    SecurityAuto-check: notes
  • C To Ast

    Narwhal-Lab/MagicSkills

    Parse C source code into an Abstract Syntax Tree (AST). An agent skill from Narwhal-Lab/MagicSkills.

    316 GitHub stars~1.1k tokensUpdated 6 mo ago
    SecurityAuto-check passed
  • Semgrep Security Scan

    trailofbits/skills

    Official

    Detects languages, proposes rulesets for approval, then runs the approved Semgrep scan across a codebase and merges the output into one SARIF file.

    7.4k GitHub stars~3.7k tokensUpdated yesterday
    SecurityAuto-check: notes
  • LLM Sast Scanner

    SunWeb3Sec/llm-sast-scanner

    General-purpose Static Application Security Testing (SAST) skill for code vulnerability analysis.

    286 GitHub stars~6.2k tokensUpdated 1 mo ago
    SecurityAuto-check passed
  • Sast Semgrep

    AgentSecOps/SecOpsAgentKit

    Static application security testing (SAST) using Semgrep for vulnerability detection, security code review, and secure coding guidance with OWASP and CWE framework mapping.

    220 GitHub starsUsed in 2 repos~2.4k tokens
    SecurityAuto-check passed

More from jorgerosal/wordpress-skills

All 35 skills in this repo
  • Wp Accessibility Review

    jorgerosal/wordpress-skills

    WordPress accessibility review for themes, blocks, plugins, and admin interfaces.

    101 GitHub stars~1.1k tokensUpdated 4 mo ago
    Auto-check passed
  • Wp Acf And Content Modeling

    jorgerosal/wordpress-skills

    WordPress ACF and content modeling review. An agent skill from jorgerosal/wordpress-skills.

    101 GitHub stars~3.2k tokensUpdated 4 mo ago
    Auto-check passed
  • Wp Admin UI Development

    jorgerosal/wordpress-skills

    WordPress admin UI review and development guidance. An agent skill from jorgerosal/wordpress-skills.

    101 GitHub stars~1.2k tokensUpdated 4 mo ago
    Auto-check passed
  • Wp CI CD And Release Engineering

    jorgerosal/wordpress-skills

    WordPress CI/CD and release engineering review guidance. An agent skill from jorgerosal/wordpress-skills.

    101 GitHub stars~1.7k tokensUpdated 4 mo ago
    Auto-check passed
  • Wp Headless And Wpgraphql

    jorgerosal/wordpress-skills

    Headless WordPress and WPGraphQL review guidance. An agent skill from jorgerosal/wordpress-skills.

    101 GitHub stars~1.7k tokensUpdated 4 mo ago
    Auto-check passed
  • Wp Migration Upgrade Review

    jorgerosal/wordpress-skills

    WordPress migration and upgrade review. An agent skill from jorgerosal/wordpress-skills.

    101 GitHub stars~1.1k tokensUpdated 4 mo ago
    Auto-check passed

Works with

Categories

Questions about Wp Phpstan Review

What does Wp Phpstan Review do?

WordPress PHPStan review and setup guidance. An agent skill from jorgerosal/wordpress-skills. Wp Phpstan Review is an agent skill from jorgerosal/wordpress-skills. WordPress PHPStan review and setup guidance.

When should I use Wp Phpstan Review?

Wp Phpstan Review fits situations like: reviewing phpstan.neon; wordPress static-analysis setup; wordPress stubs; szepeviktor/phpstan-wordpress.

How do I install Wp Phpstan Review in Claude Code?

Run `npx skills add jorgerosal/wordpress-skills --skill wp-phpstan-review -a claude-code`. Or copy the skill folder (claude-skills/wp-phpstan-review in jorgerosal/wordpress-skills) into .claude/skills/wp-phpstan-review in your project. Claude Code loads it when a task matches its description.

How do I install Wp Phpstan Review in Codex?

Run `npx skills add jorgerosal/wordpress-skills --skill wp-phpstan-review -a codex`. Or copy the skill folder (claude-skills/wp-phpstan-review in jorgerosal/wordpress-skills) into .agents/skills/wp-phpstan-review in your project. Codex loads it when a task matches its description.

Can I use Wp Phpstan Review in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add jorgerosal/wordpress-skills --skill wp-phpstan-review -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/wp-phpstan-review, .gemini/skills/wp-phpstan-review, .github/skills/wp-phpstan-review and .opencode/skills/wp-phpstan-review in your project.

What does Wp Phpstan Review need to run?

Going by SKILL.md and its folder, Wp Phpstan Review needs the command-line tools its instructions call (rg and composer).

Does Wp Phpstan Review access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Wp Phpstan Review safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Wp Phpstan Review use?

Wp Phpstan Review is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Wp Phpstan Review use?

About 1.2k tokens (SKILL.md is roughly 4.9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 1.6k tokens, read only when the agent opens those files.

What are the alternatives to Wp Phpstan Review?

Skills that share tags, products or a category with Wp Phpstan Review: Wp Phpstan (Automattic/agent-skills, 211 stars), Semgrep (vigolium/piolium, 140 stars), C To Ast (Narwhal-Lab/MagicSkills, 316 stars) and Semgrep Security Scan (trailofbits/skills, 7.4k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Wp Phpstan Review?

jorgerosal (a GitHub user) maintains it in jorgerosal/wordpress-skills, which has 101 GitHub stars. The repository holds 35 skills in this directory. The repository was last updated on June 7, 2026.

Source: jorgerosal/wordpress-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.