Commit Graph

450 Commits

Author SHA1 Message Date
Alex Verkhovsky 8bdf21f65b
doc: standardize quick-flow menu patterns to newer format (#1388)
Update quick-spec and quick-dev workflow menus to match established standards:
- Uppercase all menu option letters ([A], [P], [C], [T], [E], [W], etc.)
- Add "Menu Handling Logic:" sections with IF/THEN structure
- Add "EXECUTION RULES:" sections with halt/wait behavior
- Add chat handling for checkpoint menus (A/P/C)
- Remove code blocks from Display patterns, use standard format
- Add header for adversarial review process block

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
Co-authored-by: Brian <bmadcode@gmail.com>
2026-01-24 12:17:28 -06:00
Murat K Ozcan 7d63dcd6a0
docs: fix td leftover (#1394) 2026-01-24 12:16:44 -06:00
Alex Verkhovsky 9abd6654f1
feat: add optional style_guide input to editorial review tasks (#1380)
When provided, the style_guide input overrides all generic principles
(including Microsoft Style Guide baseline, reader-type priorities, and
structure-model selection) except CONTENT IS SACROSANCT.

Changes to both editorial-review-structure.xml and editorial-review-prose.xml:
- Add style_guide input after content input
- Add STYLE GUIDE OVERRIDE instruction in llm section
- Add "Consult style_guide" action in Step 3 for mid-flow refresh

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
Co-authored-by: Brian <bmadcode@gmail.com>
2026-01-24 00:24:54 -06:00
Brian Madison 431b961451 Update agent command file naming to include -agent- in filename
- Change agent command files from bmad_module_name to bmad_module_agent_name
- Update path-utils.js to insert 'agent' segment in agent file names
- Update CSV files to reflect new underscore naming convention
- Refactor toUnderscorePath to use toUnderscoreName for consistency
- Update parseUnderscoreName to handle new agent naming pattern

Examples:
- bmm/agents/pm.md → bmad_bmm_agent_pm.md (was bmad_bmm_pm.md)
- cis/agents/brainstorming.md → bmad_cis_agent_brainstorming.md
- Core agents: bmad_agent_name.md
2026-01-23 22:30:14 -06:00
Alex Verkhovsky def8da0acb
refactor: replace 'execute' with 'Read fully and follow:' in workflow prompts (#1387)
Replace ambiguous "execute" terminology with explicit "Read fully and follow:"
phrasing across all workflow files to prevent LLM goal-seeking behavior where
models attempt to "achieve the end result" rather than following step-by-step
instructions verbatim.

Changes:
- Update 5 handler templates with canonical phrasing
- Replace ~150 INSTRUCTIONAL patterns across 87 workflow files
- Add "[Workflow] complete." prefix to 7 workflow endpoints
- Preserve BEHAVIORAL/STRUCTURAL patterns (agent descriptions, XML tags)
- Fix gitignore and markdownlint to ignore all node_modules directories

Closes #1372

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-23 22:25:19 -06:00
Murat K Ozcan 48881f86a6
doc: test design refinements (#1382) 2026-01-23 13:00:48 -06:00
Brian Madison efbe839a0a installer cleanup 2026-01-23 00:27:26 -06:00
Alex Verkhovsky aad132c9b1
feat: add optional also_consider input to adversarial review task (#1371)
Add an optional also_consider parameter that allows callers to pass
domain-specific areas to keep in mind during review. This gently nudges
the reviewer toward specific concerns without overriding normal analysis.

Testing showed:
- Specific items steer strongly (questions get directly answered)
- Domain-focused items shift the lens (e.g., security focus = deeper security findings)
- Vague items have minimal effect (similar to baseline)
- Single items nudge without dominating
- Contradictory items handled gracefully

Includes test cases with sample content and 10 configurations to validate
the parameter behavior across different use cases.

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
Co-authored-by: Brian <bmadcode@gmail.com>
2026-01-22 22:26:25 -06:00
Murat K Ozcan 6eb7c34752
docs: update test-design workflow to generate two documents for system-level mode (#1367)
* docs: update test-design workflow to generate two documents for system-level mode

* addressed pr comments
2026-01-22 14:29:33 -06:00
Brian Madison 77a53a20ed Update module-help.csv format
Refine format documentation and phase ordering guidance
2026-01-22 00:04:32 -06:00
Brian Madison 5d89298fe8 brainstorming docs now go to /brainstorming folder instead of /analysis 2026-01-21 23:18:38 -06:00
Brian Madison 421a811e87 added diagrams to module help 2026-01-21 21:16:44 -06:00
Brian Madison c9c3d31d3a add the phase four items to the workflow csv for bmm. compile all csv to a install file. improve the bmad-help to know how to work with the csv that contains the workflows from all installed modules 2026-01-21 20:47:43 -06:00
Brian Madison ec8ab0c638 workflow tracking evolved to bmad-help 2026-01-21 14:05:57 -06:00
Brian Madison aae7923d5d standardize installer flat command list with naming convention standardization to make workflow update 2026-01-21 12:22:32 -06:00
Brian Madison 3734607994 workflow drastic simplification and more reliable 2026-01-20 01:12:20 -06:00
Brian Madison e29a1273e1 remove legacy workflow manager 2026-01-19 21:52:04 -06:00
Alex Verkhovsky 01bbe2a3ef
fix: add sprint-status.yaml sync to correct-course workflow (#1358)
The correct-course workflow restructures epics but did not update
sprint-status.yaml, leaving tracking out of sync. Added check-item 6.4
to Section 6 (after user approval) to update sprint-status.yaml when
epics are added, removed, renumbered, or stories are modified.

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-19 11:09:10 -06:00
Brian Madison 6f8f0871cf Project Cleanup of Agents Menus, BMB module removal to other repo 2026-01-19 02:04:14 -06:00
Brian Madison 14bfa5b224 bmad builder removed to new repo 2026-01-18 20:44:57 -06:00
Brian Madison 83641eee9d improve all install prompts 2026-01-18 17:27:50 -06:00
Brian Madison 28e6dded4d installation for remote modules now indicates its getching or installing so it does not appear to be hung when caching the remote in the local npm cache 2026-01-18 08:11:35 -06:00
Brian Madison a50d82df1c remove subagent installation option from CC and antigravity - subagents install have been replaced with the better subprocess request / task agents to allow for more ideas to use the tool they have available to generate needed subagent functionality on the fly. 2026-01-17 02:16:46 -06:00
Brian Madison 7cd4926adb project-root stutter fix 2026-01-15 23:03:02 -06:00
Brian Madison 577c1aa218 remove modules moved to new repos and update installer to support the remote module isntallation and updates. this is a temporary imlemtation machanism 2026-01-15 22:20:56 -06:00
Brian Madison 3360666c2a remove hard inclusion of AV from installer, to replace with module soon 2026-01-14 23:04:19 -06:00
Murat K Ozcan 6d84a60a78
docs: tea entry points and resume tip (#1246)
Co-authored-by: Brian <bmadcode@gmail.com>
2026-01-14 21:13:48 -06:00
Eduard Voiculescu 59e1b7067c
remove remember the users name is {user_name}, it is already present in the activation-steps.txt (#1315) 2026-01-14 21:04:43 -06:00
sjennings 1d8df63ac5
feat(bmgd): Add E2E testing methodology and scaffold workflow (#1322)
* feat(bmgd): Add E2E testing methodology and scaffold workflow

- Add comprehensive e2e-testing.md knowledge fragment
- Add e2e-scaffold workflow for infrastructure generation
- Update qa-index.csv with e2e-testing fragment reference
- Update game-qa.agent.yaml with ES trigger
- Update test-design and automate instructions with E2E guidance
- Update unity-testing.md with E2E section reference

* fix(bmgd): improve E2E testing infrastructure robustness

- Add WaitForValueApprox overloads for float/double comparisons
- Fix assembly definition to use precompiledReferences for test runners
- Fix CaptureOnFailure to yield before screenshot capture (main thread)
- Add error handling to test file cleanup with try/catch
- Fix ClickButton to use FindObjectsByType and check scene.isLoaded
- Add engine-specific output paths (Unity/Unreal/Godot) to workflow
- Fix knowledge_fragments paths to use correct relative paths

* feat(bmgd): add E2E testing support for Godot and Unreal

Godot:
- Add C# testing with xUnit/NSubstitute alongside GDScript GUT
- Add E2E infrastructure: GameE2ETestFixture, ScenarioBuilder,
  InputSimulator, AsyncAssert (all GDScript)
- Add example E2E tests and quick checklist

Unreal:
- Add E2E infrastructure extending AFunctionalTest
- Add GameE2ETestBase, ScenarioBuilder, InputSimulator classes
- Add AsyncTestHelpers with latent commands and macros
- Add example E2E tests for combat and turn cycle
- Add CLI commands for running E2E tests

---------

Co-authored-by: Scott Jennings <scott.jennings+CIGINT@cloudimperiumgames.com>
Co-authored-by: Brian <bmadcode@gmail.com>
2026-01-14 20:53:40 -06:00
Alex Verkhovsky d419ac8a70
feat: add editorial review tasks for structure and prose (#1307)
* feat: add editorial review tasks for structure and prose

Add two complementary editorial review tasks:

- editorial-review-structure.xml: Structural editor that proposes cuts,
  reorganization, and simplification. Includes 5 document archetype models
  (Tutorial, Reference, Explanation, Prompt, Strategic) for targeted evaluation.

- editorial-review-prose.xml: Clinical copy-editor for prose improvements
  using Microsoft Writing Style Guide as baseline.

Both tasks support humans and llm target audiences with different principles.

* fix: add content-sacrosanct guardrail to editorial review tasks

Both editorial review tasks (prose and structure) were missing the key
constraint that reviewers should never challenge the ideas/knowledge
themselves—only how clearly they are communicated. This restores the
original design intent.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* fix: align reader_type parameter naming across editorial tasks

Prose task was using 'target_audience' for the humans/llm optimization
flag while structure task correctly separates 'target_audience' (who
reads) from 'reader_type' (optimization mode). Aligns to reader_type.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
Co-authored-by: Brian <bmadcode@gmail.com>
2026-01-13 00:20:04 +08:00
Alex Verkhovsky d4f6642333
fix: add missing review menu and HALT to quick-spec step 4 (#1305)
Step 4 was missing a structured menu at the spec review checkpoint.
This caused agents to skip past the approval step without waiting for
explicit user confirmation.

Added:
- Review menu with [y] Approve, [c] Changes, [q] Questions, [a] Advanced Elicitation, [p] Party Mode
- Explicit HALT instruction
- Menu handling section

This aligns step 4 with the menu-driven pattern used in steps 1-3.

Fixes #1304

Also fixes pre-existing prettier issue in src/modules/cis/module.yaml.

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-11 17:04:52 +08:00
Brian c3b7e98241
Workflow Creator and Validator Tools with Sub Process Support and PRD Validation Step now available!
* critical file issues in prd refactor resolved caught using the BMB workflow validator!!
* subprocess optimization and path violation checks in the workflow validator, along with fixes to the BMM PRD workflow
* standardize workflow and PRD step markdown formatting
- Improve consistency across workflow validation steps
- Standardize PRD innovation step structure
* Workflow Validation Max Parallel Mode POC
* prd trimodal compliant
* correct PRD completion suggested next steps
2026-01-11 11:13:38 +08:00
Alex Verkhovsky c18904d674
refactor: rename create-tech-spec to quick-spec for QuickFlow branding (#1290) 2026-01-10 11:33:00 +08:00
Murat K Ozcan 3e3c92ed3e
docs: expand TEA documentation with cheat sheets, MCP enhancements, a… (#1289)
* docs: expand TEA documentation with cheat sheets, MCP enhancements, and API testing patterns

* docs: update TEA fragment counts and fix playwright-utils code examples

* docs: addressed PR review concerns

* docs: update TEA MCP configuration link to point to documentation site
2026-01-10 02:55:57 +08:00
Jonah Schulte 66628930f4 feat: add GitHub Issues migration tool with production-grade reliability
Implements /migrate-to-github (trigger: MIG) with 8 reliability mechanisms:
1. Idempotent, 2. Atomic, 3. Verified, 4. Resumable, 5. Reversible,
6. Previewed (dry-run default), 7. Resilient (retry), 8. Fail-safe

Files created:
- migrate-to-github/workflow.yaml
- migrate-to-github/instructions.md
- migrate-to-github/RELIABILITY.md

Files modified:
- sm.agent.yaml: Added MIG menu item
2026-01-08 13:56:46 -05:00
Jonah Schulte 2496017a5b fix(batch-super-dev): Add comprehensive file discovery for DOT and HYPHEN notation
Problem:
- Workflow failed to find story files using DOT notation (story-20.9.md)
- Only checked hyphen patterns (20-9.md, story-20-9.md)
- Caused false "file missing" errors for existing stories

Solution:
- Parse story_key to extract epic_num and story_num
- Try 6 patterns in priority order:
  1. story-{epic}.{story}.md (DOT, no suffix)
  2. story-{epic}.{story}*.md (DOT with suffix, glob)
  3. {epic}-{story}.md (HYPHEN, no prefix)
  4. {epic}-{story}*.md (HYPHEN with suffix)
  5. story-{story_key}.md (literal with prefix)
  6. {story_key}.md (literal)
- Use Glob tool for wildcard matching
- Explicit examples for each pattern

Impact:
- Correctly finds story-20.9-megamenu-navigation.md
- Handles both naming conventions automatically
- No more false missing file errors

Tested with: Stories 20.9, 20.10, 20.11 (all found correctly)
2026-01-08 08:08:38 -05:00
Jonah Schulte 73f4bd701b Merge branch 'main' of github.com:jschulte/BMAD-METHOD 2026-01-07 23:03:10 -05:00
Jonah Schulte 36e9933690 chore: bump version to 6.1.0-alpha.4
Version bump for revalidation and ghost feature detection features.

New in alpha.4:
- Story/epic revalidation workflows (verify checkbox accuracy)
- Ghost feature detector (find orphaned code with no stories)
- Both features production-ready
- Agent menus updated with RVS, RVE, GFD triggers
- .gitignore updated to exclude exported conversation files

Ready for npm publish.
2026-01-07 23:02:26 -05:00
Jonah Schulte 5ea139d7be fix(batch-super-dev): Apply agent limitation patches to Step 2.5
- Update instructions.md Step 2.5 to explicitly halt when story
  creation/regeneration is needed (agents cannot invoke workflows)
- Add clear user guidance with manual action steps
- Add manual_actions_required tracking to batch summary (Step 5)
- Update README.md with Critical Prerequisites section
- Create scripts/validate-all-stories.sh for pre-batch validation

This addresses the root cause where batch-super-dev told agents to
"Invoke workflow: /create-story-with-gap-analysis" which is not
possible in batch mode. Agents now gracefully skip invalid stories
and provide clear instructions for manual intervention.

Follows recommendations from BMAD-WORKFLOW-IMPROVEMENTS.md
2026-01-07 21:09:06 -05:00
Jonah Schulte 7f3b62eb98 Merge branch 'main' of github.com:jschulte/BMAD-METHOD 2026-01-07 21:00:24 -05:00
Jonah Schulte 80ec065117 docs(batch-super-dev): Document agent limitations and fix workflow issues
Issue discovered in platform project batch execution:
- Attempted to batch-regenerate 14 skeleton stories
- Agents cannot invoke /create-story-with-gap-analysis workflow
- Batch execution requires pre-generated BMAD stories

ROOT CAUSE:
- Agents cannot execute slash commands (user CLI only)
- Agents cannot invoke other BMAD workflows autonomously
- Story creation requires interactive user input

IMPROVEMENTS:
1. AGENT-LIMITATIONS.md - Clear documentation of what agents can/cannot do
2. WORKFLOW-PATCH-STEP-2.5.md - Fix for batch-super-dev Step 2.5
3. BMAD-WORKFLOW-IMPROVEMENTS.md - Complete analysis and recommendations

KEY LESSON:
Batch-super-dev is for EXECUTION, not CREATION.
Story generation must happen before batch execution.

Files:
- src/modules/bmm/workflows/4-implementation/batch-super-dev/AGENT-LIMITATIONS.md
- src/modules/bmm/workflows/4-implementation/batch-super-dev/WORKFLOW-PATCH-STEP-2.5.md
- BMAD-WORKFLOW-IMPROVEMENTS.md
- src/modules/cis/module.yaml (prettier formatting)
2026-01-07 20:58:53 -05:00
Jonah Schulte 2f04fbcd39 feat: add ghost feature detector (reverse gap analysis)
WHO YOU GONNA CALL? 👻 GHOST-FEATURE-BUSTERS!

Implements reverse gap analysis to find "orphaned code" - functionality
that exists in the codebase but has no corresponding story documentation.

Use Case:
"Find functionality that doesn't exist in any story (was vibe coded or
magically appeared) and propose backfilling stories" - User

FEATURE: /ghost-features (trigger: GFD)
---------------------------------------
Scans codebase and cross-references with ALL stories to find orphans:

1. Codebase Scan:
   - React/Vue/Angular components
   - API endpoints (Next.js, NestJS, Express)
   - Database tables (Prisma, TypeORM, migrations)
   - Services and business logic modules
   - Ignores tests, build artifacts, node_modules

2. Cross-Reference with Stories:
   - Check if component mentioned in any File List
   - Check if API mentioned in any Task/AC
   - Check if table mentioned in any story
   - Mark as DOCUMENTED if found, ORPHAN if not

3. Severity Classification:
   - CRITICAL: APIs, auth, payment (security-critical)
   - HIGH: Components, DB tables, services (significant features)
   - MEDIUM: Utilities, helpers
   - LOW: Config files, constants

4. Backfill Story Generation:
   - Analyze orphan code to understand functionality
   - Generate story draft documenting existing implementation
   - Mark most tasks as [x] (already exists)
   - Add tasks for missing tests/docs
   - Suggest epic assignment based on functionality

5. Epic Organization:
   - Option A: Create "Epic-Backfill" for all orphans
   - Option B: Distribute to existing epics
   - Option C: Leave in backlog

Output:
- Orphaned features list (by severity and type)
- Documentation coverage % (what % of code has stories)
- Backfill stories created (if requested)
- Comprehensive report (ghost-features-report-{timestamp}.md)

Usage:
```bash
# Detect orphans in entire sprint
/ghost-features

# Detect orphans in Epic 2
/ghost-features epic_number=2 scan_scope=epic

# Detect and create backfill stories
/ghost-features create_backfill_stories=true

# Full codebase scan
/ghost-features scan_scope=codebase
```

Files Created:
- detect-ghost-features/workflow.yaml: Reverse gap analysis config
- detect-ghost-features/instructions.md: 8-step detection + backfill process

Files Modified:
- sm.agent.yaml: Added GFD (Ghost Feature Detector) menu item

Benefits:
- Prevents "ghost features" from accumulating
- Documents vibe-coded functionality
- Maintains story-code parity
- Enables accurate sprint planning (know what actually exists)
- Makes codebase auditable (every feature has a story)
- Catches manual code additions that bypassed story process
2026-01-07 20:37:19 -05:00
Jonah Schulte 1031b1cd21 feat: add story/epic revalidation with gap filling
Implements user-requested revalidation capability to verify checkbox accuracy.

Use Case:
"I am uncertain about the real status of some stories and epics that I've
worked on and would love a re-check" - User

FEATURE: /revalidate-story
-------------------------
Clears all checkboxes and re-verifies each item against codebase:

1. Clear Phase:
   - Uncheck all boxes in ACs, Tasks, DoD
   - Start from clean slate

2. Verification Phase:
   - For each item: search codebase with Glob/Grep
   - Read files to verify actual implementation (not stubs)
   - Check for tests and verify they pass
   - Re-check verified items: [x] verified, [~] partial, [ ] missing

3. Gap Reporting:
   - Report what exists vs what's documented
   - Calculate accuracy (before % vs after %)
   - Identify over-reported (checked but missing) and under-reported (exists but unchecked)

4. Gap Filling Mode (optional):
   - Implement missing items
   - Run tests to verify
   - Commit per gap or all at once
   - Re-verify after filling

Token Cost Analysis:
- Verify-only: ~30-45K tokens (just scan and report)
- Verify-and-fill (10% gaps): ~35-55K tokens
- Verify-and-fill (50% gaps): ~60-90K tokens
- Compare to full re-implementation: ~80-120K tokens
- Savings: 40-60% when gaps <30%

FEATURE: /revalidate-epic
------------------------
Batch revalidation of all stories in an epic using semaphore pattern:

- Maintain pool of N concurrent workers
- As worker finishes → immediately start next story
- Constant concurrency until all stories revalidated
- Epic-wide summary with health score
- Stories grouped by completion %

Usage:
```bash
# Verify only
/revalidate-story story_file=path/to/story.md

# Verify and fill gaps
/revalidate-story story_file=path/to/story.md fill_gaps=true

# Revalidate entire epic
/revalidate-epic epic_number=2

# Revalidate epic and fill all gaps
/revalidate-epic epic_number=2 fill_gaps=true max_concurrent=5
```

Files Created:
- revalidate-story/workflow.yaml: Story revalidation config
- revalidate-story/instructions.md: 10-step revalidation process
- revalidate-epic/workflow.yaml: Epic batch revalidation config
- revalidate-epic/instructions.md: Semaphore pattern for parallel revalidation

Files Modified:
- dev.agent.yaml: Added RVS and RVE menu items
- sm.agent.yaml: Added RVS and RVE menu items

Next: Reverse gap analysis (detect orphaned code with no stories)
2026-01-07 20:33:18 -05:00
Jonah Schulte 90010f8ef9 feat(batch-super-dev): add git commit queue + stricter story validation
Addresses two critical production issues discovered during real usage:

ISSUE #1: Git Lock File Conflicts in Parallel Mode
----------------------------------------------------
Multiple parallel agents trying to commit simultaneously caused:
- .git/index.lock conflicts
- "Another git process is running" errors
- Required manual intervention to resolve

SOLUTION: Git Commit Queue with File-Based Locking
- Workers acquire .git/bmad-commit.lock before committing
- Automatic retry with exponential backoff (1s → 30s)
- Stale lock cleanup (>5 min old locks auto-removed)
- Timeout protection (max 5 min wait, then HALT)
- Serializes commits while keeping implementations parallel
- Zero user intervention needed

Implementation:
- super-dev-pipeline/step-06-complete.md: Added commit queue logic
- super-dev-pipeline/step-06a-queue-commit.md: NEW documentation file
- .gitignore: Added .git/bmad-commit.lock

ISSUE #2: 0-Task Stories Classified as COMPLEX
-----------------------------------------------
Real example from production:
- "11-4-classes-workshops-advanced": 0 tasks, high-risk keywords
- Classified as COMPLEX (risk keywords triggered it)
- Proceeded to implementation → agent had nothing to do → failed

SOLUTION: Minimum 3-Task Requirement
- Step 2.5 validation now rejects stories with <3 tasks
- Step 2.6 complexity scoring marks <3 tasks as INVALID
- INVALID stories filtered out before user selection
- Clear error message directs user to /validate-create-story

Validation Rules:
- 0-2 tasks: INVALID (stub/incomplete)
- 3 tasks: Minimum valid (MICRO threshold)
- 4-15 tasks: STANDARD
- 16+ tasks: COMPLEX

Implementation:
- batch-super-dev/instructions.md:
  - Step 2.5: Added <3 task check with detailed error message
  - Step 2.6: Added INVALID classification for <3 tasks
  - End of Step 2.6: Filter INVALID stories before selection
- batch-super-dev/README.md: Documented validation rules
- CHANGELOG.md: Comprehensive documentation of both features

Impact:
- Commit queue: Eliminates 100% of git lock file conflicts
- Story validation: Prevents wasted tokens on incomplete stories
- Combined: Production-ready parallel batch processing
2026-01-07 20:10:49 -05:00
Jonah Schulte d2567ad078 feat: replace batch-and-wait with semaphore pattern for parallel execution
Implements user-requested semaphore/worker pool pattern for maximum parallelization efficiency.

OLD Pattern (Inefficient):
- Split stories into batches of N
- Spawn N agents for batch 1
- Wait for ALL N to finish (idle time if some finish early)
- Spawn N agents for batch 2
- Wait for ALL N to finish
- Repeat until done

NEW Semaphore Pattern (Efficient):
- Initialize pool with N worker slots
- Fill all N slots with first N stories
- Poll workers continuously (non-blocking)
- As soon as ANY worker completes → immediately refill that slot
- Maintain constant N concurrent agents until queue empty
- Zero idle time, maximum throughput

Benefits:
- 20-40% faster completion (eliminates batch synchronization delays)
- Constant utilization of all worker slots
- More predictable completion times
- Better resource efficiency

Implementation Details:
- run_in_background: true for Task agents (non-blocking spawns)
- TaskOutput(block=false) for polling without waiting
- Worker pool state tracking (active_workers map)
- Immediate slot refill on completion
- Live progress dashboard every 30 seconds
- Graceful handling of failures (continue_on_failure support)

Files Modified:
- batch-super-dev/instructions.md: Rewrote Step 4-Parallel with semaphore logic
- batch-super-dev/README.md: Updated to v1.3.0, documented semaphore pattern
- docs/HOW-TO-VALIDATE-SPRINT-STATUS.md: Explained semaphore vs batch patterns
- src/modules/cis/module.yaml: Auto-formatted by prettier

User Experience:
- Same concurrency selection (2, 4, or all stories)
- Same sequential vs parallel choice
- Now with continuous worker pool instead of batch synchronization
- Real-time visibility: "Worker 3 completed → immediately refilled"
2026-01-07 20:04:39 -05:00
Jonah Schulte 2c84b29cb6 fix(batch-super-dev): Fix conditional questions + add 'Mend the Gap' context
PROBLEM 1: Confusing Conditional Question Logic
- Step 3.5 asked BOTH questions (Sequential/Parallel AND agent count) simultaneously
- User selects Sequential but still had to answer 'how many agents?'
- LLM misinterpreted agent count answer and launched parallel agents incorrectly

FIX 1: Split into Proper Conditional Flow
- First <ask>: Sequential or Parallel? (required)
- Second <ask>: ONLY if Parallel selected, ask agent count (conditional)
- Sequential mode now skips agent count question entirely
- Matches proper workflow.xml semantics (one <ask> = one response)

PROBLEM 2: Missing Use Case Context
- Workflow didn't explain it's primarily for gap analysis/reconciliation
- LLM didn't understand 'Sequential' means process in THIS session (not background)
- Missing mental model: verify existing → build gaps → check boxes → done

FIX 2: Add 'Mend the Gap' Header with Use Case Guide
- Added description: gap analysis + reconciliation workflow
- Explained 3 modes: Reconciliation (most common), Greenfield, Brownfield
- Clarified Sequential = in-session processing (not background agents)
- Added simple mental model for LLM understanding

IMPROVEMENT 3: Safety Limit on Parallel Agents
- Added 10-agent maximum (prevents resource exhaustion)
- 'all' option caps at min(story_count, 10)
- Added warning when count capped

RESULT:
- Sequential mode works as intended (no confusion)
- Parallel mode asks for agent count (conditional)
- LLMs understand primary use case (gap analysis)
- Safety limits prevent runaway agent spawning
- Proper workflow.xml conditional flow

Resolves: Execution mode confusion that caused incorrect parallel agent launches
2026-01-07 19:54:26 -05:00
Jonah Schulte 4eb889642d feat: add continuous sprint-status tracking with task-level progress
Implements requirements #1 and #2: stronger enforcement + progress tracking

REQUIREMENT #1: Stronger Enforcement
- dev-story Step 8 now MANDATES sprint-status.yaml update after EVERY task
- Previously: Updated only at story start (step 4) and end (step 9)
- Now: Updated after EACH task completion with CRITICAL + HALT enforcement
- Validation: Re-reads file to verify update persisted, HALTs on failure

REQUIREMENT #2: Progress Tracking
- Extended sprint-status.yaml format with inline progress comments
- Format: "story-key: in-progress  # X/Y tasks (Z%)"
- Real-time visibility into story progress without opening story files
- Automatically updated by dev-story and batch-super-dev reconciliation

Progress Comment Format:
- in-progress: "# 3/10 tasks (30%)"
- review: "# 10/10 tasks (100%) - awaiting review"
- done: "#  COMPLETED: Brief summary"

Benefits:
- Sprint-status.yaml becomes a real-time progress dashboard
- No need to open individual story files to check progress
- Immediate visibility when stories stall (same % for days)
- Enables better sprint planning and resource allocation

Files Modified:
- dev-story/instructions.xml (BMM + BMGD): Added mandatory task-level updates
- sprint-status/instructions.md (BMM + BMGD): Added progress parsing/display
- batch-super-dev/step-4.5-reconcile-story-status.md: Added progress to reconciliation
- docs/HOW-TO-VALIDATE-SPRINT-STATUS.md: Documented new format and enforcement

Breaking Change: None (backward compatible with old format)
- Old entries without progress comments still work
- New entries automatically add progress
- Gradual migration as stories are worked
2026-01-07 17:28:52 -05:00
Jonah Schulte 9bdf489438 fix: resolve critical complexity routing issues from multi-agent review
Fixes 6 critical issues discovered in multi-agent code review:

1. **Parameter propagation** - CRITICAL FIX
   - Added complexity_level parameter to super-dev-pipeline invocations
   - Fixed both sequential and parallel execution paths
   - Without this, complexity routing was completely non-functional

2. **Keyword matching rules** - CRITICAL FIX
   - Defined explicit matching algorithm in workflow.yaml
   - Case insensitive, word boundary matching, exact strategy
   - Added keyword variants (auth -> authentication, authorize, etc.)
   - Scan locations: story_title, task_descriptions, subtask_descriptions

3. **Threshold decision tree** - CRITICAL FIX
   - Rewrote overlapping logic to be mutually exclusive
   - Priority order: COMPLEX → MICRO → STANDARD
   - Prevents stories from matching multiple categories

4. **Task counting method** - CRITICAL FIX
   - Defined method: "top_level_only" (ignore subtasks)
   - Added documentation with examples
   - Eliminates ambiguity in complexity scoring

5. **max_files implementation** - FIX
   - Added file_count ≤ 5 check to MICRO classification
   - Previously extracted but never used (dead code)

6. **Version synchronization** - FIX
   - Updated super-dev-pipeline to v1.3.0 (was 1.2.0)
   - Matches batch-super-dev version for consistency

Impact: These fixes make complexity routing actually functional. The original
implementation computed complexity but never passed it to the pipeline,
rendering the entire feature non-operational.
2026-01-07 16:34:44 -05:00
Jonah Schulte e5ede9ec3f feat: add complexity-based routing and pipeline optimizations (v1.3.0)
Phase 1 & 2 improvements to reduce token waste and improve robustness:

1. Complexity scoring in batch-super-dev (step 2.6)
   - Score stories as micro/standard/complex based on task count + risk keywords
   - Micro (≤3 tasks, low risk): lightweight path
   - Standard: full pipeline
   - Complex (≥16 tasks or high-risk): enhanced validation

2. Lightweight path for micro stories
   - Skip pre-gap analysis (step 2) for micro complexity
   - Skip code review (step 5) for micro complexity
   - Estimated 50-70% token savings on simple stories

3. Smart batching clarification
   - Fixed contradictory instructions in step-03-implement.md
   - Default: one task at a time
   - Exception: batch low-risk patterns (package installs, imports)

4. Gap analysis optimization
   - dev-story skips step 1.5 if recent gap analysis exists (<24h)
   - Added skip_gap_analysis flag for pre-validated stories

5. Early bailout pre-flight check (step 4.5)
   - Bail early if story already complete (all tasks checked)
   - Bail if no tasks found (malformed story)
   - Bail if missing required sections
   - Saves tokens on stories that don't need processing

6. Multi-agent review integration (step 5)
   - For complex stories: recommend /multi-agent-review
   - Provides architecture, security, and performance review
   - Dynamic agent selection based on changed files
2026-01-07 16:20:34 -05:00
Jonah Schulte 7c1051b017 refactor: remove autonomous-epic in favor of batch-super-dev
- Remove autonomous-epic workflow from BMM and BMGD modules
- Remove agent menu entries for autonomous-epic
- Update workflow references to use batch-super-dev
- Add README-changes.md documenting fork customizations
- Remove outdated SPRINT-STATUS-SYNC-GUIDE.md

batch-super-dev is the superior approach with proactive story
validation, auto-creation of missing stories, and smart reconciliation.
2026-01-07 16:00:32 -05:00
Jonah Schulte 9df7939225 Merge upstream/main: Diataxis docs restructure + Astro migration
Resolves conflict by accepting upstream deletion of
docs/bmad-core-concepts/installing/index.md (moved to
docs/how-to/installation/)
2026-01-07 14:50:08 -05:00
Jonah Schulte b517a8b1d0 Add batch-super-dev workflow with auto-installation and quality gates
Features:
- Interactive batch selector for processing multiple ready-for-dev stories
- 5-layer quality gate system (pre-gap, post-validation, reconciliation, code review, sprint-status sync)
- Smart story reconciliation (auto-updates checkboxes based on Dev Agent Record)
- Anti-vibe-coding enforcement (verifies files exist, tests pass, implementations aren't stubs)
- Story validation & auto-creation (validates 12 BMAD sections, creates missing stories)
- Auto-generates /batch-super-dev and /super-dev-pipeline slash commands on installation

Platform Support:
- Claude Code: Auto-creates .claude-commands/batch-super-dev.md
- Windsurf: Auto-creates slash commands for cross-compatibility

Workflow Location:
- Source: src/modules/bmm/workflows/4-implementation/batch-super-dev/
- Installed: _bmad/bmm/workflows/4-implementation/batch-super-dev/

Quality Gates:
1. Pre-gap analysis validates story completeness
2. Post-implementation validation verifies every task (anti-vibe-coding)
3. Smart reconciliation updates checkboxes based on evidence
4. Multi-agent code review finds issues before commit
5. Python script validates sprint-status.yaml accuracy
2026-01-07 12:12:13 -05:00
Brian Madison 7bf05c9d9d fix missing scripts from installation, and add ability to exclude workflows from being added as commands in tools, the first being the example workflow meant just for workflow example to the workflow builder 2026-01-07 16:21:25 +08:00
Alex Verkhovsky 2e16650067
feat(docs): Diataxis restructure + Astro/Starlight migration (#1263)
* feat(docs): add Diataxis folder structure and update sidebar styling

- Create tutorials, how-to, explanation, reference directories with subdirectories
- Add index.md files for each main Diataxis section
- Update homepage with Diataxis card navigation layout
- Implement clean React Native-inspired sidebar styling
- Convert sidebar to autogenerated for both Diataxis and legacy sections
- Update docusaurus config with dark mode default and navbar changes

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* feat(docs): migrate Phase 1 files to Diataxis structure

Move 21 files to new locations:
- Tutorials: quick-start guides, agent creation guide
- How-To: installation, customization, workflows
- Explanation: core concepts, features, game-dev, builder
- Reference: merged glossary from BMM and BMGD

Also:
- Copy images to new locations
- Update internal links via migration script (73 links updated)
- Build verified successfully

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* fix(docs): add category labels for sidebar folders

Add _category_.json files to control display labels and position
for autogenerated sidebar categories.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* style(docs): improve welcome page and visual styling

- Rewrite index.md with React Native-inspired welcoming layout
- Add Diataxis section cards with descriptions
- Remove sidebar separator, add spacing instead
- Increase navbar padding with responsive breakpoints
- Add rounded admonitions without left border bar
- Use system font stack for better readability
- Add lighter chevron styling in sidebar
- Constrain max-width to 1600px for wide viewports

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* fix: use baseUrl in meta tag paths for correct deployment URLs

* feat(docs): complete Phase 2 - split files and fix broken links

Phase 2 of Diataxis migration:
- Split 16 large legacy files into 42+ focused documents
- Created FAQ section with 7 topic-specific files
- Created brownfield how-to guides (3 files)
- Created workflow how-to guides (15+ files)
- Created architecture explanation files (3 files)
- Created TEA/testing explanation files
- Moved remaining legacy module files to proper Diataxis locations

Link fixes:
- Fixed ~50 broken internal links across documentation
- Updated relative paths for new file locations
- Created missing index files for installation, advanced tutorials
- Simplified TOC anchors to fix Docusaurus warnings

Cleanup:
- Removed legacy sidebar entries for deleted folders
- Deleted duplicate and empty placeholder files
- Moved workflow diagram assets to tutorials/images

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* fix(build): use file glob instead of sidebar parsing for llms-full.txt

Replace brittle sidebar.js regex parsing with recursive file glob.
The old approach captured non-file strings like 'autogenerated' and
category labels, resulting in only 5 files being processed.

Now correctly processes all 86+ markdown files (~95k tokens).

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* fix(seo): use absolute URLs in AI meta tags for agent discoverability

AI web-browsing agents couldn't follow relative paths in meta tags due to
URL security restrictions. Changed llms-full.txt and llms.txt meta tag
URLs from relative (baseUrl) to absolute (urlParts.origin + baseUrl).

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* refactor(docs): recategorize misplaced files per Diataxis analysis

Phase 2.5 categorization fixes based on post-migration analysis:

Moved to correct Diataxis categories:
- tutorials/installation.md → deleted (duplicate of how-to/install-bmad.md)
- tutorials/brownfield-onboarding.md → how-to/brownfield/index.md
- reference/faq/* (8 files) → explanation/faq/
- reference/agents/barry-quick-flow.md → explanation/agents/
- reference/agents/bmgd-agents.md → explanation/game-dev/agents.md

Created:
- explanation/agents/index.md

Fixed all broken internal links (14 total)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* feat(docs): add Getting Started tutorial and simplify build script

- Add comprehensive Getting Started tutorial with installation as Step 1
- Simplify build-docs.js to read directly from docs/ (no consolidation)
- Remove backup/restore dance that could corrupt docs folder on build failure
- Remove ~150 lines of unused consolidation code

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* fix(css): use fixed width layout to prevent content shifting

Apply React Native docs approach: set both width and max-width at
largest breakpoint (1400px) so content area maintains consistent
size regardless of content length. Switches to fluid 100% below
1416px breakpoint.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* refactor(docs): restructure tutorials with renamed entry point

- Rename index.md to bmad-tutorial.md for clearer navigation
- Remove redundant tutorials/index.md
- Update sidebar and config references

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* feat(docs): add tutorial style guide and AI agent announcement bar

- Add docs/_contributing/ with tutorial style guide
- Reformat quick-start-bmm.md and bmad-tutorial.md per style guide
- Remove horizontal separators, add strategic admonitions
- Add persistent announcement bar for AI agents directing to llms-full.txt
- Fix footer broken link to tutorials

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* feat(docs): add markdown demo page and UI refinements

- Add comprehensive markdown-demo.md for style testing
- Remove doc category links from navbar (use sidebar instead)
- Remove card buttons from welcome page
- Add dark mode styling for announcement bar
- Clean up index.md card layout

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* feat(docs): apply unified tutorial style and update references

- Reformat create-custom-agent.md to follow tutorial style guide
- Update tutorial-style.md with complete unified structure
- Update all internal references to renamed tutorial files
- Remove obsolete advanced/index.md

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* refactor(docs): migrate from Docusaurus to Astro+Starlight

Replace Docusaurus with Astro and the Starlight documentation theme
for improved performance, better customization, and modern tooling.

Build pipeline changes:
- New build-docs.js orchestrates link checking, artifact generation,
  and Astro build in sequence
- Add check-doc-links.js for validating internal links and anchors
- Generate llms.txt and llms-full.txt for LLM-friendly documentation
- Create downloadable source bundles (bmad-sources.zip, bmad-prompts.zip)
- Suppress MODULE_TYPELESS_PACKAGE_JSON warning in Astro build
- Output directly to build/site for cleaner deployment

Website architecture:
- Add rehype-markdown-links.js plugin to transform .md links to routes
- Add site-url.js helper for GitHub Pages URL resolution with strict
  validation (throws on invalid GITHUB_REPOSITORY format)
- Custom Astro components: Banner, Header, MobileMenuFooter
- Symlink docs/ into website/src/content/docs for Starlight

Documentation cleanup:
- Remove Docusaurus _category_.json files (Starlight uses frontmatter)
- Convert all docs to use YAML frontmatter with title field
- Move downloads.md from website/src/pages to docs/
- Consolidate style guide and workflow diagram docs
- Add 404.md and tutorials/index.md

---------

Co-authored-by: forcetrainer <bryan@inagaki.us>
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-07 14:42:15 +08:00
Davor Racic 51aa3dda2f
fix: brainstorming (#1251)
* fix(brainstorming): extend ideation phase with 100+ idea goal

Add emphasis on quantity-first approach to unlock better quality ideas.
Introduce energy checkpoints, multiple continuation options, and clearer
success metrics to keep users in generative exploration mode longer.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* fix(brainstorming): improve exploration menus and fix workflow paths

- Change menu options from numbers [1-4] to letters [K/T/A/B/C] for clearer navigation
- Fix workflow references from .yaml to .md across agents and patterns
- Add universal facilitation rules emphasizing 100+ idea quantity goal
- Update exploration menu with Keep/Try/Advanced/Break/Continue options

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* feat(brainstorming): implement research-backed procedural rigor

Phase 4 achievements:
- Added Anti-Bias Protocol (Every 10 ideas domain pivot)
- Added Chain-of-Thought requirements (Reasoning before generation)
- Implemented Simulated Temperature prompts for higher divergence
- Standardized Idea Format Template for quality control
- Fixed undefined Advanced Elicitation variables
- Synchronized documentation with new [K, T, A, P, C] pattern

* fix(brainstorming): align ideation goals and fix broken workflow paths

- Standardized quantity goals to 100+ ideas across all brainstorming steps
- Fixed broken .yaml references pointing to renamed .md workflow files
- Aligned documentation summaries with mandatory IDEA FORMAT TEMPLATE
- Cleaned up misplaced mindset/goal sections in core workflow file
- Fixed spelling and inconsistencies in facilitation rules

* Fix ambiguous variable names in brainstorming ideation step

* fix(brainstorming): enforce quality growth alongside quantity

* fix: correct dependency format and add missing frontmatter variable

---------

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-07 09:09:03 +08:00
Jonah Schulte 1ddf2afcea feat: enhance sprint scripts with smart path resolution and conditional batching
- Add auto-detection of project root and story directories
- Enable scripts to work from any working directory
- Add explicit path override options via CLI arguments
- Improve error messages with suggested paths when files not found
- Update smart batching to show options only when time_saved > 0
- Reduce decision fatigue by skipping batching menu when no benefit
2026-01-06 08:21:44 -05:00
Jonah Schulte 4ea18e97fb Merge remote-tracking branch 'upstream/main'
# Conflicts:
#	src/modules/bmm/workflows/4-implementation/create-story/instructions.xml
2026-01-05 23:52:36 -05:00
Brian Madison 35ae4fd024 quadrivariate module workflow 2026-01-03 17:12:00 +08:00
Brian Madison f31659765e trimodal viarate workflow creation 2026-01-03 17:12:00 +08:00
Jonah Schulte 343b4ef425 Merge origin/main: sync epic-specific tracking files with backwards compatibility
Resolved conflict in autonomous-epic/workflow.yaml by:
- Accepting origin/main's cleaner naming: .autonomous-epic-{epic_num}-progress.yaml
- Adding backwards compatibility to check both new and legacy formats
- Updated all progress file references to use dynamic {{progress_file_path}}

Changes:
- workflow.yaml: Use new naming convention
- instructions.xml: Check for both formats (new + legacy) on resume
- README.md: Document backwards compatibility

This ensures no in-progress epics are missed when upgrading between versions.
2026-01-02 20:20:35 -05:00
Alex Verkhovsky 05ddc2d29b
fix(dev): allow full project-context usage with conflict precedence (#1220) 2026-01-03 09:14:09 +08:00
Jonah Schulte 73b8190e7b feat(validation): Add comprehensive story validation system with Haiku agents
VALIDATION WORKFLOWS (6 total):
- validate-story: Quick task checkbox validation
- validate-story-deep: Deep code verification with Haiku agent
- validate-all-stories: Batch quick validation
- validate-all-stories-deep: Comprehensive platform audit
- validate-epic-status: Per-epic validation
- validate-all-epics: All epics validation

VALIDATION SCRIPTS (4 total):
- sprint-status-updater.py: Compare story files vs sprint-status.yaml
- task-verification-engine.py: Python-based task verification
- llm-task-verifier.py: LLM-powered verification (alternative)
- add-status-fields.py: Add Status field to stories

HAIKU AGENT APPROACH:
- One agent per story (not per task - avoids 99% overhead)
- Agent reads actual code with Glob/Read tools
- Verifies stubs vs real implementation
- Checks multi-tenant, error handling, tests
- Evidence-based verification (line numbers, code snippets)

COST OPTIMIZATION:
- Haiku: $0.15/story vs Sonnet: $1.80/story (92% savings)
- Full platform: $76 vs $920 (saves $844)
- Batching: 5 concurrent agents (prevents overload)

CAPABILITIES:
- False positive detection (checked but code missing)
- False negative detection (unchecked but code exists)
- Code quality review (TODOs, stubs, missing features)
- Status recommendation (done/review/in-progress)
- Automated status updates

DOCUMENTATION:
- HOW-TO-VALIDATE-SPRINT-STATUS.md
- SPRINT-STATUS-VALIDATION-COMPLETE.md
- Slash command docs in .claude-commands/

USE CASES:
- Weekly: Quick validation (free, 5 sec)
- Pre-done: Deep story check ($0.15, 2-5 min)
- Pre-launch: Full audit ($76, 4-6h)
- Quality sweep: Phase 3 comprehensive validation

Enables bulletproof production confidence for any BMAD project.
2026-01-02 19:20:11 -05:00
Jonah Schulte 04ad0b5019 fix: use epic-specific tracking files for parallel epic processing
- Change tracking file from `.autonomous-epic-progress.yaml` to
  `.autonomous-epic-progress-epic-{{epic_num}}.yaml`
- Prevents race conditions when multiple epics run in parallel
- Each epic now maintains isolated tracking state
- Updates: README.md, instructions.xml (4 locations), workflow.yaml

Resolves issue where parallel epic processing would stomp on
shared tracking file causing data loss and synchronization issues
2026-01-01 14:15:18 -05:00
Brian Madison c748f0f6cc paths for workflow and sprint tatus files fixed 2026-01-01 21:20:14 +08:00
Andaman Lekawat 4142972b6a
fix: standardize variable naming from {project_root} to {project-root} (#1217)
Fixed inconsistent variable naming in workflow instruction files across
CIS, BMGD, and BMM modules. The standard variable format uses hyphens
({project-root}) not underscores ({project_root}).

Affected files:
- CIS: problem-solving, innovation-strategy, design-thinking, storytelling
- BMGD: brainstorm-game, narrative, create-story checklist
- BMM: excalidraw diagrams, create-story checklist

Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: Brian <bmadcode@gmail.com>
2026-01-01 21:14:21 +08:00
Murat K Ozcan cd45d22eb6
docs: chose your tea engagement (#1228)
* docs: chose your tea engagement

* docs: addressed PR comments

* docs: made refiements to the mermaid diagram

* docs: wired in test architect discoverability nudges

---------

Co-authored-by: Brian <bmadcode@gmail.com>
2026-01-01 19:06:55 +08:00
Jonah Schulte eecff22f91 feat: add anti-skip safeguards and verification to implementation workflows
- Add YOLO mode clarification: auto-approve prompts only, NOT skip steps
- Add mandatory story creation verification (file exists, 4kb+ size)
- Add quality requirements for create-story output
- Add sprint-status tracking updates
- Harden autonomous-epic, create-story, and story-pipeline workflows
- Ensure stories contain required sections (Tasks, Acceptance Criteria, Dev Notes)
2026-01-01 02:52:48 -05:00
Jonah Schulte 387c42178e Merge upstream/main: sync with 6.0.0-alpha.22 release 2026-01-01 00:31:12 -05:00
Nick Pirocanac a297235862
fix: *code-review is picking up non-application files (#1232)
Co-authored-by: Nick Pirocanac <nick.pirocanac@rtktickets.com>
2026-01-01 13:22:51 +08:00
Brian Madison d8b13bdb2e agents all indicate hasSidecar true or false, validation requires it, agent builder and validator and editor use the field. Added a better brownfield doc 2025-12-31 21:30:19 +08:00
Brian Madison 9f53d896b7 agent-workflow create edit validate consolidation 2025-12-31 02:58:03 +08:00
Brian Madison b46409e71d agent create workflow overhaul to use data files efficiently. updated and created separate user guides for the create agent workflow along with general concept docs of what an agent and workflow are in regards to0 bmad generally. 2025-12-30 22:44:38 +08:00
Brian Madison 8cffd09fb7 agent build intel complete 2025-12-30 17:46:29 +08:00
Brian Madison 2b89ee1302 agent build data optimized 2025-12-30 14:19:00 +08:00
Brian Madison b72c810a1f bmb agent knowledge streamline in progress 2025-12-30 12:34:54 +08:00
Brian Madison 484990de50 all sharded progressive workflows integrate language choice deeply with each step biased towards configured language. Tested with Spanish and Pirate Speak, worked really well. 2025-12-29 19:35:20 +08:00
Jonah Schulte 0ff7099af7 feat: add smart batching to super-dev-pipeline for repetitive work
Add intelligent task grouping that automatically detects and batches
similar low-risk tasks while maintaining full validation discipline.

KEY INNOVATION:
Smart batching is NOT vibe coding - it's systematic pattern detection
with batch validation and automatic fallback to individual execution.

PROBLEM SOLVED:
- One-task-at-a-time is too slow for repetitive work
- 100 package installations × 2min = 200 minutes (unnecessarily slow)
- Pattern: Add package → install → build is repeated 100 times identically

SMART BATCHING SOLUTION:
- Step 2: Detect batchable patterns in pre-gap analysis
- Step 3: Execute similar tasks together, validate as batch
- Fallback: If batch fails, revert to one-at-a-time for that batch
- Safety: High-risk tasks NEVER batched

BATCHABLE PATTERNS (low risk):
- Package installations (validated by build)
- Module registrations (validated by TypeScript)
- Code deletions (validated by tests)
- Import updates (validated by build)

NON-BATCHABLE (individual execution):
- Business logic (varies per case)
- Security code (high risk)
- Data migrations (irreversible)
- Novel patterns (unproven)

TIME SAVINGS:
- Example: 100-task story with 80 batchable + 20 individual
- Without batching: 100 × 2min = 200 minutes
- With batching: 5 batches × 10min + 20 × 2min = 90 minutes
- Savings: 110 minutes (55% faster!)

FEATURES ADDED:
- Pattern detection in step-02-pre-gap-analysis.md
- Batch execution in step-03-implement.md
- Batching configuration in workflow.yaml
- Smart batching documentation in workflow.md and README.md

SAFETY MECHANISMS:
- Conservative pattern detection (default to individual)
- Explicit validation strategy per batch
- Automatic fallback if batch fails
- High-risk tasks never batched
- All quality gates still enforced

VERSION:
- super-dev-pipeline: 1.0.0 → 1.1.0 (smart batching added)

INSTALLATIONS:
- craftedcall: Updated with smart batching
- usmax-nda: Updated with smart batching

This solves the velocity problem while maintaining anti-vibe-coding discipline!
2025-12-28 23:49:53 -05:00
Brian Madison f0520c39d9 fix wording in create-epics-and-stories doc discovery continuation 2025-12-29 09:25:56 +08:00
Brian Madison ff0517f4d0 workflow-status phase paths corrected with current reality 2025-12-29 09:25:56 +08:00
Jonah Schulte efce6a9d85 fix: update autonomous-epic description to reference super-dev-pipeline 2025-12-28 12:31:46 -05:00
Jonah Schulte 7feab0e233 docs: update all documentation for super-dev-pipeline
Updated documentation to accurately reflect current state:

KEY CHANGES:
1. super-dev-pipeline is now the production workflow (not story-pipeline)
2. Corrected token estimates (40-60K vs 65% claim for story-pipeline)
3. Updated autonomous-epic v2.0 description
4. Clarified workflow purposes and use cases

DOCUMENTATION UPDATED:
- INTEGRATION-NOTES.md
  * Updated to focus on super-dev-pipeline as production solution
  * Explained evolution: story-pipeline → brownfield problem → super-dev-pipeline
  * Workflow comparison table shows all three options
  * Task-based completion explained
  * Anti-vibe-coding enforcement detailed

- PR-STORY-PIPELINE.md
  * Renamed focus to super-dev-pipeline (the actual deliverable)
  * Updated all metrics to 50% savings (not 65%)
  * Added problem statement about brownfield
  * Explained adaptive implementation

- autonomous-epic/README.md
  * Updated to reference super-dev-pipeline
  * Corrected token estimates (40-60K per story)
  * Updated time estimates (2-5 hrs small, 5-10 hrs medium, 10-20 hrs large)
  * Example session shows super-dev-pipeline steps

KEY POINTS CLARIFIED:
- super-dev-pipeline: Production (greenfield + brownfield, 40-60K tokens)
- story-pipeline: Greenfield only (25-30K tokens, 65% savings)
- super-dev-story: Legacy (100-150K tokens, allows vibe coding)

- autonomous-epic v2.0 uses super-dev-pipeline by default
- Task-based completion (not status-based)
- Anti-vibe-coding enforcement via step-file architecture
- Works for real-world scenarios (most work is brownfield!)

All documentation now consistent and accurate.
2025-12-28 12:23:55 -05:00
Jonah Schulte d4b8246bd9 feat: add super-dev-pipeline for brownfield + anti-vibe-coding enforcement
Create new super-dev-pipeline workflow that solves critical issues:
1. Works for BOTH greenfield AND brownfield development
2. Uses step-file architecture to prevent vibe coding at high token counts
3. Adaptive implementation (TDD for new, refactor for existing)
4. All quality gates with disciplined execution

PROBLEM SOLVED:
- story-pipeline assumes greenfield (ATDD doesn't work for brownfield)
- super-dev-story allows vibe coding when tokens >100K
- Need workflow that handles real-world scenarios (most work is brownfield!)

NEW WORKFLOW: super-dev-pipeline
- 7 step files with mandatory sequences
- Detects greenfield vs brownfield automatically
- Pre-gap analysis validates against existing code
- Adaptive implementation methodology
- Post-validation catches false positives
- Code review finds 3-10 issues
- Anti-vibe-coding enforcement

STEPS:
1. Init - Load story, detect development mode
2. Pre-gap - Validate tasks against codebase (critical for brownfield!)
3. Implement - Adaptive (TDD for new, refactor for existing)
4. Post-validate - Verify completion vs reality
5. Code review - Adversarial (3-10 issues)
6. Complete - Commit + push
7. Summary - Audit trail

BENEFITS:
- Works for greenfield AND brownfield
- 40-60K tokens per story (vs 100-150K for orchestration)
- Prevents vibe coding even at 200K+ tokens
- All super-dev quality gates preserved
- Step-file discipline from story-pipeline

AUTONOMOUS-EPIC UPDATED:
- Now uses super-dev-pipeline instead of story-pipeline
- Handles create-story separately for backlog stories
- More realistic token estimates (40-60K vs 25-30K)
- Updated time estimates

FILES ADDED:
- src/modules/bmm/workflows/4-implementation/super-dev-pipeline/* (14 files)
- .claude-commands/super-dev-pipeline.md
- ~/.codex/prompts/bmad-super-dev-pipeline.md

FILES MODIFIED:
- autonomous-epic/instructions.xml (use super-dev-pipeline)
- autonomous-epic/workflow.yaml (updated settings)

INSTALLATIONS:
- craftedcall: super-dev-pipeline + updated autonomous-epic
- usmax-nda: super-dev-pipeline + updated autonomous-epic

This is the production-ready solution for autonomous epic processing!
2025-12-28 12:09:06 -05:00
Brian Madison e0090e5602 more docs migrations 2025-12-28 21:13:44 +08:00
Brian Madison 8d679b177b advanced elicitation moved to workflows folder. core module extensive documentation added. 2025-12-28 19:44:55 +08:00
Jonah Schulte a14ab30b40 docs: add comprehensive PR description for story-pipeline integration 2025-12-27 23:01:05 -05:00
Jonah Schulte ee68b027fc Merge remote-tracking branch 'upstream/main' into feature/autonomous-epic-processing 2025-12-27 21:17:07 -05:00
Jonah Schulte c5afd8906f feat: integrate story-pipeline with autonomous-epic for 65% token savings
This commit integrates the story-pipeline workflow (PR #1194) with autonomous-epic
and adds post-implementation validation to catch false positives.

MAJOR CHANGES:
1. Merged story-pipeline workflow from upstream PR #1194 (20 files, 4,564 additions)
2. Added post-validation step (step-05b) between implementation and code review
3. Integrated story-pipeline as the default workflow for autonomous-epic
4. Replaced super-dev-story with story-pipeline in batch mode

NEW FEATURES:
- Post-implementation validation (step-05b-post-validation.md)
  * Verifies completed tasks against actual codebase
  * Catches false positives (tasks marked done but not implemented)
  * Re-runs implementation if gaps found
  * Uses Glob/Grep/Read to verify file existence and completeness

BENEFITS:
- Token efficiency: 25-30K per story (vs 100-150K with super-dev-story)
- 65% token savings per story, 75% savings per epic
- All super-dev-story quality gates PLUS post-validation
- Checkpoint/resume capability for long stories
- Batch mode for fully unattended execution

ARCHITECTURE:
- autonomous-epic orchestrates epic-level processing
- story-pipeline handles single-story lifecycle (9 steps including 5b)
- Role-switching in same session (vs separate workflow calls)
- Single session per story = massive token savings

TIME ESTIMATES (updated):
- Small epic (3-5 stories): 2-4 hours (was 3-6 hours)
- Medium epic (6-10 stories): 4-8 hours (was 6-12 hours)
- Large epic (11+ stories): 8-16 hours (was 12-24 hours)

FILES MODIFIED:
- autonomous-epic/instructions.xml (integrated story-pipeline)
- autonomous-epic/workflow.yaml (updated settings, removed super-dev choice)
- story-pipeline/* (20 new files from PR #1194)
- story-pipeline/steps/step-05-implement.md (points to step-05b)
- story-pipeline/workflow.md (added step 5b to map and gates)
- story-pipeline/workflow.yaml (added step 5b definition)
- story-pipeline/templates/*.yaml → *.yaml.template (renamed to avoid linting)

FILES ADDED:
- story-pipeline/steps/step-05b-post-validation.md (NEW)
- INTEGRATION-NOTES.md (comprehensive documentation)

TESTING:
- PR #1194 validated with real User Invitation system story
- 17 files, 2,800+ lines generated successfully
- Context exhaustion recovery tested

See INTEGRATION-NOTES.md for full details.

Co-authored-by: tjetzinger (story-pipeline PR #1194)
2025-12-27 12:53:35 -05:00
Brian Madison ea421adbf9 create and edit workflow minor fixes 2025-12-27 21:35:39 +08:00
Brian Madison 2a8a4388a9 v4 detection cleanup 2025-12-27 20:31:12 +08:00
Brian Madison d4a94df29a doc cleanup round 1 2025-12-27 18:29:35 +08:00
Jonah Schulte 949a8c3236 feat: add planning-time gap analysis and parallel execution enhancements
- Add create-story-with-gap-analysis workflow for verified codebase scanning at planning time
- Fix autonomous-epic to support parallel execution (no auto-branch creation)
- Fix autonomous-epic and super-dev-story to auto-accept gap analysis in autonomous mode
- Fix push-all to support targeted file commits (safe for parallel agents)
- Update dev-story and super-dev-story to pass auto_accept_gap_analysis parameter
- Add explicit autonomous mode instructions to workflows

Breaking changes: None - all enhancements are backward compatible
2025-12-27 02:29:46 -05:00
Brian Madison 949cf64d3b workflow status, init and phase 4 items aligned with planning_artifacts and implementation_artifacts for discovery and output 2025-12-27 10:59:44 +08:00
Brian Madison aba9d11c88 quick flow updates to aid discovery and implementation 2025-12-27 10:40:23 +08:00
Alex Verkhovsky 208f27dcdb
refactor: convert create-tech-spec to sharded workflow with orient-first pattern (#1185)
* refactor: convert create-tech-spec to sharded workflow with orient-first pattern

* docs: reposition deep exploration isolation guideline within universal code investigation section

* docs: Update terminology from 'Requirement Delta' to 'Problem Statement' in step-02-investigate.md context.

* Update src/modules/bmm/workflows/bmad-quick-flow/create-tech-spec/steps/step-04-review.md

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update src/modules/bmm/workflows/bmad-quick-flow/create-tech-spec/steps/step-01-understand.md

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-12-27 09:43:59 +08:00
Jonah Schulte 5b3f3479c8 refactor: use invoke-workflow for orchestration
- super-dev-story now invokes dev-story, code-review, push-all
- autonomous-epic now invokes create-story, super-dev/dev-story
- Eliminated code duplication (690→283, 419→208 lines)
- Clean sequential step numbering (1,2,3,4,5)
- ~1,200 lines removed through proper orchestration

Makes workflows maintainable and follows DRY principles
2025-12-26 20:26:30 -05:00
Jonah Schulte 15af99990a feat: integrate push-all into autonomous-epic workflow
- Each story now commits and pushes after completion
- Auto-generated commit messages per story
- Safety checks run before each push
- Continues on push failures (doesn't halt entire epic)
- All changes backed up to remote incrementally

Ensures epic progress is saved to remote as work completes
2025-12-26 18:33:16 -05:00
Jonah Schulte 356dd48f49 feat: add push-all workflow as standalone command
- New /push-all workflow for commit and push with safety
- Can be used anywhere (not just in super-dev-story)
- Comprehensive safety checks (secrets, API keys, large files)
- Smart commit message generation (conventional commits)
- Handles push failures (rebase, upstream, auth)
- Registered in Dev and SM agent menus
- Also integrated into super-dev-story Step 11

Applies to both BMM and BMGD modules
2025-12-26 18:32:00 -05:00
Jonah Schulte 57968001a6 feat: add push-all step to super-dev-story
- Add Step 11: Commit and push all changes after validation
- Safety checks: secrets, API keys, large files, build artifacts
- API key validation (blocks real keys, allows placeholders)
- Generates conventional commit messages
- Requests user confirmation before pushing
- Handles push failures (rebase, upstream branch)
- Warns when pushing to main/master

Completes super-dev workflow with automated git operations
2025-12-26 18:29:27 -05:00
Jonah Schulte eb04864efa feat: register new workflows in agent menus
- Add super-dev-story to dev agents (trigger: SDS)
- Add gap-analysis to dev + scrum master agents (trigger: GA)
- Add autonomous-epic to dev + scrum master agents (trigger: AEP)
- All workflows now accessible via slash commands

Available commands:
- /super-dev-story or /SDS
- /gap-analysis or /GA
- /autonomous-epic or /AEP
2025-12-26 14:42:00 -05:00
Jonah Schulte 9e7b097bb0 feat: add autonomous-epic workflow for full epic automation
- New /autonomous-epic command processes entire epic
- Just-in-time planning: creates each story before developing
- Auto-develops using super-dev-story or dev-story
- Progress tracking with resume capability
- Git commits after each story completion
- Error handling with retry logic and continue-on-failure
- Epic completion report with statistics
- Estimated: 100K-150K tokens per story

Use cases:
- Overnight epic completion
- CI/CD integration
- Batch sprint processing

Applies to both BMM and BMGD modules
2025-12-26 14:36:38 -05:00