php-modernization
PHP Modernization
Agent contract
-
Discover:
uv run ${CLAUDE_SKILL_DIR}/scripts/introspect.py(cheap), orverify_php_project.py --summary(full, withagent_actions[]). Then read the project's own commands —composer.jsonscripts,Makefile, DDEV/Docker wrappers, CI config. They fix the runtime, the config and the paths; use them over a barevendor/bin/*call. Exception: when you must add a flag (--dry-run,--only, a path), run the command the script wraps with the flag written out, in the same runtime — Composer aliases can drop---forwarded flags. -
Drill:
... --check PM-XXper finding. Full output when triaging >3. The verifier does not evaluatellm_reviewcheckpoints (step 4): no result for one is no pass. -
Use the project's tools, and run them. Naming a tool is not using it. A check you did not run is reported as not run.
Concern Tool (the one the project has) PHP refactoring Rector (+ TYPO3/Symfony sets) Fluid, TypoScript, FlexForm/XML, YAML migration Fractor — not for PHP code Types, matchcompleteness (match.unhandled), version floor (phpVersion)PHPStan Coding standard PHPCS/PHPCBF or PHP-CS-Fixer — whichever is configured Syntax php -l/ the project's lint, under the lowest supported PHPBehaviour PHPUnit (the project's suite) Test strength on the changed lines Infection, where installed