Agent skill
phpstan-resolver
Résout automatiquement les erreurs PHPStan en analysant et corrigeant les problèmes de types. Boucle jusqu'à zéro erreur ou stagnation.
Stars
163
Forks
31
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/development/phpstan-resolver-atournayre-claude-marketplace
SKILL.md
PHPStan Error Resolver Skill
Usage
/qa:phpstan
Configuration
bash
PHPSTAN_BIN="./vendor/bin/phpstan"
PHPSTAN_CONFIG="phpstan.neon" # ou phpstan.neon.dist
ERROR_BATCH_SIZE=5
MAX_ITERATIONS=10
Workflow
- Vérifier environnement PHPStan
- Exécuter analyse initiale (
--error-format=json) - Grouper erreurs par fichier
- Boucle de résolution :
- Déléguer corrections à
@phpstan-error-resolver - Re-exécuter PHPStan
- Répéter jusqu'à 0 erreur ou stagnation
- Déléguer corrections à
- Générer rapport final
Délégation
Utilise l'agent @phpstan-error-resolver pour les corrections :
- Batch de 5 erreurs par fichier par itération
- Maximum 10 itérations
Rapport
yaml
details:
total_errors_initial: X
total_errors_final: Y
errors_fixed: Z
success_rate: "X%"
iterations: N
References
- Scripts de workflow - Scripts bash détaillés et TodoWrite
Error Handling
- PHPStan non trouvé → ARRÊT
- Config absente → ARRÊT
- Stagnation → ARRÊT avec rapport
- Max itérations → ARRÊT avec rapport
Didn't find tool you were looking for?