2.4 KiB
2.4 KiB
BMAD Automation Scripts
This directory contains optional automation utilities for running BMAD workflows via external agent CLIs.
Scripts in this folder do not modify core BMAD roles, prompts, or methodology.
They are reference implementations and power-user tools.
yolo_cursor.py
Runs a full end-to-end BMAD development workflow for one or more stories using the Cursor CLI (cursor-agent).
The workflow includes 12 explicit steps:
- SM creates the story
- SM validates the story draft
- SM optionally applies recommendations (logged even if skipped)
- TEA generates ATDD
- Dev implements the story
- Dev verifies the ATDD checklist
- Dev runs tests and fixes issues (pre-review)
- Dev performs first auto-fixing code review
- Dev performs second auto-fixing code review
- Dev runs tests and fixes issues (post-review)
- SM updates development status
- Dev provides final handoff notes
All steps are logged to Markdown files.
Requirements
- Python 3.9+
- Cursor installed with
cursor-agentavailable onPATH pyyaml
pip install pyyaml
Note:
--list-backlogonly reads YAML and does not require Cursor. All workflow execution commands requirecursor-agent.
Usage
# Run first backlog story
python scripts/yolo_cursor.py
# List backlog stories
python scripts/yolo_cursor.py --list-backlog
# Run a specific story
python scripts/yolo_cursor.py --story 2-4-user-login-frontend
# Interactive selection
python scripts/yolo_cursor.py --pick
# Batch run multiple stories
python scripts/yolo_cursor.py --batch 2-4-user-login-frontend,2-5-auth-context
Logs
Logs are written to:
docs/sprint-artifacts/yolo-logs/<story-id>/
Each step produces a Markdown file, plus a RESULT.md summary.
Reliability Features
- Step timing is recorded in every step log.
- Heartbeat output is printed every minute while a step is running.
- Global step timeout (10 minutes by default) prevents infinite hangs.
- On failure/timeout/Ctrl+C, an additional
*_ERROR.mdlog is written for the step. - Resume support: if step logs already exist for a story, the script resumes after the last successful step.
Scope & Notes
- Cursor CLI only (for now)
- Sequential execution (no parallelism)
- No changes to BMAD core prompts or roles
- Designed as a reference pattern for future automation scripts