Commit Graph

1300 Commits

Author SHA1 Message Date
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
lkrysik 8699d7d968
Mixed line endings (Windows CRLF problem) (#1222)
Co-authored-by: lukasz.krysik <lukasz.krysik@effem.com>
2025-12-31 14:44:53 +08:00
Brian Madison 8b92e5ee59 Release 6.0.0-alpha.22
Major features:
- Unified Agent Workflow: Create/Edit/Validate consolidated into single workflow
- Agent Knowledge System: Comprehensive data file architecture for agent building
- Deep Language Integration: All sharded workflows support language choice
- Core Module Documentation: New docs for brainstorming, party mode, advanced elicitation
- BMAD Core Concepts: New documentation structure for agents, workflows, modules
- Create-Tech-Spec Sharded: Converted to sharded format with orient-first pattern

466 files changed, 12,983 insertions(+), 12,047 deletions(-)
2025-12-31 03:06:16 +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
Jonah Schulte 1541274e57 fix: update package scope to @jonahschulte for npm publishing 2025-12-29 10:48:37 -05: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
Brian Madison b8836ced24 another inquirer default addition missed, maybe this will fix windows issues also 2025-12-29 15:56:00 +08:00
Brian Madison c7fcf16eae fix install for alpha instruction in the readme 2025-12-29 15:45:38 +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 529d4a8c95 doc fixes 2025-12-29 09:36:54 +08: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
Luke Finch b509fb9a1e
bump version to 6.0.0-alpha.21 and enhance stdin handling for Windows in CLI (#1200) 2025-12-28 22:09:22 +08: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 2f539ee4d0
Merge pull request #1 from jschulte/feature/autonomous-epic-processing
feat: integrate story-pipeline with autonomous-epic for 65% token savings
2025-12-27 23:02:56 -05:00
Jonah Schulte a14ab30b40 docs: add comprehensive PR description for story-pipeline integration 2025-12-27 23:01:05 -05:00
Jonah Schulte 9d69f378fe feat: prepare package for npm distribution as @jschulte/bmad-method
- Renamed package to @jschulte/bmad-method (scoped package)
- Updated version to 6.0.0-alpha.22
- Updated repository URL to jschulte/BMAD-METHOD
- Added .npmignore to exclude dev files
- Enhanced description to mention story-pipeline

This allows users to install via:
  npx @jschulte/bmad-method install
2025-12-27 22:57:45 -05:00
Jonah Schulte 747ba512aa feat: add BMAD Guide skill for automatic Claude Code installation
Integrates the bmad-guide skill into BMAD installation process to help
Claude stay on track with BMAD methodology.

Features:
- Phase navigation and workflow selection guidance
- Project level detection (0-4) for routing to correct workflows
- Common mistakes prevention (skipping phases, manual coding)
- Emergency recovery procedures when off track
- Quick reference tables and troubleshooting

Implementation:
- Created resources/skills/ directory with bmad-guide.md (428 lines)
- Added installBmadGuideSkill() to ClaudeCodeSetup class
- Skill auto-installs to ~/.claude/skills/ during setup
- Available globally across all BMAD projects
- Updated installation documentation

Usage:
- Automatic: Skill is installed when running npx bmad-method install
- Manual access: /bmad-guide command in any project
- Optional: Add BMAD Method config to ~/.claude/CLAUDE.md for automatic invocation

Benefits:
- Prevents Claude from jumping straight to coding without workflows
- Ensures proper phase progression
- Guides workflow selection based on project level
- Self-corrects when going off track
2025-12-27 22:06:37 -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
Jonah Schulte cff53fb3d8 feat: add super-dev-story workflow for enhanced quality
- New /super-dev-story command for comprehensive validation
- Includes all dev-story steps PLUS:
  - Step 9.5: Post-dev gap analysis (verify completion)
  - Step 9.6: Automated code review (catch issues)
- Auto-fixes issues and loops back if gaps/problems found
- Max iteration safety (default 3 cycles)
- Opt-in via separate command (not forced)
- ~30% more tokens but prevents review rework cycles

Applies to both BMM and BMGD modules
2025-12-26 14:21:18 -05:00
Jonah Schulte dd25e12f96 docs: document future enhancements (super-dev, auto-epic)
- Super-dev mode concept (post-dev validation + auto review)
- Autonomous epic processing vision
- Future roadmap for quality automation
2025-12-26 14:03:42 -05:00
Jonah Schulte 5f183d29d5 docs: add gap analysis user guide and migration docs
- Complete gap analysis feature documentation
- Migration guide for existing users
- Usage examples for all planning styles
- Troubleshooting and FAQ sections
2025-12-26 14:03:09 -05:00
Jonah Schulte b26f822979 feat: add standalone gap-analysis workflow
- Audit completed stories to verify claims match code
- Validate any story without starting development
- Detect false positives (marked done but not implemented)
- Batch mode to audit multiple stories
- Generate audit reports for team review

Applies to both BMM and BMGD modules
2025-12-26 14:02:41 -05:00
Jonah Schulte db05fb7ae7 feat: add mandatory gap analysis to dev-story workflow
- Add Step 1.5 gap analysis before development starts
- Scan codebase to validate draft tasks against reality
- Propose task refinements (add/modify/remove)
- Six user options: approve, auto-accept, reject, edit, skip, review
- Update story file with Gap Analysis section
- Prevents duplicate implementations in batch planning

Applies to both BMM and BMGD modules
2025-12-26 14:02:13 -05:00
Jonah Schulte 62eb2626d9 refactor: shift create-story to requirements-focused planning
- Remove codebase scanning from planning phase
- Mark generated tasks as DRAFT
- Add notation that tasks will be validated at dev-time
- Focus on requirements analysis and architecture context
- Simplify workflow by deferring gap analysis to execution

Applies to both BMM and BMGD modules
2025-12-26 14:01:42 -05:00
Brian Madison c15ad174ed chore: bump version to 6.0.0-alpha.21
Major improvements:
- All agents now use consistent 2-letter menu codes (compound triggers)
- Phase 1-3 workflows updated to use planning_artifacts folder
- Windows installer fixed with inquirer multiselection resolution
- Chat and party mode auto-injected into all agents
- All agents pass comprehensive validation checks
- Restored agent files from Docusaurus merge
2025-12-26 20:55:10 +08:00
Brian Madison 24cedea690 phase 3 input disco and output updated 2025-12-26 20:44:45 +08:00