Claude Code check-quality for Composer lint, PHPStan and Pest
Follow the project’s Composer scripts to check PHP style, static types, and behavior. Resolve failures at each stage before moving on.
中文Install in Claude Code
Open Business Data Fetcher at the project root in Claude Code. Prepare PHP, Composer, and project dependencies.
- Review `.claude/skills/check-quality/SKILL.md` and its requirements at the pinned GitHub commit.
- Create `.claude/skills/check-quality/` in your project and save the reviewed file as `.claude/skills/check-quality/SKILL.md`.
- Start Claude Code from that project's root, then select `/check-quality` in the slash menu.
Example task
In the qa-05 fixture on a local branch, composer lint reports an indentation issue in src/CompanyLookup.php (PSR12). After the indentation fix, composer phpstan and composer test both exit with status 0.What to check
Fix the indentation and rerun composer lint before composer phpstan and composer test. Report the checks in order as [lint: pass, PHPStan: pass, Pest: pass]. Leave the change available for review.
Original SKILL.md on GitHub · Updated
Frequently asked question
What if a test fails?
Diagnose the failure from the output, correct the concrete problem at that stage, and rerun that check before proceeding.