laravel-quality

Run Pint, PHPStan, and Pest tests for Laravel code quality.

1|Updated Aug 27, 2025
One-click install
npx skills add https://github.com/bmadigan/ask-my-doc --skill laravel-quality-bmadigan
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: laravel-quality
Source: https://github.com/bmadigan/ask-my-doc/tree/main/.claude/skills/laravel-quality
Command: npx skills add https://github.com/bmadigan/ask-my-doc --skill laravel-quality-bmadigan

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill automates the quality assurance workflow for Laravel projects by running Pint formatting, PHPStan analysis, and Pest tests to ensure clean, compliant code before commits or deployments.

Core Features & Use Cases

  • Code formatting & style: Enforces PSR-12 and Laravel conventions with Pint.
  • Static analysis & tests: Executes PHPStan checks and Pest tests to catch regressions early.
  • Workflow integration: Ideal before commits, after major changes, or on demand to validate repository health.

Quick Start

Run a full quality gate on your Laravel project:

  • vendor/bin/pint --test
  • vendor/bin/pint --dirty
  • vendor/bin/phpstan analyse --memory-limit=2G
  • php artisan test
  • npm run build

Frequently Asked Questions about laravel-quality

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

FAQPage Schema
How do I automate Laravel quality checks for pull requests and releases?

Automate Laravel quality checks by running Pint for formatting, PHPStan for static analysis, and Pest tests via php artisan test to validate code health before commits or deployments.

What is included in a standard Laravel quality gate workflow?

A standard Laravel quality gate includes enforcing PSR-12 formatting with Pint, executing static analysis with PHPStan, and running Pest tests to catch regressions early during development cycles.

How do I run PHPStan static analysis on a Laravel project?

Run PHPStan static analysis on a Laravel project using vendor/bin/phpstan analyse --memory-limit=2G to evaluate code compliance and detect potential issues before merging.

Can I run frontend build steps during Laravel code quality validation?

You can run frontend build steps during Laravel code quality validation by executing npm run build when frontend assets exist, ensuring both backend and frontend assets pass quality gates.

Does the Laravel quality gate require PHPStan to be pre-configured?

The quality gate invokes PHPStan for static analysis when configured, allowing you to skip it if not set up while still executing Pint formatting and Pest tests.

What's the best way to enforce PSR-12 formatting in a Laravel project?

Enforce PSR-12 and Laravel conventions in a Laravel project by running vendor/bin/pint --test to verify formatting or vendor/bin/pint --dirty to fix uncommitted files.