RalphMAD — Autonomous BMAD-METHOD workflow execution via ralph-loop with templatized, project-agnostic prompts
npx claudepluginhub hieutrtr/ralphmadRalphMAD — Autonomous BMAD-METHOD workflow execution via ralph-loop. Templatized prompts that auto-populate from project context for reusable, project-agnostic SDLC automation.
Share bugs, ideas, or general feedback.
RalphMAD is a Claude Code plugin that combines the Ralph Loop self-referential AI loop technique with BMAD structured SDLC workflows. It provides templatized, project-agnostic workflow automation — install once, use with any BMAD-enabled project.
Open Claude Code in your project directory and install the BMM + TEA modules:
# Interactive (recommended — follow the prompts, select bmm and tea modules, pick claude-code as tool)
npx bmad-method install
# Or non-interactive
npx bmad-method install --modules bmm tea --tools claude-code --yes
This creates the _bmad/ directory with workflows, agents, and config. After installation, run /bmad-help inside Claude Code to verify everything is set up.
From your project directory:
# One-liner (clones and installs automatically)
curl -sL https://raw.githubusercontent.com/hieutrtr/ralphmad/main/install.sh | bash
# Or clone first, then install
git clone https://github.com/hieutrtr/ralphmad.git /tmp/ralphmad
/tmp/ralphmad/install.sh .
This installs RalphMAD as commands in .claude/commands/ and registers the stop hook in .claude/settings.json. Works with both Claude Code CLI and Claude Code on claude.ai (cloud sessions).
To uninstall:
/tmp/ralphmad/install.sh --uninstall .
From your terminal (non-interactive):
claude plugin marketplace add hieutrtr/ralphmad
claude plugin install ralphmad@ralphmad
Or from inside a Claude Code session:
/plugin marketplace add hieutrtr/ralphmad
/plugin install ralphmad
For local development:
claude plugin marketplace add ./ralphmad
claude plugin install ralphmad@ralphmad --scope local
Note: Plugins are not currently supported in Claude Code cloud sessions (claude.ai). Use Option A for cloud compatibility.
Create docs/product-concept.md describing your product idea.
See plugins/templates/product-concept-template.md for a starter template.
/ralphmad-status
/ralphmad-loop product-brief
If using the plugin installation (Option B), prefix commands with
ralphmad:(e.g.,/ralphmad:ralphmad-status).
User invokes: /ralphmad-loop product-brief
→ Reads workflow registry (ralphmad-config.yaml)
→ Reads project config (_bmad/bmm/config.yaml)
→ Checks prerequisites (scans for required artifacts)
→ Reads template (01-product-brief.tpl.md)
→ Populates {{placeholders}} with project context
→ Activates ralph-loop mechanism
→ Claude executes BMAD workflow autonomously
→ Loop continues until completion promise detected
| Phase | Workflow | Command | Description |
|---|---|---|---|
| 1 | Product Brief | product-brief | Create product brief from concept |
| 2 | PRD | prd-create | Create PRD from product brief |
| 2 | UX Design | ux-design | Create UX design specification |
| 3 | Architecture | architecture | Create architecture decisions |
| 3 | Epics & Stories | epics-stories | Create epics and user stories |
| 3 | Test Design | test-design | Create test design with risk assessment |
| 3 | Test Framework | testarch-framework | Set up test framework |
| 3 | CI/CD | testarch-ci | Set up CI/CD pipeline |
| 4 | Sprint Planning | sprint-planning | Generate sprint status tracking |
| 4 | Epic Test Design | testarch-test-design-epic | Test design for specific epic |
| 4 | Epic Dev | epic-dev | Implement all stories in an epic |
| 4 | Correct Course | correct-course | Manage sprint changes |
| Command (installed) | Command (plugin) | Description |
|---|---|---|
/ralphmad-loop WORKFLOW [--max-iterations N] | /ralphmad:ralphmad-loop ... | Run a workflow |
/ralphmad-status | /ralphmad:ralphmad-status | Show workflow status |
/ralphmad-cancel | /ralphmad:ralphmad-cancel | Cancel active loop |
/ralphmad-help | /ralphmad:help | Plugin documentation |
Templates use {{placeholder}} syntax and are populated at runtime from:
_bmad/bmm/config.yaml) — project name, artifact paths_bmad-output/) — context from previous workflowsralphmad-config.yaml) — promises, personas, prerequisitesThis means the same templates work with any BMAD-enabled project.