Skip to content

About

Installs and updates BMad Method modules. A thin wrapper around npx skills.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

bmad-method

What it does

bmad-method installs BMad modules into a project as agent skills. It asks which modules you want, runs the Vercel skills CLI (the skills npm package, shipped as a dependency) to install them, then reads the install with the bmad skill's setup script and prints a report. It copies no files itself, keeps no state of its own beyond your last agent pick, and never removes anything.

Install commands

Needs Node 22 or newer (required by the skills CLI). uv is recommended for BMad setup and helper scripts; without it, the installer warns and still installs your skills, with a more manual setup experience until uv is added.

npx bmad-method            install into the current directory
npx bmad-method install    the same thing
npx bmad-method update     update the BMad skills already installed
npx bmad-method status     show what is installed and what is still missing

Example

Interactive, in a terminal:

npx bmad-method

It asks where to install, which modules you want and which coding agents get the skills. Each module installs whole; to pick single skills, use npx skills add directly. The installer then runs the skills CLI without prompts and ends with a summary: the project, the modules and their version, the agents, and the next step.

Headless, for scripts and CI:

npx bmad-method install -d ./my-app -m method,creative -t claude-code,codex -y

Where it can run

An interactive run needs a real terminal. It refuses to start inside a coding agent such as Claude Code or Codex, because the prompts cannot be answered there. Add --yes to run without prompts anywhere. update and status never prompt.

Choosing coding agents

The agent list is the skills CLI's own, copied into agents.json from the skills CLI version this installer ships with. npx bmad-method --list-tools prints the ids. Many agents (Codex, Cursor, Gemini CLI, GitHub Copilot and others) read the same .agents/skills folder; the skills CLI writes it once however many of them you pick.

  • Interactive without --tools: a searchable picker lists every agent by name, the ticked ones first. It ticks the agents with their own folder that already hold BMad in this project; when .agents/skills holds BMad it adds only the agents sharing that folder that you picked last time. With neither, it ticks your last pick, otherwise nothing. Your answer is saved as the last pick in ~/.bmad/last-agents.json, BMad's per-user folder; delete it to start over. Before the first pick it falls back to the skills CLI's last pick without the agents sharing .agents/skills, which the skills CLI always records as picked.
  • --tools <ids>: every install goes to those agents and the picker never shows. Ids and display names both work. An unknown id stops the run before anything installs.
  • --yes without --tools: the agents the picker would tick. With none, every agent whose config folder is in your home folder, the way the skills CLI's own --yes picks, with those sharing .agents/skills written as the one universal id; with no such folder, universal alone. A config folder can outlive its agent, so pass --tools when it matters.

Where skills land

The skills CLI decides. With one agent it copies the skills into that agent's folder, for example .claude/skills. With several agents it writes them once to .agents/skills and links each agent's folder to them. npx bmad-method status reads the real locations with npx skills list.

Flags

Flag What it does
-d, --directory <path> Project directory, default the current one
-m, --modules <codes> Comma-separated module codes or module folders to install, e.g. method,creative or method,acme/our-modules/skills/widgets
-t, --tools <ids> Comma-separated coding agent ids to install to
--list-tools List the coding agent ids --tools takes
-y, --yes Take the defaults and ask nothing
--action <name> install, update or quick-update. Kept so scripts written for the 6.12 installer still work
--no-telemetry Turn off skills CLI telemetry and the skills.sh install counts
--copy Copy skills instead of linking, if symlinks fail on your system
--debug Print every child command, its cwd and its output to stderr
-h, --help Show the help
-v, --version Show the version

--modules takes module codes: method (alias bmm), toolsmith, tea, bmad-loop (alias loop), creative (alias cis) and founder. Without --modules, --yes installs method and toolsmith. The core tools module installs on every run. A module that needs another brings it along: tea and bmad-loop install method too. creative replaces the Creative Intelligence Suite: in a project that holds the old suite, the picker ticks creative and update installs it, and bmad setup offers to remove the old skills. Each module installs whole, with one npx skills add <owner/repo/folder> -s '*' for its folder; a module already installed with nothing missing is skipped.

A branch or tag

A code can carry a branch or tag: -m core-tools#dev,method#dev installs both from the dev branch, and -m method#v7.0.0 pins a tag. A module picked this way is re-added even when it is already installed. Core tools install from the default branch unless you name them with a ref. update keeps each listed module on the branch or tag the project's skills-lock.json recorded for it; to move one back, install it with the ref you want, such as -m method#main.

Your own modules

--modules also takes the folder of a module that is not on the list: anything with a / is a source the skills CLI can install from, such as acme/our-modules/skills/widgets, acme/our-modules/skills/widgets#dev, a git URL or a local path (./widgets, made absolute against the folder you run from). It installs whole, like the listed modules, to the agents you pick: npx bmad-method install -m method,acme/our-modules/skills/widgets. The folder must hold the module's record and its skills; the BMad Agent reads the record on its next bmad setup. update re-adds it from the source and ref the project's skills-lock.json recorded for its record, so a module installed with npx skills add updates the same way.

A 6.12 flag this installer dropped prints one line about it, then exits without installing.

What the summary tells you

