Bmalph
Unified AI Development Framework - BMAD phases with Ralph execution loop
Install / Use
/learn @LarsCowe/BmalphQuality Score
Category
Development & EngineeringSupported Platforms
README
bmalph
BMAD-METHOD planning + Ralph autonomous implementation, wired through platform-specific instructions, skills, and command indexes.
<p align="center"> <img src="docs/bmalph-diagram.png" alt="bmalph workflow diagram" width="800" /> </p>What is bmalph?
bmalph bundles and installs two AI development systems:
- BMAD-METHOD — Planning agents and workflows (Phases 1-3)
- Ralph — Autonomous implementation loop (Phase 4)
bmalph provides:
bmalph init— Install both systemsbmalph upgrade— Update to latest versionsbmalph doctor— Check installation healthbmalph implement— Transition from BMAD to Ralphbmalph run— Start Ralph loop with live dashboardbmalph check-updates— Check for upstream updatesbmalph status— Show project status and phasebmalph reset— Remove all bmalph files- ~~
bmalph watch~~ — (deprecated) Usebmalph runinstead
Supported Platforms
bmalph works with multiple AI coding assistants. Each platform gets BMAD planning (Phases 1-3). The Ralph autonomous loop (Phase 4) requires a CLI-based platform.
| Platform | ID | Tier | Instructions File | Commands |
| -------------- | ------------- | ------------------- | --------------------------------- | ------------------------------------- |
| Claude Code | claude-code | full | CLAUDE.md | .claude/commands/ directory |
| OpenAI Codex | codex | full | AGENTS.md | Codex Skills (.agents/skills/) |
| OpenCode | opencode | full | AGENTS.md | OpenCode Skills (.opencode/skills/) |
| Cursor | cursor | full (experimental) | .cursor/rules/bmad.mdc | _bmad/COMMANDS.md |
| Windsurf | windsurf | instructions-only | .windsurf/rules/bmad.md | _bmad/COMMANDS.md |
| GitHub Copilot | copilot | full (experimental) | .github/copilot-instructions.md | _bmad/COMMANDS.md |
| Aider | aider | instructions-only | CONVENTIONS.md | _bmad/COMMANDS.md |
Tiers:
- full — Phases 1-4. BMAD planning + Ralph autonomous implementation loop.
- instructions-only — Phases 1-3. BMAD planning only. Ralph is not available.
Prerequisites
- Node.js 20+
- Bash (WSL or Git Bash on Windows)
- A supported AI coding platform (see table above)
- For Ralph loop (Phase 4): Claude Code (
claude), Codex CLI (codex), OpenCode (opencode), Copilot CLI (copilot), or Cursor CLI (cursor-agent; olderagentinstalls are also supported)
Installation
npm install -g bmalph
Quick Start
cd my-project
bmalph init --name my-project
# To target a specific platform, add --platform (e.g. codex, cursor, windsurf)
# Without --platform, bmalph auto-detects strong project markers and
# prompts interactively when detection is ambiguous or missing
Workflow
Step 1: Initialize
cd my-project
bmalph init
Platform resolution: --platform flag > auto-detect from project markers > interactive prompt > default claude-code
Strong markers such as .cursor/, .claude/, .opencode/, .windsurf/, .github/copilot-instructions.md, and .aider.conf.yml are auto-detected directly. Root-only AGENTS.md and CLAUDE.md are treated as weak hints and may still trigger the interactive platform prompt.
This installs:
_bmad/— BMAD agents and workflows.ralph/— Ralph loop, libs, templates (drivers for claude-code, codex, opencode, copilot, and cursor)bmalph/— State management (config.json, stores selected platform)- Updates the platform's instructions file with BMAD workflow instructions (e.g.
CLAUDE.md,AGENTS.md,.cursor/rules/bmad.mdc) - Delivers BMAD commands using the platform's native mechanism (Claude Code:
.claude/commands/; Codex:.agents/skills/; OpenCode:.opencode/skills/; Cursor, Windsurf, Copilot, and Aider:_bmad/COMMANDS.md)
Migrating from standalone BMAD
If you already have BMAD installed (a _bmad/ directory), bmalph init works as a migration path:
_bmad/(framework files) will be replaced with the bmalph-managed version_bmad-output/(your planning artifacts: PRDs, architecture, stories) is not touched- If you've customized framework files inside
_bmad/, commit first so you can review changes withgit diff
Step 2: Plan with BMAD (Phases 1-3)
Work interactively with BMAD agents in your AI coding assistant.
- Claude Code — use
/bmalphto see your current phase and available commands. - OpenAI Codex — use Codex Skills such as
$analystand$create-prd. - Cursor — Read
_bmad/COMMANDS.mdand ask Cursor to run the BMAD master agent. - Windsurf, Copilot, Aider — use
_bmad/COMMANDS.mdas the command reference and ask the assistant to follow the named BMAD workflow.
| Phase | Agent | Commands | | ------------- | ---------------- | ------------------ | | 1 Analysis | Analyst | BP, MR, DR, TR, CB | | 2 Planning | PM / UX Designer | CP, VP, EP, CU | | 3 Solutioning | Architect / PM | CA, CE, IR |
Validation commands (validate-brief, validate-prd, validate-ux, validate-architecture, validate-epics-stories) run the same workflow in Validate mode. In Claude Code, invoke them as slash commands; on other platforms use the equivalent entry from _bmad/COMMANDS.md or Codex Skills.
Phase 1 — Analysis
BPBrainstorm Project — guided facilitation through brainstorming techniquesMRMarket Research — market analysis, competitive landscape, customer needsDRDomain Research — industry domain deep diveTRTechnical Research — technical feasibility, architecture optionsCBCreate Brief — guided experience to nail down your product idea
Phase 2 — Planning
CPCreate PRD — expert led facilitation to produce your PRD (required)VPValidate PRD — validate PRD is comprehensive and cohesiveEPEdit PRD — improve and enhance an existing PRDCUCreate UX — guidance through realizing the plan for your UX
Phase 3 — Solutioning
CACreate Architecture — guided workflow to document technical decisions (required)CECreate Epics and Stories — create the epics and stories listing (required)IRImplementation Readiness — ensure PRD, UX, architecture, and stories are aligned (required)
Anytime Commands
Available in any phase for supporting tasks:
QSQuick Spec — lightweight spec for small tasks without full planningQDQuick Dev — quick implementation for small tasksDPDocument Project — analyze existing project to produce documentationGPCGenerate Project Context — scan codebase to generate LLM-optimized contextCCCorrect Course — navigate significant changes mid-projectWDWrite Document — tech writer agent for documentationMGMermaid Generate — create Mermaid diagramsVDValidate Document — review documents against standardsBSPBrainstorming — interactive idea generation techniques (core, distinct from BP)IDIndex Docs — create lightweight doc index for LLM scanningSDShard Document — split large documents into smaller filesESEditorial Review (Structure) — propose document reorganizationARAdversarial Review — critical content review for QAUSUpdate Standards — update tech-writer documentation standardsECExplain Concept — create technical explanations with examples_bmad/COMMANDS.md— generated command reference for platforms without native slash commands
Note:
EPmeans Edit PRD in the bmm workflow (Phase 2) and Editorial Review — Prose in the core module.PMis Party Mode in core. The bmm meanings are the primary workflow codes.
Step 3: Implement with Ralph (Phase 4)
Note: Ralph is only available on full tier platforms (Claude Code, OpenAI Codex, OpenCode, GitHub Copilot, Cursor). Instructions-only platforms (Windsurf, Aider) support Phases 1-3 only. GitHub Copilot and Cursor support is experimental.
Run bmalph implement from the terminal, or use the /bmalph-implement slash command in Claude Code.
This transitions your BMAD artifacts into Ralph's format:
- Reads your stories from BMAD output
- Generates
.ralph/@fix_plan.mdwith ordered tasks - Copies specs to
.ralph/specs/with changelog tracking - Instructs you to start the Ralph autonomous loop
Then start Ralph:
bmalph run
Advanced: Ralph loads the platform drivers internally. Start the loop with
bmalph run, or runbash .ralph/ralph_loop.shdirectly if you need to bypass the CLI.
Ralph picks stories one by one, implements with TDD, and commits. The loop stops when all stories are done or the circuit breaker triggers.
Incremental Development
bmalph supports iterative development cycles:
BMAD (Epic 1) → bmalph implement → Ralph works on Epic 1
↓
BMAD (add Epic 2) → bmalph implement → Ralph sees changes + picks up Epic 2
**Smart Merge
Related Skills
node-connect
342.5kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
85.3kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
342.5kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
342.5kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
