Getting it into your agent
This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.
/plugin marketplace add hieutrtr/ralphmad/plugin install ralphmadWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/commands/hieutrtr/ralphmad/ralphmad-loop)<a href="https://agentmods.dev/commands/hieutrtr/ralphmad/ralphmad-loop"><img src="https://agentmods.dev/badge/commands/hieutrtr/ralphmad/ralphmad-loop.svg" alt="Measured on agentmods" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00010 | $0.01649 |
| Opus 5 | $0.00005 | $0.00825 |
| Sonnet 5 | $0.00002 | $0.00330 |
| Haiku 4.5 | $0.00001 | $0.00165 |
Grade A, and why
ralphmad-loop scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 141 lines — stays where its author put it; the contents beside it link to each section on GitHub.
RalphMAD — BMAD Workflow Runner
You are the RalphMAD orchestrator. Follow these steps exactly:
Step 1: Parse Arguments
The first argument is the workflow name. Extract it from: $ARGUMENTS
Valid workflow names: product-brief, prd-create, ux-design, architecture, shard-architecture, epics-stories, implementation-gaps, test-design, testarch-framework, testarch-ci, sprint-planning, testarch-test-design-epic, epic-dev, correct-course
Also extract any --max-iterations N if provided (overrides the config default).
If no valid workflow name is found, display the list of valid workflows with their descriptions and exit.
Step 2: Load Workflow Registry
Read the file: ${CLAUDE_PLUGIN_ROOT}/templates/ralphmad-config.yaml
Find the entry matching the workflow name. Extract:
template— the template filenamebmad_workflow— the BMAD workflow command to invokepromise— the completion promise stringpersona— the persona to adoptphase— which SDLC phase this belongs toprerequisites— list of artifact types that must existproduces— what artifact this workflow createsmax_iterations— default max iterations (can be overridden by CLI arg)
Step 3: Load Project Config
Read: _bmad/bmm/config.yaml from the current project root.
Extract:
project_name— the project nameuser_name— the user's nameplanning_artifacts— path to planning artifacts (replace{project-root}with.)implementation_artifacts— path to implementation artifacts (replace{project-root}with.)output_folder— base output path (replace{project-root}with.)
If this file doesn't exist, STOP and tell the user:
"This project is not BMAD-enabled. Create _bmad/bmm/config.yaml first.
You can use /bmad:bmm:workflows:install to set up BMAD."
Step 4: Check Prerequisites
For each item in the workflow's prerequisites list:
- Look up the artifact discovery config in
ralphmad-config.yamlunderartifact_discovery - Determine the search directory (planning_artifacts or implementation_artifacts)
- Use Glob to scan for files matching the artifact's patterns
- If ANY prerequisite artifact is missing, STOP and report:
- Which artifacts are missing
- Which workflow should be run first to produce them
- Example: "Missing: prd. Run
/ralphmad-loop:ralphmad-loop prd-createfirst."
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 6d ago First seen · 141 lines · 10 tokens per session scan A 687481050580
ralphmad-loop is a command published in the GitHub repository hieutrtr/ralphmad (39 stars, last pushed 5mo ago), licensed Apache-2.0. It adds 10 tokens to every session and 1,649 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other commands, from other repositories
checklist
Generate a custom checklist for the current feature based on user requirements.
clarify
Identify underspecified areas in the current feature spec by asking up to 5 highly targeted clarification questions and encoding answers back into the spec.
specify
Create or update the feature specification from a natural language feature description.
analyze
Perform a non-destructive cross-artifact consistency and quality analysis across spec.md, plan.md, and tasks.md after task generation.
constitution
Create or update the project constitution from interactive or provided principle inputs.
converge
Assess the current codebase against the feature's spec, plan, and tasks, then append any remaining unbuilt work as new tasks to tasks.md so implement can complete it.