wordpressphpstan

Convert the WP PHPStan guide from WordPress/agent-skills into a bounded-agent workflow for plugin, theme, and site repositories: the agent inspects existing PHPStan configuration, adds or verifies WordPress-friendly stubs, tightens config paths, and fixes or records the precise ignore rules and baseline adjustments required to produce valid static analysis output.

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "wordpressphpstan" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-f0bd65e485f1998889fe4be241fa6dd13e8eb64dfb815dea25b44df16ac128c0. Verify the upstream source and version against https://skillhub.cn/skills/user_3c6cb52e/run-phpstan-on-wordpress-codebases-with-correct-stubs-baselines-and-narrow-ignores before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

skillhub.cn

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

Convert the WP PHPStan guide from WordPress/agent-skills into a bounded-agent workflow for plugin, theme, and site repositories: the agent inspects existing PHPStan configuration, adds or verifies WordPress-friendly stubs, tightens config paths, and fixes or records the precise ignore rules and baseline adjustments required to produce valid static analysis output.

0 Downloads

Introduction source: third_party · user_3c6cb52e · 1.0.0 Reference

SkillPi interpretation

Tasks
Translation pending; see source documentation.
Audience
Not specified in the source documentation.
Inputs and outputs
Not specified in the source documentation.
Software, accounts and paid services
PHP, Composer, PHPStan, and a WordPress plugin, theme, or site repository
Limits and differences
Not specified in the source documentation.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: "使用正确的存根基线和窄忽略规则在WordPress代码库上运行PHPStan"
slug: "run-phpstan-on-wordpress-codebases-with-correct-stubs-baselines-and-narrow-ignores"
version: "1.0.0"
displayName: "使用正确的存根基线和窄忽略规则在WordPress代码库上运行PHPStan"
summary: "该条目将 WordPress/agent-skills 的 WP PHPStan 指导转换为插件、主题和站点仓库的有界代理工作流程。代理检查现有的 PHPStan 设置,添加或验证 WordPress 友好的桩文件,收紧配置路径,并修复或记录获得有用静态分析输出所需的狭窄忽略和基线更改。"
license: "MIT"
description: "该条目将 WordPress/agent-skills 的 WP PHPStan 指导转换为插件、主题和站点仓库的有界代理工作流程。代理检查现有的 PHPStan 设置,添加或验证 WordPress 友好的桩文件,收紧配置路径,并修复或记录获得有用静态分析输出所需的狭窄忽略和基线更改。"
verification: "security_reviewed"
source: "https://github.com/1991513ccie-png/skills"
author: "1991513ccie-png"
publisher_type: "individual"
category: "WordPress & CMS"
framework: "Multi-Framework"

使用正确的存根基线和窄忽略规则在WordPress代码库上运行PHPStan

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:

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:

Documentation

Current listing version

1.0.0

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value78/100

Areas to improve

  • 缺少 When to Use 说明 Reported severity: Minor

    未明确说明何时应使用此 Skill,用户难以判断适用场景。

    Recommendation: 添加 When to Use 章节,说明适合 WordPress 插件/主题开发者在集成 PHPStan 时使用。

Highlights

  • 针对 WordPress 开发者提供 PHPStan 静态分析配置优化,实用价值明确
  • 覆盖插件、主题和站点仓库,受众清晰
Trigger Precision65/100

Areas to improve

  • 触发词不全 Reported severity: Minor

    description 描述了功能但未提供具体触发关键词,用户难以通过自然语言精准触发。

    Recommendation: 补充触发词如 'phpstan wordpress'、'wordpress static analysis'、'phpstan baseline' 等。

Highlights

  • 功能描述清晰,涵盖了核心能力:检查配置、添加桩文件、收紧路径、修复忽略规则
Structure and Standards68/100

Areas to improve

  • 缺少端到端示例 Reported severity: Minor

    未提供完整的端到端使用示例,用户难以理解完整执行流程。

    Recommendation: 添加一个完整的示例,展示从检查现有配置到生成有用静态分析输出的全过程。

Highlights

  • frontmatter 完整,包含 name、slug、version、displayName、summary、license 等必要字段
  • 有基本的 Prerequisites、Installation、Documentation 结构
Execution Reliability62/100

Areas to improve

  • 上游依赖未处理异常 Reported severity: Major

    依赖外部 GitHub 仓库和上游 agent-skills,未说明如何处理上游变更或失效情况。

    Recommendation: 添加对上游依赖失效的 fallback 机制或明确告知用户风险。

  • 安装步骤无错误处理 Reported severity: Major

    安装步骤涉及多个 node 脚本,但未覆盖网络失败、依赖缺失等常见异常。

    Recommendation: 为每个安装步骤添加错误处理说明,如重试机制或手动替代方案。

Highlights

  • 提供了清晰的安装路径和上游来源说明
Evidence Verifiability (mean of the first four)68/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

These common operations were not identified in the main document. This does not mean no permissions or risks exist.

Domains or addresses referenced in the document

These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.

  • github.com
  • raw.githubusercontent.com

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

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

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.