Terminal
Terminal/Skill
Runs PhpStorm's code inspections on PHP files so you can check quality and fix problems the IDE flags.
By JetBrains
Works with
npx skills add jetbrains/phpstorm-claude-marketplace --skill php-code-reviewUse 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.