Skip to content
🤖 AI-optimized docs: llms-full.txt

Builder Commands Reference

Reference for the two core BMad Builder skills — the Agent Builder (bmad-agent-builder) and the Workflow Builder (bmad-workflow-builder). Both share the same two capabilities but apply them to different skill types.

CapabilityMenu CodeAgent BuilderWorkflow Builder
Build ProcessBPBuild, edit, convert, or fix agentsBuild, edit, convert, or fix workflows and utilities
Quality OptimizeQOValidate and optimize existing agentsValidate and optimize existing workflows and utilities

Both capabilities support autonomous/headless mode via --headless / -H flags.

The core creative path. Six phases of conversational discovery take you from a rough idea to a complete, tested skill folder.

Both builders accept any of these as a starting point.

InputWhat Happens
A rough idea or descriptionGuided discovery from scratch
An existing BMad skill pathEdit mode — analyze what exists, determine what to change
A non-BMad skill, tool, or codeConvert to BMad-compliant structure
Documentation, API specs, or codeExtract intent and requirements automatically
ModeBehaviorBest For
GuidedThe builder walks through decisions, clarifies ambiguities, ensures completenessProduction skills, first-time builders
YOLOBrain-dump your idea; the builder guesses its way to a finished skill with minimal questionsQuick prototypes, experienced builders
AutonomousFully headless — no interactive prompts, proceeds with safe defaultsCI/CD, batch processing, orchestrated builds
PhaseAgent BuilderWorkflow Builder
1Discover Intent — understand the visionDiscover Intent — understand the vision; accepts any input format
2Capabilities Strategy — internal commands, external skills, or both; script opportunitiesClassify Skill Type — Simple Utility, Simple Workflow, or Complex Workflow; module membership
3Gather Requirements — name, persona, memory, capabilities, autonomous modes, folder dominionGather Requirements — name, description, stages, config variables, output artifacts, dependencies
4Draft & Refine — present outline, iterate until readyDraft & Refine — present plan, clarify gaps, iterate until ready
5Build — generate skill structure, lint gateBuild — generate skill structure, lint gate
6Summary — present results, offer Quality OptimizeSummary — present results, run unit tests if scripts exist, offer Quality Optimize

Capabilities strategy determines the mix of internal and external capabilities.

Capability TypeDescription
Internal commandsPrompt-driven actions defined inside the agent, each gets a file in prompts/
External skillsStandalone skills the agent invokes by registered name
ScriptsDeterministic operations offloaded from the LLM (validation, data processing, file ops)

Agent-specific requirements gathered in Phase 3:

RequirementDescription
IdentityWho is this agent? Communication style, decision-making philosophy
Memory & persistenceSidecar needed? Critical data vs checkpoint data, save triggers
Activation modesInteractive only, or interactive + autonomous (schedule/cron)
First-run onboardingWhat to ask on first activation to configure itself
Folder dominionRead boundaries, write boundaries, explicit deny zones
Autonomous tasksDefault wake behavior, named tasks via --headless {task-name} or -H {task-name}

Skill type classification determines template and structure.

TypeSignalsStructure
Simple UtilityComposable building block, clear input/output, usually mostly script-drivenSingle SKILL.md, scripts folder
Simple WorkflowFits in one SKILL.md, a few sequential steps, optional autonomousSKILL.md with inline steps, optional prompts and resources
Complex WorkflowMultiple stages, branching prompt flows, progressive disclosure, long-runningSKILL.md for routing, prompts/ for stage details, resources/ for reference data

Workflow-specific requirements gathered in Phase 3:

RequirementSimple UtilitySimple WorkflowComplex Workflow
Input/output formatYes
ComposabilityYes
StepsNumbered stepsNamed stages with progression conditions
Headless modeOptionalOptional
Config variablesCore + customCore + module-specific
Module sequencingOptionalOptionalRecommended

Both builders produce the same folder structure, with components included only as needed.

