laravel-quality

Enforce strict types, static analysis, and formatting in Laravel with PHPStan and Pint.

1|Updated May 24, 2026
One-click install
npx skills add https://github.com/PTKDrake/FIT-vmu --skill laravel-quality-ptkdrake
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: laravel-quality
Source: https://github.com/PTKDrake/FIT-vmu/tree/main/.agents/skills/laravel-quality
Command: npx skills add https://github.com/PTKDrake/FIT-vmu --skill laravel-quality-ptkdrake

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill helps improve code quality and maintainability in Laravel projects by implementing automated tools like PHPStan, Pint, and strict typing.

Core Features & Use Cases

  • Static Analysis: Uses PHPStan to analyze the code for type errors, code smells, and undefined behaviors.
  • Code Formatting: Ensures code adherence to standards with Pint.
  • Strict Typing: Implements strict typing throughout the codebase to improve performance and catch errors early.
  • Use Case: Integrate this Skill into your project workflow to maintain code quality during development.

Quick Start

Use the laravel-quality skill to run the code analysis tools on your project.

Frequently Asked Questions about laravel-quality

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

FAQPage Schema
How do I set up static analysis and code formatting for a Laravel project?

Laravel static analysis is configured here by integrating PHPStan with Larastan to catch type errors and undefined behaviors, while Pint automatically formats code to adhere to strict standards.

What does strict typing in Laravel achieve for PHP codebases?

Strict typing in Laravel improves performance and catches errors early by enforcing type safety across your PHP codebase, preventing undefined behaviors during development and deployment phases.

Can I use PHPStan and Larastan together to enforce type safety in Laravel?

Yes, you can use PHPStan and Larastan together through this Skill to enforce strict type safety, analyze code for type errors, and detect code smells specific to your Laravel framework implementation.

Does Pint work with PHPStan for automated Laravel code formatting?

Pint works alongside PHPStan in this workflow to handle automated Laravel code formatting, ensuring your codebase adheres to strict standards while PHPStan independently performs static analysis for type errors.

When do I need to run static analysis and formatting in my Laravel development workflow?

You need to run static analysis and formatting during Laravel development and before deployment to maintain code quality, catch type errors early, and ensure strict typing compliance across your project.