본문으로 건너뛰기
cccskills
무료GitHub에 공개

bmad-init

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.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

설치 방법 보기

포함된 파일(4)

  • SKILL.md4.5 KB
  • resources/core-module.yaml723 B
  • scripts/bmad_init.py20.7 KB
  • scripts/tests/test_bmad_init.py11.0 KB

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.

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

adapt

무료

Adapt designs to work across different screen sizes, devices, contexts, or platforms. Implements breakpoints, fluid layouts, and touch targets. Use when the user mentions responsive design, mobile layouts, breakpoints, viewport adaptation, or cross-device compatibility.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

youranreus/note122026년 8월 6일 업데이트

animate

무료

Review a feature and enhance it with purposeful animations, micro-interactions, and motion effects that improve usability and delight. Use when the user mentions adding animation, transitions, micro-interactions, motion design, hover effects, or making the UI feel more alive.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

youranreus/note122026년 8월 6일 업데이트

arrange

무료

Improve layout, spacing, and visual rhythm. Fixes monotonous grids, inconsistent spacing, and weak visual hierarchy. Use when the user mentions layout feeling off, spacing issues, visual hierarchy, crowded UI, alignment problems, or wanting better composition.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

youranreus/note122026년 8월 6일 업데이트

ask-matt

무료

Ask which skill or flow fits your situation. A router over the skills in this repo.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

youranreus/note122026년 8월 6일 업데이트

audit

무료

Run technical quality checks across accessibility, performance, theming, responsive design, and anti-patterns. Generates a scored report with P0-P3 severity ratings and actionable plan. Use when the user wants an accessibility check, performance audit, or technical quality review.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

youranreus/note122026년 8월 6일 업데이트

Push the LLM to reconsider, refine, and improve its recent output. Use when user asks for deeper critique or mentions a known deeper critique method, e.g. socratic, first principles, pre-mortem, red team.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

youranreus/note122026년 8월 6일 업데이트

youranreus의 스킬 모두 보기

이 스킬의 문제 신고