quality-checks

Run PHPCS, PHPStan, and PHPUnit checks for PHP code quality.

1|Updated Aug 12, 2025
One-click install
npx skills add https://github.com/SilverAssist/contact-form-to-api --skill quality-checks
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: quality-checks
Source: https://github.com/SilverAssist/contact-form-to-api/tree/main/.github/skills/quality-checks
Command: npx skills add https://github.com/SilverAssist/contact-form-to-api --skill quality-checks

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

PHPCS, PHPStan, and PHPUnit are essential for maintaining PHP code quality. This Skill automates running these checks before commits, pushes, or CI runs, helping catch style violations, type issues, and regressions early.

Core Features & Use Cases

  • Auto-fix formatting issues using phpcbf to speed up remediation.
  • Enforce coding standards with PHPCS and report remaining violations.
  • Perform static analysis with PHPStan at a strict level to identify type errors and potential issues.
  • Run PHPUnit tests to verify functionality and prevent regressions.
  • Suitable for pre-commit, pre-push, and CI workflows to maintain a healthy codebase and predictable results.
  • Provides clear error outputs and logs to guide fixes and audits.

Quick Start

Run the full quality-check suite to validate your PHP code before pushing.

Frequently Asked Questions about quality-checks

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

FAQPage Schema
How do I automate PHP code quality checks for pre-commit and CI workflows?

Automate PHP code quality checks by running PHPCS, PHPStan, and PHPUnit together before commits, pushes, or CI runs to catch style violations, type errors, and regressions early across your development workflow.

Can I auto-fix PHP coding standard violations before running PHPUnit tests?

Yes, you can auto-fix PHP formatting issues using phpcbf before enforcing standards with PHPCS and running PHPUnit tests, speeding up remediation while maintaining a strict zero-errors policy for your codebase.

What's the best way to run PHPStan static analysis at a strict level in a CI pipeline?

The best way to run PHPStan static analysis in a CI pipeline is through an automated quality suite that enforces a strict level to identify type errors, reports violations clearly, and prevents regressions before code integration.

Does this automated PHP quality suite require pre-existing tool configurations?

This automated PHP quality suite runs PHPCS, PHPStan, and PHPUnit checks directly without external dependencies, but you need these tools installed in your environment to execute the pre-commit, pre-push, and CI routines successfully.

Why should I use an automated quality suite instead of running PHPCS and PHPUnit manually?

Using an automated quality suite ensures consistent execution of PHPCS, PHPStan, and PHPUnit across pre-commit, pre-push, and CI scenarios, enforcing a zero-errors policy with clear reporting that manual runs often skip or overlook.

What limitations exist when enforcing a zero-errors policy with automated PHP quality checks?

The zero-errors policy strictly halts workflows on any remaining violations after auto-fixing, meaning you must resolve all complex static analysis and unit test failures before proceeding with commits, pushes, or CI runs.