with one click
php-code-review
// Review PHP code using PhpStorm inspections. Use when editing PHP files, reviewing code quality, fixing PHP issues, or when asked about PHP best practices.
// Review PHP code using PhpStorm inspections. Use when editing PHP files, reviewing code quality, fixing PHP issues, or when asked about PHP best practices.
| name | php-code-review |
| description | Review PHP code using PhpStorm inspections. Use when editing PHP files, reviewing code quality, fixing PHP issues, or when asked about PHP best practices. |
Use PhpStorm's inspection engine to ensure PHP code quality. This skill provides access to the same inspections shown in the IDE editor.
.php, .phtml)Call get_inspections to analyze a PHP file:
get_inspections(
filePath: "path/to/file.php",
minSeverity: "WEAK_WARNING" # or ERROR, WARNING, INFORMATION
)
Returns problems with:
For issues with quick fixes, use apply_quick_fix:
apply_quick_fix(
filePath: "path/to/file.php",
line: 42,
column: 10,
quickFixName: "Safe delete '$unusedVar'"
)
Note: The quickFixName must match exactly what was returned by get_inspections. The tool re-runs highlighting at the specified location to find and apply the matching fix.
For issues without quick fixes, edit the file manually.
Re-run inspections to confirm issues are resolved.
Foundational PHP project knowledge for AI agents. Use when working on a PHP project, setting up a PHP development environment, understanding PHP project structure, following PHP coding standards, running PHP tests, using Composer, or when guidance on PHP-specific tools and workflows in PhpStorm is needed.
PHP Upgrade Assistant. Use when upgrading PHP version, fixing deprecations for a target PHP version, or scanning for PHP compatibility issues.