phpstan
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 "phpstan" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-6b9671e6772a555f31f83ced055ae3858cec85720057aac55055597d3399957f. Verify the upstream source and version against https://skillhub.cn/skills/user_3c6cb52e/phpstan-static-analyzer-agent 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
Run PHP static analysis with PHPStan CLI at rule levels 0–9 and support custom extensions: Executes PHPStan from the command line at specified rule levels to detect type errors, dead code, and PHPDoc inconsistencies, applicable to projects including WordPress and Laravel, and supports loading custom extensions.
Introduction source: third_party · user_3c6cb52e · 1.0.0 Reference
SkillPi interpretation
- Tasks
- Translation pending; see source documentation.
- Software, accounts and paid services
- PHP, Composer
- Testing
- Not tested
Browse files
Frontmatter
name: "PHPStan 静态分析器代理"
slug: "phpstan-static-analyzer-agent"
version: "1.0.0"
displayName: "PHPStan 静态分析器代理"
summary: "使用PHPStan CLI在规则级别0-9执行PHP静态分析,并支持自定义扩展。检测WordPress和Laravel项目中的类型错误、死代码和PHPDoc不一致问题。"
license: "MIT"
description: "使用PHPStan CLI在规则级别0-9执行PHP静态分析,并支持自定义扩展。检测WordPress和Laravel项目中的类型错误、死代码和PHPDoc不一致问题。"
github_stars: 13909
verification: "security_reviewed"
source: "https://github.com/1991513ccie-png/skills"
author: "1991513ccie-png"
category: "Code Quality & Review"
framework: "OpenClaw"
tool_ecosystem:
github_repo: "1991513ccie-png/skills"
github_stars: 13909PHPStan 静态分析器代理
Performs PHP static analysis using PHPStan CLI at rule levels 0-9 with custom extensions. Detects type errors, dead code, and PHPDoc inconsistencies in WordPress and Laravel projects.
Prerequisites
PHP, Composer
Installation
Basic usage or getting-started notes:
-
can be checked before you run the actual line.
-
Extracted from upstream docs: https://raw.githubusercontent.com/phpstan/phpstan/HEAD/README.md
Documentation
Current listing version
1.0.0
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 提供 PHP 静态分析能力,支持多规则级别(0-9)和自定义扩展
- 针对 WordPress 和 Laravel 项目,检测类型错误、死代码和 PHPDoc 不一致问题
Highlights
- 触发描述完整,明确涵盖功能范围、支持框架和检测目标
Areas to improve
-
缺少端到端示例 Reported severity: Minor
文档未提供具体的执行示例,用户难以快速上手
Recommendation: 添加一个完整的 PHPStan 分析示例,包括命令和预期输出
-
缺少步骤划分 Reported severity: Minor
Installation 部分描述较为笼统,缺乏清晰的步骤划分
Recommendation: 将安装和使用流程划分为明确的 Phase 或步骤,并添加出口条件
Highlights
- 文档结构基本完整,包含 Prerequisites、Installation 和 Documentation
Areas to improve
-
异常处理机制缺失 Reported severity: Minor
未提及如何处理 PHPStan 未安装、项目路径不存在等常见异常
Recommendation: 添加异常处理说明,如检查 PHPStan 是否安装、项目路径是否有效等
Highlights
- 依赖项明确(PHP、Composer),工具来源清晰(phpstan.org)
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
- phpstan.org
- raw.githubusercontent.com
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
PHP, Composer
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.