devcode
Implémenter selon le plan (Phase 5)
Mit Codex oder Claude installieren Kopieren Sie diesen Prompt, fügen Sie ihn in Codex, Claude oder einen anderen Assistant ein und lassen Sie die Skill-Seite prüfen und installieren.
Menü
Implémenter selon le plan (Phase 5)
Mit Codex oder Claude installieren Kopieren Sie diesen Prompt, fügen Sie ihn in Codex, Claude oder einen anderen Assistant ein und lassen Sie die Skill-Seite prüfen und installieren.
Basierend auf der SOC-Berufsklassifikation
Automatise les mises à jour de version des plugins avec détection automatique du type de version
Skill interne fournissant les scripts communs pour la création de branches. Ne pas appeler directement - utilisé par git:branch et git:worktree.
Création de branche Git avec workflow structuré
Création de worktree Git avec workflow structuré
Crée une Pull Request en mode Continuous Delivery avec workflow complet : QA, labels version (major/minor/patch), feature flags, code review automatique.
Skill interne fournissant les scripts communs pour la création de Pull Requests. Ne pas appeler directement - utilisé par git-pr et git-cd-pr.
| name | dev:code |
| description | Implémenter selon le plan (Phase 5) |
| argument-hint | ["path-to-plan"] |
| model | sonnet |
| allowed-tools | ["Read","Write","Edit","Bash","Grep","Glob","TaskCreate","TaskUpdate","TaskList"] |
| version | 1.0.0 |
| license | MIT |
| hooks | {"PreToolUse":[{"matcher":"Read","hooks":[{"type":"command","command":"# Hook 3: Vérifier qu'on a un plan à suivre\nif [ -f \".claude/data/.dev-workflow-state.json\" ]; then\n PLAN_PATH=$(jq -r '.planPath // empty' .claude/data/.dev-workflow-state.json 2>/dev/null || echo \"\")\n if [ -z \"$PLAN_PATH\" ] || [ ! -f \"$PLAN_PATH\" ]; then\n echo \"❌ ERREUR : Aucun plan trouvé\"\n echo \"Lance d'abord : /dev:plan\"\n exit 1\n fi\nfi\n","once":true}]}],"PostToolUse":[{"matcher":"Edit","hooks":[{"type":"command","command":"# Hook 1: PHPStan après chaque Edit (fichiers PHP uniquement)\nFILE=$(echo \"$CLAUDE_TOOL_ARGS\" | grep -oP '(?<=file_path: ).*?(?=,|$)' || echo \"\")\n\nif [ -n \"$FILE\" ] && [[ \"$FILE\" == *.php ]]; then\n echo \"🔍 Vérification PHPStan de $FILE...\"\n\n if [ -f \"Makefile\" ] && grep -q \"^phpstan:\" Makefile; then\n make phpstan FILES=\"$FILE\" 2>/dev/null || vendor/bin/phpstan analyse \"$FILE\" --level=9 --no-progress 2>/dev/null || echo \"⚠️ PHPStan non disponible\"\n elif [ -f \"vendor/bin/phpstan\" ]; then\n vendor/bin/phpstan analyse \"$FILE\" --level=9 --no-progress || {\n echo \"⚠️ Erreurs PHPStan détectées dans $FILE\"\n echo \"Corrige-les avant de continuer\"\n }\n fi\nfi\n","once":false}]},{"matcher":"Write","hooks":[{"type":"command","command":"# Hook 2: Auto-format après Write (fichiers PHP uniquement)\nFILE=$(echo \"$CLAUDE_TOOL_ARGS\" | grep -oP '(?<=file_path: ).*?(?=,|$)' || echo \"\")\n\nif [ -n \"$FILE\" ] && [[ \"$FILE\" == *.php ]] && [ -f \"$FILE\" ]; then\n echo \"🎨 Auto-formatage PSR-12 de $FILE...\"\n\n if [ -f \"vendor/bin/php-cs-fixer\" ]; then\n vendor/bin/php-cs-fixer fix \"$FILE\" --rules=@PSR12 --quiet 2>/dev/null && echo \"✅ Formaté : $FILE\" || echo \"⚠️ Formatage ignoré\"\n elif [ -f \"Makefile\" ] && grep -q \"^fix:\" Makefile; then\n make fix FILES=\"$FILE\" 2>/dev/null || echo \"⚠️ Formatage ignoré\"\n fi\nfi\n","once":false}]}]} |
Phase 5 du workflow de développement : implémenter la feature selon le plan généré.
PATH_TO_PLAN: $ARGUMENTS
IMPORTANT : Exécute ce workflow étape par étape :
.claude/data/.dev-workflow-state.json avec ReadplanPath du JSON⚠️ CRITIQUE : Ne PAS commencer l'implémentation sans approbation explicite.
Attendre confirmation avant de continuer.
Pour chaque étape du plan :
Lancer les vérifications :
make phpstan # PHPStan niveau 9
make fix # Formatage PSR-12
⚠️ Corriger TOUTES les erreurs PHPStan avant de continuer.