Token导航 LogoToken导航TokenDH.com
研究检索只读github未标认证来源可访问许可证需确认审计异常

bmad-init初始化

Agent Skill

bmad-init 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

652

周安装

28

GitHub Stars

45,886

下载量

228
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:bmad-init(初始化)
来源仓库:https://github.com/bmad-code-org/bmad-method
仓库路径:skills/bmad-init
安装命令:
npx skills add https://github.com/bmad-code-org/bmad-method --skill bmad-init
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/bmad-code-org/bmad-method --skill bmad-init

简介

作为BMad技能体系的配置入口点,负责初始化和管理所有相关技能的配置参数。

  • 适用于需要快速获取模块配置或引导完成首次配置流程的开发环境。
  • 通过自动检测配置状态并返回JSON格式变量来实现无缝集成。
  • 支持两种模式:存在配置时直接返回变量,缺失时引导用户完成初始化设置。
  • 每个BMad技能都应调用此接口获取其运行时所需的配置信息。

SKILL.md

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 --module to 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-path or _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.

  1. Show the header and subheader to the user
  2. For each variable, present the prompt and default
  3. For variables with single-select, show the options as a numbered list
  4. For variables with multi-line prompt (array), show all lines
  5. 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}).

  1. Resolve defaults by running bmad_init.py with the resolve-defaults subcommand, passing --module {module_code}, --core-answers '{core_answers_json}', and --project-root
  2. Show the module's header and subheader
  3. For each variable, present the prompt with resolved default
  4. For single-select variables, 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.yaml with core values (if core answers provided)
  • Creates _bmad/{module}/config.yaml with core values + module values (result-expanded)
  • Creates any directories listed in the module.yaml directories array

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.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

38.5%
按下载量换算88

Claude

27.94%
按下载量换算64

Cursor

17.13%
按下载量换算39

Gemini CLI

9.4%
按下载量换算21

安全审计

Gen Agent Trust Hub

可疑

Socket

通过

Snyk

未通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills