code-quality-grumphp
Installation
SKILL.md
Code quality — GrumPHP gate
1. What runs and when
GrumPHP wires Git hooks that run automatically on git commit. Two hook stages:
pre-commit — runs against staged PHP/JSON files and fails the commit on any violation
jsonlint— JSON files parse, no duplicate keys.laravel_pint— Laravel Pint auto-formats and re-stages.git_blacklist— blocksdd(,dump(,var_dump(,print_r(,die(,ray(.phpstan— PHPStan level 8 (with Larastan).phpcs—phpcs.xmlrules (cyclomatic complexity ≤ 10, nesting depth ≤ 5).phpmnd— magic-number detector acrossapp/.securitychecker_composeraudit—composer auditfor dependency CVEs.pest— full test suite.