qa

Automate the run-fix-run cycle for PHP-QA-CI tools.

1|Updated Nov 11, 2021
One-click install
npx skills add https://github.com/LongTermSupport/php-qa-ci --skill qa
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: qa
Source: https://github.com/LongTermSupport/php-qa-ci/tree/main/.claude/skills/qa
Command: npx skills add https://github.com/LongTermSupport/php-qa-ci --skill qa

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Managing and executing multiple PHP quality assurance tools (PHPStan, PHPUnit, Rector, CS Fixer, Infection) and their respective fixers can be complex and time-consuming. This Skill acts as a central orchestrator, automating the entire run-fix-run cycle for all php-qa-ci tools, ensuring code quality with minimal manual effort.

Core Features & Use Cases

  • Unified QA Pipeline: Orchestrates PHPStan, PHPUnit, Rector, CS Fixer, and other tools via the php-qa-ci pipeline.
  • Automatic Run-Fix-Run Cycle: Intelligently detects issues, invokes appropriate fixer skills/agents, and re-runs tools until code is clean or escalation is needed.
  • Token Efficiency: Uses cheap sub-agents for tool execution, preserving main context tokens.
  • Use Case: Instead of manually running phpstan, then rector, then phpunit, simply ask "run all static analysis" or "run all tests" and the Skill will handle the entire process, including automatic fixes and re-runs, reporting only the final clean status.

Quick Start

Use the qa skill to run all static analysis tools and fix any issues.

Frequently Asked Questions about qa

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

FAQPage Schema
How do I automate PHP code quality checks and fixes in a single workflow?

Automate PHP code quality checks by orchestrating PHPStan, PHPUnit, Rector, and CS Fixer through a unified run-fix-run cycle. The qa skill detects issues, invokes appropriate fixers, and re-runs tools until code is clean, eliminating manual repetition across multiple tools.

Can I run PHPStan, Rector, and CS Fixer together without manual intervention?

Yes. The qa skill cycles through PHPStan, Rector, CS Fixer, and other php-qa-ci tools automatically, applying fixes and re-running diagnostics until all issues resolve, preserving context tokens by delegating execution to sub-agents.

What PHP QA tools does this skill support?

The qa skill supports PHPStan, PHPUnit, Rector, CS Fixer, Infection, and allStatic/allCs/allTests groups. Invoke any tool via ./bin/qa -t {toolname} and the skill orchestrates the full run-fix-run cycle for that tool.

How do I know when PHP static analysis and code fixes are complete?

The qa skill reports a final, token-efficient summary once all php-qa-ci tools run clean. It cycles automatically until no fixes remain, then signals completion status without verbose intermediate logs.

Does this work with CI/CD pipelines for PHP projects?

Yes. The qa skill integrates into CI/CD workflows by automating the php-qa-ci pipeline, running static analysis, applying fixes, and re-testing in a single orchestrated process, reducing pipeline complexity and manual tool management.