From 4a3df7cd01c6cd6eb1eea7b1114f1bad8cceb51f Mon Sep 17 00:00:00 2001 From: MaksTinyWorkshop Date: Mon, 9 Mar 2026 14:35:35 +0100 Subject: [PATCH] feat: patcher aussi les checklists dev-story et code-review Ajoute un item capitalisation dans les DoD checklists pour forcer une trace visible dans le processus de validation de story/review. --- scripts/post-bmad-install.sh | 54 ++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) diff --git a/scripts/post-bmad-install.sh b/scripts/post-bmad-install.sh index 178ff54..28bbbdd 100755 --- a/scripts/post-bmad-install.sh +++ b/scripts/post-bmad-install.sh @@ -118,6 +118,8 @@ build_memory() { CAPITALIZE_MARKER_XML="Capitalisation Lead_tech" DEV_STORY_XML="$PROJECT_ROOT/_bmad/bmm/workflows/4-implementation/dev-story/instructions.xml" CODE_REVIEW_XML="$PROJECT_ROOT/_bmad/bmm/workflows/4-implementation/code-review/instructions.xml" +DEV_STORY_CHECKLIST="$PROJECT_ROOT/_bmad/bmm/workflows/4-implementation/dev-story/checklist.md" +CODE_REVIEW_CHECKLIST="$PROJECT_ROOT/_bmad/bmm/workflows/4-implementation/code-review/checklist.md" patch_dev_story() { local file="$DEV_STORY_XML" @@ -187,6 +189,56 @@ patch_code_review() { echo " [ok] code-review/instructions.xml — capitalisation injectée" } +patch_dev_story_checklist() { + local file="$DEV_STORY_CHECKLIST" + + if [ ! -f "$file" ]; then + echo " [skip] dev-story/checklist.md — fichier absent" + return 0 + fi + + if grep -q "$CAPITALIZE_MARKER_XML" "$file"; then + echo " [skip] dev-story/checklist.md — capitalisation déjà présente" + return 0 + fi + + awk ' + /\*\*User Communication Ready\*\*/ { + print + print "- [ ] **Capitalisation Lead_tech:** Section \"🧠 Capitalisation Lead_tech\" outputted — proposals written to \`95_a_capitaliser.md\` OR explicit \"Rien à capitaliser\" stated" + next + } + { print } + ' "$file" > "${file}.tmp" && mv "${file}.tmp" "$file" + + echo " [ok] dev-story/checklist.md — capitalisation injectée" +} + +patch_code_review_checklist() { + local file="$CODE_REVIEW_CHECKLIST" + + if [ ! -f "$file" ]; then + echo " [skip] code-review/checklist.md — fichier absent" + return 0 + fi + + if grep -q "$CAPITALIZE_MARKER_XML" "$file"; then + echo " [skip] code-review/checklist.md — capitalisation déjà présente" + return 0 + fi + + awk ' + /Story saved successfully/ { + print + print "- [ ] Capitalisation Lead_tech outputted — proposals written to \`95_a_capitaliser.md\` OR explicit \"Rien à capitaliser\" stated" + next + } + { print } + ' "$file" > "${file}.tmp" && mv "${file}.tmp" "$file" + + echo " [ok] code-review/checklist.md — capitalisation injectée" +} + patch_claude_md() { if [ ! -f "$CLAUDE_MD" ]; then echo " [skip] CLAUDE.md — fichier absent" @@ -250,6 +302,8 @@ echo "" echo "Patch workflows :" patch_dev_story patch_code_review +patch_dev_story_checklist +patch_code_review_checklist echo "" echo "Patch CLAUDE.md :"