code-quality

Run Laravel Pint, PHPStan, and PHPUnit code quality checks.

Updated Feb 20, 2026
One-click install
npx skills add https://github.com/garethdaine/agent --skill code-quality-garethdaine
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: code-quality
Source: https://github.com/garethdaine/agent/tree/main/.cursor/skills/code-quality
Command: npx skills add https://github.com/garethdaine/agent --skill code-quality-garethdaine

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires laravel/pint, phpstan/phpstan, phpunit/phpunit, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates the process of checking code quality, ensuring that code adheres to style guidelines, passes static analysis, and has all tests passing before committing or creating a Pull Request.

Core Features & Use Cases

  • Code Formatting: Automatically fixes code style issues using Laravel Pint.
  • Static Analysis: Detects potential bugs and type errors with PHPStan.
  • Unit Testing: Executes all unit tests using PHPUnit.
  • Use Case: Before submitting a Pull Request for a new feature, run this Skill to guarantee the code is clean, error-free, and well-tested.

Quick Start

Run all code quality checks and fix any issues found.

Frequently Asked Questions about code-quality

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate Laravel code quality checks for static analysis, formatting, and unit testing before a commit?

Automated Laravel code quality checks can be executed by running a workflow that leverages Laravel Pint for formatting, PHPStan for static analysis, and PHPUnit for unit testing to ensure code integrity before committing.

What is the best way to run PHPUnit and PHPStan together in a pre-commit hook?

Running PHPUnit and PHPStan together in a pre-commit hook is best achieved by using an automated workflow tool that sequentially executes static analysis and unit tests, ensuring code adheres to style guidelines and passes checks.

Does this automated code formatting and testing workflow require Composer for Laravel projects?

Yes, this automated code formatting and testing workflow requires Composer to manage and execute the necessary PHP dependencies, including PHPStan, Laravel Pint, and PHPUnit within your Laravel projects.

Can I use Laravel Pint to automatically fix code style issues before creating a pull request?

Yes, you can use Laravel Pint to automatically detect and fix code style issues, ensuring your code adheres to formatting guidelines before you create a pull request or commit changes.

Why should I run static analysis and unit tests in my Laravel CI/CD pipeline?

Running static analysis and unit tests in your Laravel CI/CD pipeline detects potential bugs, type errors, and failing tests early, maintaining code integrity and guaranteeing the code is clean and error-free before merging.