Skip to content
Back to skills

Run Phpstan On Wordpress Codebases With Correct Stubs Baselines And Narrow Ignores

ASecurity

This entry turns WordPress/agent-skills' WP PHPStan guidance into a bounded agent workflow for plugin, theme, and site repositories. The agent inspects the existing PHPStan setup, adds or verifies WordPress-aware stubs, tightens config paths, and fixes or documents only the narrow ignores and baseline changes needed to get useful static-analysis output.

  • 36 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added June 2, 2026
ai-agentsgophpbashnodegitsecuritydocumentation

Security analysis

A100/100

Scanned June 2, 2026

npx -y skills add agentskillexchange/skills --skill run-phpstan-on-wordpress-codebases-with-correct-stubs-baselines-and-narrow-ignores --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Run Phpstan On Wordpress Codebases With Correct Stubs Baselines And Narrow Ignores?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Run Phpstan On Wordpress Codebases With Correct Stubs Baselines And Narrow Ignores
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/agentskillexchange-run-phpstan-on-wordpress-codebases-with-correct-st/badge)](https://www.skillsdirectory.com/skills/agentskillexchange-run-phpstan-on-wordpress-codebases-with-correct-st)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: "Run PHPStan on WordPress codebases with correct stubs baselines and narrow ignores"
slug: "run-phpstan-on-wordpress-codebases-with-correct-stubs-baselines-and-narrow-ignores"
description: "This entry turns WordPress/agent-skills' WP PHPStan guidance into a bounded agent workflow for plugin, theme, and site repositories. The agent inspects the existing PHPStan setup, adds or verifies WordPress-aware stubs, tightens config paths, and fixes or documents only the narrow ignores and baseline changes needed to get useful static-analysis output."
verification: "security_reviewed"
source: "https://github.com/WordPress/agent-skills/tree/trunk/skills/wp-phpstan"
author: "WordPress"
publisher_type: "Open Source Project"
category: "WordPress & CMS"
framework: "Multi-Framework"
---

# Run PHPStan on WordPress codebases with correct stubs baselines and narrow ignores

This entry turns WordPress/agent-skills' WP PHPStan guidance into a bounded agent workflow for plugin, theme, and site repositories. The agent inspects the existing PHPStan setup, adds or verifies WordPress-aware stubs, tightens config paths, and fixes or documents only the narrow ignores and baseline changes needed to get useful static-analysis output.

## Prerequisites

PHP, Composer, PHPStan, and a WordPress plugin, theme, or site repository

## Installation

Use the upstream install or setup path that matches your environment:
- git clone https://github.com/WordPress/agent-skills.git

Requirements and caveats from upstream:
- node shared/scripts/skillpack-build.mjs --clean
- node shared/scripts/skillpack-install.mjs --global
- node shared/scripts/skillpack-install.mjs --global --skills=wp-playground,wp-block-development

Basic usage or getting-started notes:
- bash
- # Clone agent-skills
- cd agent-skills

- Source: https://github.com/WordPress/agent-skills/tree/trunk/skills/wp-phpstan
- Extracted from upstream docs: https://raw.githubusercontent.com/WordPress/agent-skills/HEAD/README.md

## Documentation

- https://github.com/WordPress/agent-skills/tree/trunk/skills/wp-phpstan

## Source

- [Agent Skill Exchange](https://agentskillexchange.com/skills/run-phpstan-on-wordpress-codebases-with-correct-stubs-baselines-and-narrow-ignores/)

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…