From 686af5b0ee7811d0c56b5bba453077a0e95fc4f1 Mon Sep 17 00:00:00 2001 From: Alex Verkhovsky Date: Wed, 3 Dec 2025 11:14:36 -0700 Subject: [PATCH] feat: add intelligent routing to quick-dev workflow (#1019) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add escalation threshold and scale-adaptive routing to quick-dev: - Simple requests get standard [t]/[e] choice - Complex requests evaluated against project-levels.yaml - Level 1-2 or uncertain → tech-spec recommended - Level 3+ → BMad Method (workflow-init) recommended 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Co-authored-by: Brian --- .../bmad-quick-flow/quick-dev/instructions.md | 111 ++++++++++++++++-- .../bmad-quick-flow/quick-dev/workflow.yaml | 4 + 2 files changed, 108 insertions(+), 7 deletions(-) diff --git a/src/modules/bmm/workflows/bmad-quick-flow/quick-dev/instructions.md b/src/modules/bmm/workflows/bmad-quick-flow/quick-dev/instructions.md index b2b8a331..b1635173 100644 --- a/src/modules/bmm/workflows/bmad-quick-flow/quick-dev/instructions.md +++ b/src/modules/bmm/workflows/bmad-quick-flow/quick-dev/instructions.md @@ -32,18 +32,115 @@ - **[t] Plan first** - Create tech-spec then implement + + + +Evaluate escalation threshold against user input (minimal tokens, no file loading): + +**Triggers escalation** (if 2+ signals present): + +- Multiple components mentioned (e.g., dashboard + api + database) +- System-level language (e.g., platform, integration, architecture) +- Uncertainty about approach (e.g., "how should I", "best way to") +- Multi-layer scope (e.g., UI + backend + data together) +- Extended timeframe (e.g., "this week", "over the next few days") + +**Reduces signal:** + +- Simplicity markers (e.g., "just", "quickly", "fix", "bug", "typo", "simple", "basic", "minor") +- Single file/component focus +- Confident, specific request + +Use holistic judgment, not mechanical keyword matching. + + + + **[t] Plan first** - Create tech-spec then implement **[e] Execute directly** - Start now - - Load and execute {create_tech_spec_workflow} - Continue to implementation after spec complete + + Load and execute {create_tech_spec_workflow} + Continue to implementation after spec complete + + + + Any additional guidance before I begin? (patterns, files, constraints) Or "go" to start. + step_2 + + - - Any additional guidance before I begin? (patterns, files, constraints) Or "go" to start. - step_2 + + + Load {project_levels} and evaluate user input against detection_hints.keywords + Determine level (0-4) using scale-adaptive definitions + + + + **[t] Plan first** - Create tech-spec then implement + +**[e] Execute directly** - Start now + + + Load and execute {create_tech_spec_workflow} + Continue to implementation after spec complete + + + + Any additional guidance before I begin? (patterns, files, constraints) Or "go" to start. + step_2 + + + + + This looks like a focused feature with multiple components. + +**[t] Create tech-spec first** (recommended) +**[w] Seems bigger than quick-dev** — see what BMad Method recommends (workflow-init) +**[e] Execute directly** + + + Load and execute {create_tech_spec_workflow} + Continue to implementation after spec complete + + + + Load and execute {workflow_init} + EXIT quick-dev - user has been routed to BMad Method + + + + Any additional guidance before I begin? (patterns, files, constraints) Or "go" to start. + step_2 + + + + + + This sounds like platform/system work. + +**[w] Start BMad Method** (recommended) (workflow-init) +**[t] Create tech-spec** (lighter planning) +**[e] Execute directly** - feeling lucky + + + Load and execute {workflow_init} + EXIT quick-dev - user has been routed to BMad Method + + + + Load and execute {create_tech_spec_workflow} + Continue to implementation after spec complete + + + + Any additional guidance before I begin? (patterns, files, constraints) Or "go" to start. + step_2 + + + + diff --git a/src/modules/bmm/workflows/bmad-quick-flow/quick-dev/workflow.yaml b/src/modules/bmm/workflows/bmad-quick-flow/quick-dev/workflow.yaml index 3f9ca77e..7c2de639 100644 --- a/src/modules/bmm/workflows/bmad-quick-flow/quick-dev/workflow.yaml +++ b/src/modules/bmm/workflows/bmad-quick-flow/quick-dev/workflow.yaml @@ -25,5 +25,9 @@ create_tech_spec_workflow: "{project-root}/{bmad_folder}/bmm/workflows/bmad-quic party_mode_exec: "{project-root}/{bmad_folder}/core/workflows/party-mode/workflow.md" advanced_elicitation: "{project-root}/{bmad_folder}/core/tasks/advanced-elicitation.xml" +# Routing resources (lazy-loaded) +project_levels: "{project-root}/{bmad_folder}/bmm/workflows/workflow-status/project-levels.yaml" +workflow_init: "{project-root}/{bmad_folder}/bmm/workflows/workflow-status/init/workflow.yaml" + standalone: true web_bundle: false