devcode
Implémenter selon le plan (Phase 5)
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Implémenter selon le plan (Phase 5)
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
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.