{skill-name}/
├── SKILL.md # Skill instructions (persona embedded for agents)
├── prompts/ # Internal capability prompts, init, autonomous-wake
├── resources/ # Reference data, memory-system definition (agents)
├── agents/ # Subagent definitions for parallel processing
├── scripts/ # Deterministic scripts - bash, python or typescript generally
│ └── tests/ # Unit tests for scripts
└── templates/ # Building blocks for generated output

Before completing the build, both builders run deterministic validation.

ScriptWhat It Checks
scan-path-standards.pyPath conventions — no {skill-root}, {project-root} only for _bmad, no double-prefix
scan-scripts.pyScript portability, PEP 723 metadata, agentic design, unit test presence

Critical issues block completion. Warnings are noted but don’t block.

Comprehensive validation and optimization for existing skills. Runs deterministic lint scripts for instant structural checks and LLM scanner subagents for judgment-based analysis, all in parallel.

In interactive mode, the optimizer:

  1. Checks for uncommitted changes and recommends committing first
  2. Asks if the skill is currently working as expected

In autonomous mode, both checks are skipped and noted as warnings in the report.

The optimizer runs three tiers of analysis.

Tier 1 — Lint scripts (deterministic, zero tokens, instant):

ScriptFocus
scan-path-standards.pyPath convention violations
scan-scripts.pyScript portability and standards

Tier 2 — Pre-pass scripts (extract metrics for LLM scanners):

ScriptAgent BuilderWorkflow Builder
Structure/integrity pre-passprepass-structure-capabilities.pyprepass-workflow-integrity.py
Prompt metrics pre-passprepass-prompt-metrics.pyprepass-prompt-metrics.py
Execution dependency pre-passprepass-execution-deps.pyprepass-execution-deps.py

Tier 3 — LLM scanners (judgment-based, run as parallel subagents):

ScannerAgent Builder FocusWorkflow Builder Focus
Structure / IntegrityStructure, capabilities, identity, memory setup, consistencyLogical consistency, description quality, progression conditions, type-appropriate structure
Prompt CraftToken efficiency, anti-patterns, persona voice, overview qualityToken efficiency, anti-patterns, overview quality, progressive disclosure
Execution EfficiencyParallelization, subagent delegation, memory loading, context optimizationParallelization, subagent delegation, read avoidance, context optimization
CohesionPersona-capability alignment, gaps, redundanciesStage flow coherence, purpose alignment, complexity appropriateness
Enhancement OpportunitiesScript automation, autonomous potential, edge cases, delightCreative edge-case discovery, experience gaps, assumption auditing

After all scanners complete, the optimizer synthesizes results into a unified report saved to {bmad_builder_reports}/{skill-name}/quality-scan/{timestamp}/.

In interactive mode, it presents a summary with severity counts and offers next steps:

  • Apply fixes directly
  • Export checklist for manual fixes
  • Discuss specific findings

In autonomous mode, it outputs structured JSON with severity counts and the report file path.

Not every suggestion should be applied. The optimizer communicates these decision rules:

  • Keep phrasing that captures the intended voice — leaner is not always better for persona-driven skills
  • Keep content that adds clarity for the AI even if a human finds it obvious
  • Prefer scripting for deterministic operations; prefer prompting for creative or judgment-based tasks
  • Reject changes that flatten personality unless a neutral tone is explicitly wanted
IntentPhrasesBuilderRoute
Build new”create/build/design an agent”Agentprompts/build-process.md
Build new”create/build/design a workflow/skill/tool”Workflowprompts/build-process.md
Edit”edit/modify/update an agent”Agentprompts/build-process.md
Edit”edit/modify/update a workflow/skill”Workflowprompts/build-process.md
Convert”convert this to a BMad agent”Agentprompts/build-process.md
Convert”convert this to a BMad skill”Workflowprompts/build-process.md
Optimize”quality check/validate/optimize/review agent”Agentprompts/quality-optimizer.md
Optimize”quality check/validate/optimize/review workflow/skill”Workflowprompts/quality-optimizer.md