Skip to content

[Epic] Migrate VCS functionality to BMVCS module for v6 #661

@joyshmitz

Description

@joyshmitz

🎯 Goal

Migrate VCS-agnostic functionality from legacy PRs to new v6 modular architecture as BMVCS module.

📚 Background

🎁 What is BMVCS?

BMVCS (BMad Version Control Suite) - module that adapts BMAD to team's version control workflow:

  • ✅ Detects VCS type (Git, SVN, Perforce, no-VCS)
  • ✅ Adapts documentation to team's workflow (GitHub Flow, GitFlow, Trunk-Based, etc)
  • ✅ Optional module - install only if needed
  • ✅ Integrates with BMM agents (architect, pm, dev)

✅ Migration Status: COMPLETE

✅ Completed Work

📦 Module Contents (~2,700 lines total)

Structure:

src/modules/bmvcs/
├── agents/vcs-adapter.md           # VCS Adapter agent
├── tasks/                          # Core tasks
│   ├── discover-vcs.md
│   ├── create-vcs-adapted-doc.md
│   └── validate-vcs-config.md
├── templates/vcs-adaptations/      # 5 VCS templates
├── workflows/setup-vcs/            # Setup workflow
├── docs/                           # Complete documentation
├── examples/                       # Usage examples
├── _module-installer/              # Installation logic
└── README.md

Branch: feat/bmvcs-dev (local, ready for testing)

Commits:

  • 9571a2f - Module foundation structure
  • 2137a77 - VCS discovery tasks and installer
  • 8d342f3 - VCS workflow templates
  • bccfe9d - VCS-agnostic documentation
  • 29d4dc0 - VCS adaptation examples
  • 3f79f1f - VCS integration and BMM agent updates
  • fd16dab - Development approach analysis
  • 4d06ec7 - Fix markdown formatting

🚀 Next Steps

Phase 1: Testing (Current) ⏳

Following NEXT_SESSION.md priorities:

High Priority (Must Do)

  • Test VCS discovery flow with real Git repositories
  • Test VCS Adapter agent commands (*discover, *adapt-doc, etc)
  • Test adaptation templates
  • Test module installer
  • Validate documentation links and examples
  • Test BMM integration (optional dependency)

Medium Priority (Should Do)

  • Test setup-vcs workflow end-to-end
  • Test error handling and edge cases
  • Verify graceful degradation when BMVCS not installed

Phase 2: Submission 📤

  • Push feat/bmvcs-dev to fork/origin
  • Decide on PR strategy (single vs multiple PRs)
  • Create PR(s) to next branch
  • Address review feedback

📋 PR Strategy Options

Option A: Single PR (~2,700 lines)

Pros: Complete feature in one PR, easier to review context
Cons: Exceeds 800 line guideline (needs justification)

Option B: Split into 3 PRs

  1. Foundation + Core (~1,000 lines): Structure, tasks, agent
  2. Templates + Docs (~1,000 lines): Templates, documentation
  3. Examples + Integration (~700 lines): Examples, BMM integration

Pros: Follows CONTRIBUTING.md guidelines
Cons: More overhead, need sequential merging

Option C: Wait for maintainer feedback

Submit as single PR with explanation, let maintainers decide


🎯 Success Criteria

  • All testing tasks from NEXT_SESSION.md completed
  • Module installs and runs without errors
  • Core workflows functional (discovery, adaptation, validation)
  • Documentation complete and accurate
  • PR(s) created and submitted to next branch
  • Review feedback addressed
  • BMVCS module merged into v6

📝 Notes


🔗 Key Files

Testing Targets:

  • agents/vcs-adapter.md - Agent implementation
  • tasks/discover-vcs.md - Discovery logic
  • _module-installer/installer.js - Installation script
  • NEXT_SESSION.md - Detailed testing plan

Documentation:

  • docs/VCS_AGNOSTIC_PROPOSAL.md - Implementation spec
  • docs/DEVELOPMENT_APPROACH.md - Module creation analysis
  • examples/vcs-adaptation-examples.md - Usage examples

Last Updated: 2025-09-30
Current Phase: Testing
Status: Ready for local testing, then PR submission

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions