/qa:phpstan-resolverfrom qa
Automatically resolves PHPStan type errors by grouping errors by file and fixing them iteratively until zero errors or stagnation. Invoke with /qa:phpstan.
Ships in qa. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
IMPORTANT : Exécute ce workflow étape par étape :
/qa:phpstan
PHPSTAN_BIN="./vendor/bin/phpstan"
PHPSTAN_CONFIG="phpstan.neon" # ou phpstan.neon.dist
ERROR_BATCH_SIZE=5
MAX_ITERATIONS=10
Créer les tâches du workflow :
Utiliser TaskCreate pour chaque phase :
TaskCreate #1: Vérifier environnement PHPStan
TaskCreate #2: Exécuter analyse initiale (--error-format=json)
TaskCreate #3: Grouper erreurs par fichier
TaskCreate #4: Boucle de résolution (max 10 itérations)
TaskCreate #5: Générer rapport final
Important :
activeForm (ex: "Vérifiant environnement PHPStan", "Résolvant erreurs")in_progress puis completedPattern d'exécution pour chaque étape :
TaskUpdate → tâche en in_progressTaskUpdate → tâche en completedSpécial pour la boucle de résolution (tâche #4) :
in_progress au début de la bouclecompleted qu'à la fin (0 erreur, stagnation, ou max itérations)in_progress pendant toutes les itérations--error-format=json)@phpstan-error-resolverUtilise l'agent @phpstan-error-resolver pour les corrections :
details:
total_errors_initial: X
total_errors_final: Y
errors_fixed: Z
success_rate: "X%"
iterations: N
Progression du workflow :
in_progress pendant toutes les itérationsin_progress → exécution → completedTaskList pour voir la progression (notamment pour la boucle longue)What SKILL.md sets; muted values are Claude Code's defaults
opusOther plugins' skills for the same job
2 skills in this plugin
npx claudepluginhub atournayre/claude-marketplace --plugin qa