Wp Phpstan Review logo

Wp Phpstan Review

Community
jorgerosal
wp-phpstan-review

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.

Overview

Publisherjorgerosal
Repositorywordpress-skills
Skill namewp-phpstan-review
Stars
113
Forks
13
Bundled files
4
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 4 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by jorgerosal on GitHub. Read the source before you install it.

Installation

Install the Wp Phpstan Review AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/jorgerosal/wordpress-skills/tree/main/claude-skills/wp-phpstan-review
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/jorgerosal/wordpress-skills.git /tmp/wordpress-skills
mkdir -p .claude/skills
cp -r /tmp/wordpress-skills/claude-skills/wp-phpstan-review .claude/skills/wp-phpstan-review
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Wp Phpstan Review in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Wp Phpstan Review on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Wp Phpstan Review is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

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

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.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Wp Phpstan Review AI skill do?

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.

Why use Wp Phpstan Review on TypingMind?

Because you install it once and use it with any model. Wp Phpstan Review is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Wp Phpstan Review in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/jorgerosal/wordpress-skills/tree/main/claude-skills/wp-phpstan-review. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Wp Phpstan Review?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Wp Phpstan Review?

As many as you like. As long as a model supports skills, you can use Wp Phpstan Review with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Wp Phpstan Review AI skill free?

Yes. It is published on GitHub by jorgerosal under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