Skip to main content
在 Manus 中运行任何 Skill
一键导入

wordpress-phpstan

星标2
分支0
更新时间2026年5月27日 17:06

Configure, run, or fix PHPStan in WordPress codebases (plugins/themes/sites). Use whenever creating or editing `phpstan.neon` / `phpstan.neon.dist`, generating or shrinking `phpstan-baseline.neon`, raising/lowering `level:`, fixing PHPStan errors with WordPress-friendly PHPDoc (`WP_REST_Request<...>`, hook-callback `@param` types, array shapes for `$wpdb` results, Action Scheduler `$args` shapes), wiring up `szepeviktor/phpstan-wordpress` or `php-stubs/wordpress-stubs`, adding plugin-specific stubs (`php-stubs/woocommerce-stubs`, `php-stubs/acf-pro-stubs`), narrowing `paths` / `excludePaths`, or scoping `ignoreErrors` patterns to a vendor prefix. Trigger on any mention of phpstan, neon config, static analysis in PHP, `@phpstan-` annotations, baseline file growth, 'class not found' errors after enabling phpstan, or 'how do I type a WP hook callback'. Pair with `wordpress-project-triage` first to know which paths to analyse. Don't use for PHPCS / WordPress Coding Standards (different tool).

安装

用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。

文件资源管理器
5 个文件
SKILL.md
readonly