bmad-init
Skill1 starsChanged 8 months agoMITView on GitHub
Initialize BMad project configuration and load config variables. Use when any skill needs module-specific configuration values, or when setting up a new BMad project.
2 other projects use a version of this.
Adopted by
Most recently taken up by
- cwoodcox/on-recordword for word, first seen Mar 31, 2026
- DogaOztuzun/branchdeckword for word, first seen Mar 26, 2026
Other versions2 projects use a version of this.
Word for word · 2
- DogaOztuzun/branchdeck★ 18100% same
- cwoodcox/on-record★ 0100% same
Edited · 0
None found.
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository64 other files it gives its agents.
- bmad-advanced-elicitationSkill
- bmad-agent-analystSkill
- bmad-agent-architectSkill
- bmad-agent-devSkill
- bmad-agent-pmSkill
- bmad-agent-qaSkill
- bmad-agent-quick-flow-solo-devSkill
- bmad-agent-smSkill
- bmad-agent-tech-writerSkill
- bmad-agent-ux-designerSkill
- bmad-brainstormingSkill
- bmad-check-implementation-readinessSkill
- bmad-code-reviewSkill
- bmad-correct-courseSkill
- bmad-create-architectureSkill
- bmad-create-epics-and-storiesSkill
- bmad-create-prdSkill
- bmad-create-storySkill
- bmad-create-ux-designSkill
- bmad-dev-storySkill
- bmad-distillatorSkill
- bmad-document-projectSkill
- bmad-domain-researchSkill
- bmad-editorial-review-proseSkill
- bmad-editorial-review-structureSkill
- bmad-edit-prdSkill
- bmad-generate-project-contextSkill
- bmad-helpSkill
- bmad-index-docsSkill
- bmad-market-researchSkill
- bmad-party-modeSkill
- bmad-product-briefSkill
- bmad-qa-generate-e2e-testsSkill
- bmad-quick-devSkill
- bmad-retrospectiveSkill
- bmad-review-adversarial-generalSkill
- bmad-review-edge-case-hunterSkill
- bmad-shard-docSkill
- bmad-sprint-planningSkill
- bmad-sprint-statusSkill
- bmad-teach-me-testingSkill
- bmad-teaSkill
- bmad-technical-researchSkill
- bmad-testarch-atddSkill
- bmad-testarch-automateSkill
- bmad-testarch-ciSkill
- bmad-testarch-frameworkSkill
- bmad-testarch-nfrSkill
- bmad-testarch-test-designSkill
- bmad-testarch-test-reviewSkill
- bmad-testarch-traceSkill
- bmad-validate-prdSkill
- wds-0-alignment-signoffSkill
- wds-0-project-setupSkill
- wds-1-project-briefSkill
- wds-2-trigger-mappingSkill
- wds-3-scenariosSkill
- wds-4-ux-designSkill
- wds-5-agentic-developmentSkill
- wds-6-asset-generationSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
7 rules. About 0 are common, 2 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 14
Every BMad skill should call this on activation to get its config vars.
- Very specific: line 20
Run the bmad_init.py script with the load subcommand.
- Very specific: line 22
If a module code was provided by the calling skill, include --module {module_code}
- Very specific: line 25
If no module was specified, omit --module to get core vars only
- Distinctive: line 33
When the fast path fails (config missing for a module), run this init flow.
- Very specific: line 37
Run bmad_init.py with the check subcommand, passing --module {module_code}, --skill-path {calling_skill_path}, and --project-root.
- Very specific: line 100
After writing, re-run bmad_init.py with the load subcommand (same as the fast path) to return resolved vars.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Overview
This skill is the configuration entry point for all BMad skills. It has two modes:
- Fast path: Config exists for the requested module — returns vars as JSON. Done.
- Init path: Config is missing — walks the user through configuration, writes config files, then returns vars.
Every BMad skill should call this on activation to get its config vars. The caller never needs to know whether init happened — they just get their config back.
The script bmad_init.py is located in this skill's scripts/ directory. Locate and run it using python for all commands below.
On Activation — Fast Path
Run the bmad_init.py script with the load subcommand. Pass --project-root set to the project root directory.
- If a module code was provided by the calling skill, include
--module {module_code} - To load all vars, include
--all - To request specific variables with defaults, use
--vars var1:default1,var2 - If no module was specified, omit
--moduleto get core vars only
If the script returns JSON vars — store them as {var-name} and return to the calling skill. Done.
If the script returns an error or init_required — proceed to the Init Path below.
Init Path — First-Time Setup
When the fast path fails (config missing for a module), run this init flow.
Step 1: Check what needs setup
Run bmad_init.py with the check subcommand, passing --module {module_code}, --skill-path {calling_skill_path}, and --project-root.
The response tells you what's needed:
"status": "ready"— Config is fine. Re-run load."status": "no_project"— Can't find project root. Ask user to confirm the project path."status": "core_missing"— Core config doesn't exist. Must ask core questions first."status": "module_missing"— Core exists but module config doesn't. Ask module questions.
The response includes:
core_module— Core module.yaml questions (when core setup needed)target_module— Target module.yaml questions (when module setup needed, discovered from--skill-pathor_bmad/{module}/)core_vars— Existing core config values (when core exists but module doesn't)
Step 2: Ask core questions (if core_missing)
The check response includes core_module with header, subheader, and variable definitions.
- Show the
headerandsubheaderto the user - For each variable, present the
promptanddefault - For variables with
single-select, show the options as a numbered list - For variables with multi-line
prompt(array), show all lines - Let the user accept defaults or provide values
Step 3: Ask module questions (if module was requested)
The check response includes target_module with the module's questions. Variables may reference core answers in their defaults (e.g., {output_folder}).
- Resolve defaults by running
bmad_init.pywith theresolve-defaultssubcommand, passing--module {module_code},--core-answers '{core_answers_json}', and--project-root - Show the module's
headerandsubheader - For each variable, present the prompt with resolved default
- For
single-selectvariables, show options as a numbered list
Step 4: Write config
Collect all answers and run bmad_init.py with the write subcommand, passing --answers '{all_answers_json}' and --project-root.
The --answers JSON format:
{
"core": {
"user_name": "BMad",
"communication_language": "English",
"document_output_language": "English",
"output_folder": "_bmad-output"
},
"bmb": {
"bmad_builder_output_folder": "_bmad-output/skills",
"bmad_builder_reports": "_bmad-output/reports"
}
}Note: Pass the raw user answers (before result template expansion). The script applies result templates and {project-root} expansion when writing.
The script:
- Creates
_bmad/core/config.yamlwith core values (if core answers provided) - Creates
_bmad/{module}/config.yamlwith core values + module values (result-expanded) - Creates any directories listed in the module.yaml
directoriesarray
Step 5: Return vars
After writing, re-run bmad_init.py with the load subcommand (same as the fast path) to return resolved vars. Store returned vars as {var-name} and return them to the calling skill.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

