pint
Laravel Pint syntax reference
When & Why to Use This Skill
This Claude skill serves as a specialized syntax reference and operational guide for Laravel Pint, an opinionated PHP code style fixer. It helps developers automate code linting and formatting within Laravel projects, ensuring that the codebase remains clean, consistent, and compliant with modern PHP standards without manual intervention.
Use Cases
- Code Style Standardization: Automatically format PHP files to match Laravel's recommended coding style, eliminating 'nitpick' comments during code reviews.
- Efficient Pre-commit Checks: Use the --dirty flag to quickly identify and fix styling issues only in files that have been modified, optimizing the local development workflow.
- Targeted File Formatting: Provide precise commands to format specific files or directories during active development to maintain high code quality on the fly.
- Development Workflow Integration: Incorporate Pint into the 'dev.check' suite to ensure all style requirements are met before finalizing pull requests or commits.
| name | pint |
|---|---|
| description | Laravel Pint syntax reference |
Laravel Pint
Instructions
- Run
vendor/bin/pint --dirtybefore finalizing changes to ensure your code matches the project's expected style. - Do not run
vendor/bin/pint --test, simply runvendor/bin/pintto fix any formatting issues. - During development, run
./vendor/bin/pint {file}to format specific files - Use
dev.checkto run the full suite before committing