code-quality

Coordinate PHPStan, Pint, Rector, and CI workflows for Laravel quality checks.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

PHP and Laravel code quality often suffers from inconsistent checks and manual workflows. This Skill unifies static analysis, code style enforcement, automated refactoring, baseline management, and CI integration to streamline quality gates for Laravel projects.

Core Features & Use Cases

  • Centralised quality workflow for PHPStan / Larastan, Pint, Rector, and GitHub Actions.
  • Baseline management and CI quality gates for legacy projects.
  • Guidance for applying modernisation while respecting existing configuration.

Quick Start

Provide fast, automated quality checks, fixes, and baseline management for Laravel projects using PHPStan, Pint, Rector, and CI integration.

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 with PHPStan, Pint, and Rector in CI?

Automate Laravel code quality by coordinating PHPStan, Pint, and Rector through centralized CI workflows that run checks, apply fixes, and manage baselines across local and CI environments.

What's the best way to manage static analysis baselines for a legacy Laravel project?

Manage static analysis baselines by generating baseline files that record existing errors, allowing PHPStan to enforce quality gates on new code without failing on legacy issues.

Can I use Rector for automated refactoring alongside Pint style enforcement in Laravel?

Yes, you can integrate Rector for automated refactoring alongside Pint for style enforcement, running both within a unified workflow to modernize code while maintaining consistent formatting.

Do I need existing Laravel Kickoff configuration to set up code quality gates?

Yes, existing Laravel Kickoff baseline configuration is required, as this workflow builds upon that foundation to extend CI gates and coordinate quality checks.

How do GitHub Actions CI quality gates work with Laravel static analysis?

GitHub Actions CI quality gates run static analysis checks on pull requests, enforcing PHPStan baselines and Pint formatting rules to prevent code quality regressions from merging.