什么是BMAD method

它也是使用AI开发的一种模式,工作流与敏捷开发强相关,可以用它走完敏捷开发的全流程。

可以这样理解:在每一个阶段给AI一个“人设”,让AI变成这个阶段的专业人士然后产出相应的文档或者代码(比如说需求分析,架构师等)。

本质上是通过不同的prompt让AI根据这些prompt切换身份,也就是说可以通过更改prompt根据项目调节agent人格。

需要注意的点是这种模式比较适合从0开始的,比较大的项目,因为它会产出很多文档(token消耗较大),如果是较小的需求可以通过openspec模式开发或者直接用提示词。

安装

需要安装Node.js,并且版本至少是v20.12+,如果想要更好的性能,还需要安装pythan,这里可以直接去官方仓库看https://github.com/bmad-code-org/BMAD-METHOD

接着运行npx bmad-method install,这里需要在项目文件夹的cmd或者powershell中运行。

如果有东西没有安装,在终端会有提示,这里需要自行安装uv,cli不会引导你安装。

uv not found on PATH. uv is becoming the de facto standard for running BMAD's Python
|  scripts (`uv run <script>`), and it provisions the interpreter for you. BMAD installs
|  fine without it, but setting up uv now keeps you ahead as workflows adopt it.

接着会进入正式的安装

 //BMAD method的安装路径,放在项目下就行
 Installation directory:
│  D:\test
|
•  Resolved installation path: D:\test
|
|  Directory exists and is empty
|
o  Install to this directory?
|  Yes
|
o  Checked latest module versions.
//选择要安装的官方模块,这里可以自行选择适合自己的,
|
o  Select official modules to install:
|  6 items selected
|
|  Selected official modules:
|    • BMad Method (v6.10.0)
|    • BMad Core Module (v6.10.0)
|    • BMad Test Architect (v1.19.1)
|    • BMad Builder (v2.1.0)
|    • BMad Creative Intelligence Suite (v0.2.1)
|    • Whiteport Design Studio (v0.4.3)
|
//上一步安装了官方的模块,这里问要不要安装自定义模块,也就是github上大佬开发的模块,这里如果选择yes,需要把这个模块的地址拷贝下来,或者把这个模块克隆到本地
o  Do you want to install custom or community modules (Git URL or local path)?
|  No
|
o  Ready to install (all stable)? Pick "n" to customize channels or pin versions.
|  Yes
|
o  Integrate with:
|  2 items selected
|
//选择针对什么AI工具,它会根据你的选择为不同的工具生成可被扫描到的skill
|  Selected tools:
|    • Codex ⭐
|    • Claude Code ⭐
|
//一些自定义设置
o  Configuring BMad Core Configuration
◇  What should agents call you? (Use your name or a team name)
│  Administrator
◇  What is your project called?
│  test
◇  What language should agents use when chatting with you?
│  English
◇  Preferred document output language?
│  English
◇  Where should output files be saved?
│  _bmad-output

一些注意点

报类似Could not resolve stable tag for 'xxx',是GitHub API 限流,这里需要设置GITHUB_TOKEN,设置流程直接问AI

设置GITHUB_TOKEN的终端和安装BMAD的终端需要是同一个,比如你在powershell里设置的,也要在powershell里安装,cmd同理

Logo

汇聚全球AI编程工具,助力开发者即刻编程。

更多推荐