A
devbranch is under active development that more closely mirrors the official BMad Method v6 structure — with properagents/,templates/,checklists/, andworkflow/directories aligned to upstream naming. It also includes 11 additional OpenClaw-specific execution agents underagents-openclaw/.👉 Check out the
devbranch for the latest.This
masterbranch is the original v1 release and is kept for backward compatibility.
A full implementation of the BMad Method using OpenClaw's sessions_spawn capability. Ship production-quality software with a 12-agent AI development team — all orchestrated from a single chat session.
The BMad Method is a structured approach to AI-driven software development. It uses specialized agents (product owner, architect, developer, reviewer, etc.) to take a product idea from brief → PRD → architecture → stories → implementation → review.
This repo adapts BMad to run natively on OpenClaw, using sub-agent spawning instead of CLI tools. The result: lower token cost, crash recovery, and a single orchestrator that stays responsive while agents work in parallel.
┌─────────────────────────────────────────────────────────────┐
│ Main Session (Orchestrator) │
│ • Always responsive to user │
│ • Spawns sub-agents for each workflow step │
│ • Handles HALT conditions and retries │
│ • Tracks sprint status across all agents │
└─────────────────────────────────────────────────────────────┘
│
sessions_spawn (isolated)
│
┌──────────┬──────────┬──────────┬──────────┬──────────┐
▼ ▼ ▼ ▼ ▼ ▼
product business architect ux-design scrum readiness
owner analyst er master check
│ │ │ │ │ │
▼ ▼ ▼ ▼ ▼ ▼
Brief PRD Architecture UX Spec Epics GO/NO-GO
Stories
│
└──────────────────────────────────────────────────────────┐
│
┌──────────┬──────────┬──────────┬──────────┐ │
▼ ▼ ▼ ▼ ▼ │
create dev-story code ux-review qa-tester retrospective
story review
│ │ │ │ │ │
▼ ▼ ▼ ▼ ▼ ▼
Story.md Code + Approve/ UX Pass/ QA Pass/ Sprint
Tests Reject Fail Fail Learnings
| Agent | Prompt | Output |
|---|---|---|
| Product Owner | prompts/product-owner.md |
Product Brief |
| Business Analyst | prompts/business-analyst.md |
PRD (requirements, user journeys, FRs) |
| Architect | prompts/architect.md |
Architecture doc (stack, data model, APIs) |
| UX Designer | prompts/ux-designer.md |
UX Design Spec (screens, flows, components) |
| Scrum Master | prompts/scrum-master.md |
Epics & Stories with acceptance criteria |
| Readiness Check | prompts/readiness-check.md |
GO/NO-GO decision for implementation |
| Agent | Prompt | Output |
|---|---|---|
| Create Story | prompts/create-story.md |
Story file with tasks, AC, dependencies |
| Dev Story | prompts/dev-story.md |
Implementation + tests (red-green-refactor) |
| Code Review | prompts/code-review.md |
Adversarial review (3-10 issues minimum) |
| UX Review | prompts/ux-review.md |
UX compliance check |
| QA Tester | prompts/qa-tester.md |
Test execution and validation |
| Retrospective | prompts/retrospective.md |
Sprint retrospective and learnings |
- OpenClaw installed and running
- An LLM API key configured (Claude recommended)
cd ~/.openclaw/workspace
git clone https://github.com/OpenClawRocks/bmad-openclaw.gitCopy the example config and customize for your project:
cp bmad-openclaw/config/example.yaml bmad-openclaw/config/my-project.yamlEdit my-project.yaml:
project:
name: "My SaaS App"
description: "Brief description of what you're building"
paths:
root: "/home/you/.openclaw/workspace/my-project"
planning: "/home/you/.openclaw/workspace/my-project/_bmad-output/planning-artifacts"
implementation: "/home/you/.openclaw/workspace/my-project/_bmad-output/implementation-artifacts"
stack:
frontend: "Next.js, Tailwind, ShadCN"
backend: "Supabase"
language: "TypeScript"Add to your workspace AGENTS.md or SOUL.md:
## BMad Orchestrator
When asked to run BMad workflows, use the prompts in `bmad-openclaw/prompts/`.
Spawn each agent as an isolated sub-agent with `sessions_spawn`.
Workflow order:
1. product-owner → Brief
2. business-analyst → PRD
3. architect → Architecture
4. ux-designer → UX Spec
5. scrum-master → Epics & Stories
6. readiness-check → GO/NO-GO
7. For each story: create-story → dev-story → code-review → [ux-review] → [qa-tester]
8. retrospective → Sprint learningsFrom your OpenClaw chat:
Run the BMad product-owner workflow for my-project.
The idea: [describe your product]
OpenClaw spawns the product-owner agent, which produces a brief. Then:
Run the BMad business-analyst workflow. Use the brief we just created.
Continue through the pipeline. Each agent reads previous artifacts and produces the next one.
Run BMad product-owner for my-project.
Idea: A SaaS that lets agencies generate branded presentations from templates.
Spawn BMad architect. Read the PRD at _bmad-output/planning-artifacts/prd.md
and produce an architecture document.
Spawn BMad dev-story for story 2-1-workspace-management.
Follow red-green-refactor. Run tests after each task.
Spawn BMad code-review for story 2-1.
Be adversarial — find at least 3 issues.
Each BMad agent runs as an isolated OpenClaw session via sessions_spawn:
sessions_spawn({
task: `You are executing the architect workflow for My Project.
## Context
- PROJECT_ROOT: /path/to/project
- Read the PRD at: _bmad-output/planning-artifacts/prd.md
## Instructions
${architectPrompt}
Begin now. Follow all steps. Report completion or HALT.`,
label: "bmad-architect"
})The sub-agent works autonomously, reads/writes files, and announces results back to the main session.
When an agent can't proceed, it returns:
HALT: Missing database schema | Context: Need schema before implementing data layer
The orchestrator (main session) can:
- Resolve and respawn — fix the issue, re-run the agent
- Ask the user — for ambiguous decisions
- Mark blocked — log it, move to next story
All state lives in files (not in memory):
- Planning artifacts in
_bmad-output/planning-artifacts/ - Story files in
_bmad-output/implementation-artifacts/ - Sprint status in
sprint-status.yaml
This means agents can crash and be respawned without losing context.
| Feature | Original BMad | OpenClaw BMad |
|---|---|---|
| Orchestrator | BMad Master (menu-driven) | Main session (conversational) |
| Agent execution | Claude Code CLI in PTY | sessions_spawn (isolated) |
| Token cost | 3x (main → CLI → main) | 1x (sub-agent only) |
| Crash recovery | Lost context | Orchestrator respawns |
| Interactive prompts | ask/wait in workflow | HALT → orchestrator decides |
| Parallel work | Sequential only | Multiple agents simultaneously |
| YOLO mode | Built-in flag | Not needed (agents are autonomous) |
- ✅ Red-green-refactor methodology
- ✅ Definition of Done checklists
- ✅ Adversarial code review (3-10 issues minimum)
- ✅ Sprint status tracking
- ✅ Given/When/Then acceptance criteria
- ✅ Task completion verification
MIT
- BMad Method by BMad Code
- OpenClaw — the AI agent platform