diff --git a/src/bmm/workflows/1-analysis/research/workflow-market-research.md b/src/bmm/workflows/1-analysis/research/workflow-market-research.md index 9c48ac12b..937a98c4d 100644 --- a/src/bmm/workflows/1-analysis/research/workflow-market-research.md +++ b/src/bmm/workflows/1-analysis/research/workflow-market-research.md @@ -21,7 +21,7 @@ main_config: '{project-root}/_bmad/bmm/config.yaml' Load and read full config from {main_config} and resolve basic variables. **Monorepo Context Check:** -1. Check if `_bmad/.current_project exists`. +1. Check if `{project-root}/_bmad/.current_project` exists. 2. If it exists, read its content as `{project_suffix}` and override output folder: - `output_folder`: `{project-root}/_bmad-output/{project_suffix}` diff --git a/src/bmm/workflows/2-plan-workflows/create-ux-design/workflow.md b/src/bmm/workflows/2-plan-workflows/create-ux-design/workflow.md index 9f1e8f4fa..5b5be72c4 100644 --- a/src/bmm/workflows/2-plan-workflows/create-ux-design/workflow.md +++ b/src/bmm/workflows/2-plan-workflows/create-ux-design/workflow.md @@ -27,7 +27,7 @@ This uses **micro-file architecture** for disciplined execution: Load and read full config from {main_config} and resolve basic variables. **Monorepo Context Check:** -1. Check if `_bmad/.current_project exists`. +1. Check if `{project-root}/_bmad/.current_project` exists. 2. If it exists, read its content as `{project_suffix}` and override output folder: - `output_folder`: `{project-root}/_bmad-output/{project_suffix}` diff --git a/src/bmm/workflows/3-solutioning/check-implementation-readiness/workflow.md b/src/bmm/workflows/3-solutioning/check-implementation-readiness/workflow.md index c00edab53..dad036735 100644 --- a/src/bmm/workflows/3-solutioning/check-implementation-readiness/workflow.md +++ b/src/bmm/workflows/3-solutioning/check-implementation-readiness/workflow.md @@ -47,7 +47,7 @@ description: 'Critical validation workflow that assesses PRD, Architecture, and Load and read full config from {main_config} and resolve basic variables. **Monorepo Context Check:** -1. Check if `_bmad/.current_project exists`. +1. Check if `{project-root}/_bmad/.current_project` exists. 2. If it exists, read its content as `{project_suffix}` and override output folder: - `output_folder`: `{project-root}/_bmad-output/{project_suffix}` diff --git a/src/bmm/workflows/4-implementation/code-review/instructions.xml b/src/bmm/workflows/4-implementation/code-review/instructions.xml index 19902a093..becdbc943 100644 --- a/src/bmm/workflows/4-implementation/code-review/instructions.xml +++ b/src/bmm/workflows/4-implementation/code-review/instructions.xml @@ -18,6 +18,16 @@ Read content as project_suffix + + Trim whitespace and newlines from project_suffix + + 🚫 Security Error: Invalid project context path detected. + HALT + + + 🚫 Error: Project context must only contain alphanumeric characters, dots, dashes, or underscores. + HALT + Override output_folder to {project-root}/_bmad-output/{project_suffix} diff --git a/src/bmm/workflows/4-implementation/correct-course/instructions.md b/src/bmm/workflows/4-implementation/correct-course/instructions.md index 9556de401..58d00c658 100644 --- a/src/bmm/workflows/4-implementation/correct-course/instructions.md +++ b/src/bmm/workflows/4-implementation/correct-course/instructions.md @@ -45,7 +45,7 @@ Load and read full config from {main_config} and resolve basic variables. **Monorepo Context Check:** -1. Check if `_bmad/.current_project exists`. +1. Check if `{project-root}/_bmad/.current_project` exists. 2. If it exists, read its content as `{project_suffix}` and override output folder: - `output_folder`: `{project-root}/_bmad-output/{project_suffix}` Maintain running notes of findings and impacts discovered diff --git a/src/bmm/workflows/4-implementation/create-story/instructions.xml b/src/bmm/workflows/4-implementation/create-story/instructions.xml index b06b4c29e..fe543108f 100644 --- a/src/bmm/workflows/4-implementation/create-story/instructions.xml +++ b/src/bmm/workflows/4-implementation/create-story/instructions.xml @@ -18,9 +18,21 @@ 🎯 ZERO USER INTERVENTION: Process should be fully automated except for initial epic/story selection or missing documents - + Read content as project_suffix + + Trim whitespace and newlines from project_suffix + + 🚫 Security Error: Invalid project context path detected. + HALT + + + 🚫 Error: Project context must only contain alphanumeric characters, dots, dashes, or underscores. + HALT + Override output_folder to {project-root}/_bmad-output/{project_suffix} + Set {default_output_file} = {output_folder}/{story_key}.md + Output "Monorepo context detected. Output redirected to: {default_output_file}" diff --git a/src/bmm/workflows/4-implementation/dev-story/instructions.xml b/src/bmm/workflows/4-implementation/dev-story/instructions.xml index e0e4e7857..b36935782 100644 --- a/src/bmm/workflows/4-implementation/dev-story/instructions.xml +++ b/src/bmm/workflows/4-implementation/dev-story/instructions.xml @@ -13,8 +13,18 @@ User skill level ({user_skill_level}) affects conversation style ONLY, not code updates. - + Read content as project_suffix + + Trim whitespace and newlines from project_suffix + + 🚫 Security Error: Invalid project context path detected. + HALT + + + 🚫 Error: Project context must only contain alphanumeric characters, dots, dashes, or underscores. + HALT + Override output_folder to {project-root}/_bmad-output/{project_suffix} diff --git a/src/bmm/workflows/bmad-quick-flow/quick-dev/workflow.md b/src/bmm/workflows/bmad-quick-flow/quick-dev/workflow.md index 73f1feee2..f156f4b4e 100644 --- a/src/bmm/workflows/bmad-quick-flow/quick-dev/workflow.md +++ b/src/bmm/workflows/bmad-quick-flow/quick-dev/workflow.md @@ -28,7 +28,7 @@ This uses **step-file architecture** for focused execution: Load and read full config from {main_config} and resolve basic variables. **Monorepo Context Check:** -1. Check if `_bmad/.current_project exists`. +1. Check if `{project-root}/_bmad/.current_project` exists. 2. If it exists, read its content as `{project_suffix}` and override output folder: - `output_folder`: `{project-root}/_bmad-output/{project_suffix}` diff --git a/src/bmm/workflows/bmad-quick-flow/quick-spec/workflow.md b/src/bmm/workflows/bmad-quick-flow/quick-spec/workflow.md index 08146d91c..08afd36b1 100644 --- a/src/bmm/workflows/bmad-quick-flow/quick-spec/workflow.md +++ b/src/bmm/workflows/bmad-quick-flow/quick-spec/workflow.md @@ -69,7 +69,7 @@ This uses **step-file architecture** for disciplined execution: Load and read full config from {main_config} and resolve basic variables. **Monorepo Context Check:** -1. Check if `_bmad/.current_project exists`. +1. Check if `{project-root}/_bmad/.current_project` exists. 2. If it exists, read its content as `{project_suffix}` and override output folder: - `output_folder`: `{project-root}/_bmad-output/{project_suffix}` diff --git a/src/bmm/workflows/document-project/workflows/deep-dive-instructions.md b/src/bmm/workflows/document-project/workflows/deep-dive-instructions.md index d0d1dd6d4..17b7768d9 100644 --- a/src/bmm/workflows/document-project/workflows/deep-dive-instructions.md +++ b/src/bmm/workflows/document-project/workflows/deep-dive-instructions.md @@ -11,6 +11,23 @@ Load existing project structure from index.md and project-parts.json (if exists) Load source tree analysis to understand available areas + + Read content as project_suffix + + Trim whitespace and newlines from project_suffix + + 🚫 Security Error: Invalid project context path detected. + HALT + + + 🚫 Error: Project context must only contain alphanumeric characters, dots, dashes, or underscores. + HALT + + Override output_folder to {project-root}/_bmad-output/{project_suffix} + Override project_knowledge to {project-root}/_bmad-output/{project_suffix} + Output "Monorepo context detected. Writing deep-dive artifacts to: {project_knowledge}" + + Analyze existing documentation to suggest deep-dive options @@ -254,10 +271,7 @@ Detailed exhaustive analysis of specific areas: Load and read full config from {main_config} and resolve basic variables. -**Monorepo Context Check:** -1. Check if `{project-root}/_bmad/.current_project` exists. -2. If it exists, read its content as `{project_suffix}` and override output folder: - - `output_folder`: `{project-root}/_bmad-output/{project_suffix}` + - Related code and reuse opportunities - Implementation guidance diff --git a/src/core/workflows/advanced-elicitation/workflow.xml b/src/core/workflows/advanced-elicitation/workflow.xml index 985ac0bc3..0f8ed3be7 100644 --- a/src/core/workflows/advanced-elicitation/workflow.xml +++ b/src/core/workflows/advanced-elicitation/workflow.xml @@ -20,8 +20,18 @@ - + Read content as project_suffix + + Trim whitespace and newlines from project_suffix + + 🚫 Security Error: Invalid project context path detected. + HALT + + + 🚫 Error: Project context must only contain alphanumeric characters, dots, dashes, or underscores. + HALT + Override output_folder to {project-root}/_bmad-output/{project_suffix}