The summary names the project, the modules with their version and the coding agents, and asks you to open your coding agent there and tell it to run bmad setup. Setup asks the configuration questions, finishes the install, and shows each module's message about where to start. Configuration and customization belong to the BMad Agent from then on; this installer never asks those questions. Anything that failed is listed above the summary. Below it are the update command, the command that repeats the install without prompts, and links to the blog, GitHub, Discord, YouTube and bmadcode.com.

Updating

Three routes: ask the BMad Agent, run npx bmad-method update, or run npx skills update.

npx bmad-method update re-adds each installed module whole, one npx skills add <owner/repo/folder> -s '*' per module, to the agents whose folder in the project already holds BMad. A module installed from a branch or tag stays on it. It then prints the summary and any migrations for the version jump. A module that is not on the list, installed with --modules <folder> or npx skills add, is re-added from the source and ref the project's skills-lock.json recorded for its record. One it cannot place, such as a well-known skill, is named; npx skills update covers it, one skill and one clone at a time. A module re-added this way gets back any skill removed from it by hand.

After adding or updating any skill by any route, ask the BMad Agent to update. Only it reconciles what is installed.

Staying on or upgrading from BMad v6

To stay on or update an existing BMad v6 install (e.g. 6.4 to 6.12), run the v6 installer:

npx bmad-method@6 install

Or pin an exact version such as npx bmad-method@6.12.4 install.

When this v7 installer detects _bmad/_config/manifest.yaml in a project without v7 skills yet, it warns you, points you to npx bmad-method@6 install, and (in interactive mode) asks you to confirm before installing v7. Back up _bmad/ and _bmad-output/ before upgrading; bmad setup handles v6 cleanup and migrations once v7 skills are installed. update and status stop on a v6-only project and remind you which command to run.

Removing

Ask the BMad Agent to remove a module (it previews every affected skill folder, lock entry, and _bmad/<code>/, and preserves _bmad/custom/), or run npx skills remove for individual skills. This installer has no uninstall command and never removes anything.

Installing with the skills CLI directly

If you install with the skills CLI directly, ours or your own, install a module from its folder: npx skills add bmad-code-org/BMAD-METHOD/skills/method --skill '*' installs BMad Method, record included. Core tools (skills/core-tools) hold the bmad skill, so install them first. A module is its record skill plus the skills that record lists. The record is a bmod-<code> skill, or, for a module of one skill, that skill itself. A record without its skills, or skills without their record, is a partial install: the BMad Agent cannot see or run it. npx bmad-method status lists missing records and unmet requirements.

Troubleshooting

  • status and update take a few seconds. The bmad skill's setup script reads each module's record from GitHub in parallel on every call.
  • npx skills update re-adds skills without the agent list, so it can add agents whose folders happen to be in the project. npx bmad-method update passes the agents already holding BMad.
  • Symlink errors on Windows: add --copy.
  • --debug prints every child command with its output.

Telemetry

The installer sends nothing. The skills CLI it runs sends two GET requests to www.skills.sh: an audit call to https://www.skills.sh/tele/audit before an install, carrying the owner/repo and the skill names, and an install event to https://www.skills.sh/tele/t after it, carrying the source, the skill names, their repository-relative SKILL.md paths (skillFiles), the agent ids and the CLI version. For a GitHub repository, both requests go out only when GitHub positively confirms it is public (private GitHub repos send neither; non-GitHub remote sources without a GitHub privacy check may still send the install event). A local path sends neither. No file contents leave the machine. The install event carries the metadata this installer attaches: {"installer":"bmad-method","version":"<installer version>"}.

--no-telemetry sets DO_NOT_TRACK=1 in every skills CLI process the installer starts. That also removes those installs from the install counts on skills.sh.

DO_NOT_TRACK or DISABLE_TELEMETRY set in your own environment turns telemetry off for every skills command, including the ones you run yourself.

Reproducible installs

The skills CLI writes skills-lock.json in the project, recording each skill's content hash and (for Git sources) its commit. Commit it. npx skills install (or npx skills experimental_install) restores the skills recorded there: Git skills restore from the recorded commit, while entries without a commit (local paths, and older locks until npx skills update adds one) restore from the current source. Use --frozen-lockfile (enabled automatically in CI) when exact content matters: a frozen restore fails on a hash mismatch rather than installing changed content.

Testing

npm test runs the unit tests with node --test. npm run check runs tsc over bin, src and test.

npm run e2e runs the end-to-end install. It skips itself unless BMAD_INSTALLER_E2E_SOURCE points at a local BMAD-METHOD checkout. The test passes that path to the child run as BMAD_INSTALLER_SOURCE_OVERRIDE, which swaps the repository of every module from the core tools repository for that path and keeps each module's folder. A #ref at the end selects a branch or tag: BMAD_INSTALLER_SOURCE_OVERRIDE='bmad-code-org/BMAD-METHOD#dev' installs from dev on GitHub. Set BMAD_INSTALLER_E2E_DEBUG to log every child command. BMAD_INSTALLER_SOURCE_OVERRIDE exists for this test; do not set it for a real install.

Releasing

See tools/release.md.

License

MIT. See LICENSE.

About

Installs and updates BMad Method modules. A thin wrapper around npx skills.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages