mirror of
https://github.com/MaksTinyWorkshop/_Assistant_Lead_Tech
synced 2026-04-06 21:41:42 +02:00
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.
This commit is contained in:
@@ -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 :"
|
||||
|
||||
Reference in New Issue
Block a user