What problem does it solve?
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.
There are two modes: fast-path config loading when existing and an init path that guides first-time setup, writes config files, and returns ready vars. Every BMad skill should call this on activation to obtain its config vars; the script bmad_init.py lives in the skill's scripts directory and is the entry point for both modes.
Core Features & Use Cases
- Fast path: If a module's config exists, load and return vars as JSON for immediate use.
- Init path: When config is missing, guide through questions, write _bmad/core and _bmad/{module} config files, and return resolved vars.
- Universal entry point: Called by any skill upon activation to obtain consistent configuration values.
Quick Start
Run python bmad_init.py load --module <module_code> --all --project-root /path/to/project to fetch all vars, or use check to bootstrap when needed.