Skip to content
Skill

phpstan-resolver

by majiayu000

AI Summary

Utiliser pour chaque phase : 1. Vérifier environnement PHPStan 2. Exécuter analyse initiale ()

Install

Copy this and paste it into Claude Code, Cursor, or any AI assistant:

I want to install the "phpstan-resolver" skill in my project.

Please run this command in my terminal:
# Install skill into your project (2 files)
mkdir -p .claude/skills/phpstan-resolver && curl --retry 3 --retry-delay 2 --retry-all-errors -o .claude/skills/phpstan-resolver/SKILL.md "https://raw.githubusercontent.com/majiayu000/claude-skill-registry/main/skills/development/phpstan-resolver/SKILL.md" && curl --retry 3 --retry-delay 2 --retry-all-errors -o .claude/skills/phpstan-resolver/metadata.json "https://raw.githubusercontent.com/majiayu000/claude-skill-registry/main/skills/development/phpstan-resolver/metadata.json"

Then restart Claude Code (or reload the window in Cursor) so the skill is picked up.

Description

Résout automatiquement les erreurs PHPStan en analysant et corrigeant les problèmes de types. Boucle jusqu'à zéro erreur ou stagnation.

Instructions à Exécuter

IMPORTANT : Exécute ce workflow étape par étape :

Configuration

`bash PHPSTAN_BIN="./vendor/bin/phpstan" PHPSTAN_CONFIG="phpstan.neon" # ou phpstan.neon.dist ERROR_BATCH_SIZE=5 MAX_ITERATIONS=10 `

Initialisation

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 : • Utiliser activeForm (ex: "Vérifiant environnement PHPStan", "Résolvant erreurs") • La tâche #4 peut prendre du temps (boucle jusqu'à 10 itérations) • Chaque tâche doit être marquée in_progress puis completed Pattern d'exécution pour chaque étape : • TaskUpdate → tâche en in_progress • Exécuter l'étape • TaskUpdate → tâche en completed Spécial pour la boucle de résolution (tâche #4) : • Marquer en in_progress au début de la boucle • Ne marquer en completed qu'à la fin (0 erreur, stagnation, ou max itérations) • Le statut reste in_progress pendant toutes les itérations

Étapes

• 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 • Générer rapport final

Discussion

0/2000
Loading comments...

Health Signals

MaintenanceCommitted 22d ago
Active
Adoption100+ stars on GitHub
530 ★ · Growing
DocsREADME + description
Well-documented

GitHub Signals

Stars530
Forks83
Issues1
Updated22d ago
View on GitHub
MIT License

My Fox Den

Community Rating

Sign in to rate this booster

Works With

Claude Code