bmad-init
Configures the BMad module environment and manages settings required by other development skills.
Install
mkdir -p .claude/skills/bmad-init && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/13520" && unzip -o skill.zip -d .claude/skills/bmad-init && rm skill.zipInstalls to .claude/skills/bmad-init
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
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.Key capabilities
- →Initialize BMad project configuration
- →Load module-specific configuration variables
- →Walk users through configuration setup
- →Write BMad config files
- →Resolve default variable values
How it works
The skill attempts a fast-path load of existing configuration. If config is missing, it guides the user through an initialization flow, asks questions, writes config files, and then returns the resolved variables.
Inputs & outputs
When to use bmad-init
- →Setting up a new BMad module
- →Configuring project variables
- →Initializing BMad module dependencies
About this skill
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.
When not to use it
- →When the project root cannot be found
- →When core configuration is missing and core questions are not addressed
- →When module configuration is missing and module questions are not addressed
Limitations
- →Requires a project root directory to be found
- →Requires core configuration to be set up before module configuration
- →Variables may reference core answers in their defaults
How it compares
This skill provides a centralized and automated way to manage BMad project configuration, handling both existing and new setups, unlike manual configuration.
Compared to similar skills
bmad-init side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| bmad-init (this skill) | 0 | 4mo | Review | Beginner |
| applescript | 28 | 8mo | Review | Advanced |
| bazel-build-optimization | 14 | 2mo | No flags | Advanced |
| home-assistant-manager | 9 | 8mo | Review | Advanced |
Try saying
Example prompts that trigger this skill in your AI assistant.
More by youranreus
View all by youranreus →You might also like
applescript
martinholovsky
Expert in AppleScript and JavaScript for Automation (JXA) for macOS system scripting. Specializes in secure script execution, application automation, and system integration. HIGH-RISK skill due to shell command execution and system-wide control capabilities.
bazel-build-optimization
wshobson
Optimize Bazel builds for large-scale monorepos. Use when configuring Bazel, implementing remote execution, or optimizing build performance for enterprise codebases.
home-assistant-manager
komal-SkyNET
Expert-level Home Assistant configuration management with efficient deployment workflows (git and rapid scp iteration), remote CLI access via SSH and hass-cli, automation verification protocols, log analysis, reload vs restart optimization, and comprehensive Lovelace dashboard management for tablet-optimized UIs. Includes template patterns, card types, debugging strategies, and real-world examples.
swarm-advanced
ruvnet
Advanced swarm orchestration patterns for research, development, testing, and complex distributed workflows
windows-expert
jackspace
Expert guidance for Windows, PowerShell, WSL interop, and cross-platform development
bash-linux
davila7
Bash/Linux terminal patterns. Critical commands, piping, error handling, scripting. Use when working on macOS or Linux systems.