| ํญ๋ชฉ | ๋ด์ฉ |
|---|---|
| Invoke | /workflow-init |
/workflow-init โ BMAD ํ๋ก์ ํธ ์ฒซ ์ธํ #
ํ๋ง๋๋ก#
์ ํ๋ก์ ํธ์ BMAD๋ผ๋ ์์ ๋ฐฉ์์ ๊ธฐ๋ณธ ํ์ ๊น์์ฃผ๋ "์ด๊ธฐ ์ค์ " ๋ช ๋ น์ ๋๋ค. ์ ์ฌ๋ฌด์ค์ ์ฒ์ ๋ค์ด๊ฐ ์ฑ ์ยท์๋ฅํจยท๋ผ๋ฒจ์ ๋ฏธ๋ฆฌ ์ ๋ฆฌํด๋๋ ๊ฒ๊ณผ ๊ฐ์์. ์ด๊ฑธ ๋จผ์ ํด๋ฌ์ผ ์ดํ ์์ ๋ค์ด ์ ํด์ง ์๋ฆฌ์ ์ฐจ๊ณก์ฐจ๊ณก ์์ ๋๋ค.
๋๊ฐยท์ธ์ ์ฐ๋์#
- ์ ํ๋ก์ ํธ๋ฅผ ์์ํ๋ฉด์ BMAD ๋ฐฉ์์ผ๋ก ์ผ์ ์งํํ๊ธฐ๋ก ์ ํ์ ๋ ๊ฐ์ฅ ๋จผ์ ํ ๋ฒ ์คํํฉ๋๋ค.
- ํ๋ก์ ํธ์ ์ด๋ฆยท์ข ๋ฅยท๊ท๋ชจ(๋ณต์ก๋)๋ฅผ ๋ฑ๋กํ๊ณ , ์์ผ๋ก ๋ง๋ค ๋ฌธ์๊ฐ ๋ค์ด๊ฐ ํด๋ ๊ตฌ์กฐ๋ฅผ ์ก๊ณ ์ถ์ ๋ ์๋๋ค.
- (์ ํ) ์ด์ ๊ด๋ฆฌ ๋๊ตฌ์ธ ZenHub์ ์ฐ๊ฒฐํด ๋๊ณ ์ถ์ ๋๋ ์ด ๋จ๊ณ์์ ํจ๊ป ์ค์ ํฉ๋๋ค.
๐ ์ด๋ฏธ ํ ๋ฒ ์ธํ ํ ํ๋ก์ ํธ๋ผ๋ฉด ๋ค์ ์คํํ ๋ "๋ฎ์ด์ธ๊น์?"๋ผ๊ณ ๋ฌผ์ด๋ด ๋๋ค.
๋ฌด์์ ํด์ฃผ๋์#
์คํํ๋ฉด ํ๋ก์ ํธ์ ๋ค์์ด ๋ง๋ค์ด์ง๋๋ค.
bmad/config.yamlโ ํ๋ก์ ํธ ๊ธฐ๋ณธ ์ค์ (์ด๋ฆยท์ข ๋ฅยท๊ท๋ชจ ๋ฑ)์ด ๋ด๊ธด ํ์ผ.bmad/bmm-workflow-status.yamlโ ์์ ์งํ ์ํฉ์ ์ถ์ ํ๋ ํ์ผ-
BMAD ์ฐ์ถ๋ฌผ์ด ์์ผ ํด๋ ๊ตฌ์กฐ(
bmad/,.bmad/,.claude/commands/bmad/๋ฑ) - (ZenHub ์ฐ๋์ ์ ํํ ๊ฒฝ์ฐ)
bmad/zenhub-conventions.yamlโ ZenHub ์ฐ๊ฒฐ ๊ท์น ํ์ผ
๋ง์ง๋ง์๋ ์ธํ ์๋ฃ ๋ฉ์์ง์ ํจ๊ป ํ๋ก์ ํธ ๊ท๋ชจ์ ๋ง๋ ๋ค์ ์์ ์์๊น์ง ์ถ์ฒํด ์ค๋๋ค.
์ด๋ป๊ฒ ์ฐ๋์#
# ํ๋ก์ ํธ์์ ํ ๋ฒ ์คํํ๋ฉด ๋ฉ๋๋ค
/workflow-init
์คํํ๋ฉด ๋ํ๋ก ๋ช ๊ฐ์ง๋ฅผ ์ฐจ๋ก๋ก ๋ฌผ์ด๋ด ๋๋ค.
- ํ๋ก์ ํธ ์ด๋ฆ (์: "MyApp", "์ด์ปค๋จธ์ค ํ๋ซํผ")
- ํ๋ก์ ํธ ์ข ๋ฅ (์น ์ฑ / ๋ชจ๋ฐ์ผ ์ฑ / APIยท๋ฐฑ์๋ / ๊ฒ์ / ๋ผ์ด๋ธ๋ฌ๋ฆฌ / ๊ธฐํ)
-
ํ๋ก์ ํธ ๊ท๋ชจ(Level 0~4) โ ์คํ ๋ฆฌ(์์
๋จ์) ๊ฐ์๋ก ๊ฐ๋ ํฉ๋๋ค
- Level 0: ๋จ์ผ ์์ 1๊ฐ
- Level 1: ์๊ท๋ชจ (1~10๊ฐ)
- Level 2: ์ค๊ฐ ๊ท๋ชจ (5~15๊ฐ)
- Level 3: ๋ณต์กํ ํตํฉ (12~40๊ฐ)
- Level 4: ์ํฐํ๋ผ์ด์ฆ (40๊ฐ ์ด์)
๋ฌผ์ด๋ณด๋ ๋ต์ ๋ฐ๋ผ ์ค์ ํ์ผ์ด ์๋์ผ๋ก ์ฑ์์ง๋ฏ๋ก, ๋ฉ๋ด์์ ๋ฒํธ๋ง ๊ณจ๋ผ์ฃผ๋ฉด ๋ฉ๋๋ค.
์์์ ๋ฌด์จ ์ผ์ด ๋ฒ์ด์ง๋์#
ํฌ๊ฒ 8๋จ๊ณ๋ก, ์ฐจ๋ก๋๋ก ์งํ๋ฉ๋๋ค.
- ๊ธฐ์กด ์ค์ ํ์ธ โ ์ด๋ฏธ ์ธํ ๋ผ ์์ผ๋ฉด ๋ฎ์ด์ธ์ง ๋จผ์ ๋ฌผ์ด๋ด ๋๋ค.
- ํด๋ ๋ง๋ค๊ธฐ โ ์ฐ์ถ๋ฌผ์ด ๋ค์ด๊ฐ ํด๋ ๊ตฌ์กฐ๋ฅผ ์์ ํ๊ฒ ๋ง๋ญ๋๋ค(์๋ ํด๋๋ ๊ฑด๋๋ฆฌ์ง ์์).
- ํ๋ก์ ํธ ์ ๋ณด ๋ฐ๊ธฐ โ ์ด๋ฆยท์ข ๋ฅยท๊ท๋ชจ๋ฅผ ํ๋์ฉ ์ง๋ฌธํด ์ ๋ ฅ๋ฐ์ต๋๋ค.
- ์ค์ ํ์ผ ์์ฑ โ ์
๋ ฅ๊ฐ์ผ๋ก
bmad/config.yaml์ ์ฑ์๋๋ค. -
์งํ ์ํฉ ํ์ผ ์์ฑ โ ๊ท๋ชจ์ ๋ฐ๋ผ ์ด๋ค ๋ฌธ์๊ฐ "ํ์/๊ถ์ฅ/์ ํ"์ธ์ง ์ ํด
.bmad/bmm-workflow-status.yaml์ ๊ธฐ๋กํฉ๋๋ค. - (์ ํ) ZenHub ์ฐ๋ โ ์ํ๋ฉด ์ํฌ์คํ์ด์ค๋ฅผ ์ฐ๊ฒฐํ๊ณ ๊ท์น ํ์ผ์ ๋ง๋ญ๋๋ค.
- ์๋ฃ ์๋ด + ๋ค์ ๋จ๊ณ ์ถ์ฒ โ ๊ท๋ชจ์ ๋ง๋ ์์ ์์(์: product-brief โ tech-spec โ ์คํ ๋ฆฌ)๋ฅผ ๋ณด์ฌ์ค๋๋ค.
-
๋ฐ๋ก ์์ ์ ์ โ ์ํ๋ฉด ์ถ์ฒ ์์
์ผ๋ก ๋ฐ๋ก ์ด์ด์ ์งํํฉ๋๋ค. (๋์ค์
/workflow-status๋ก ์งํ ์ํฉ์ ์ธ์ ๋ ํ์ธํ ์ ์์ต๋๋ค.)
โ๏ธ ์์ธ ์ต์ ยท์คํ ๋ช ์ธ (๊ฐ๋ฐ์ / AI ์์ด์ ํธ์ฉ)
Command Overview#
Purpose: Set up BMAD Method v6 structure and configuration in the current project
Agent: BMad Master (Core Orchestrator)
Output:
bmad/config.yaml- Project configuration.bmad/bmm-workflow-status.yaml- Workflow status tracking- Directory structure for BMAD artifacts
Execution Steps#
Step 1: Check for Existing Installation#
- Check if
bmad/config.yamlexists - If exists:
- Read current config
- Ask: "BMAD already initialized. Reinitialize (overwrites config)?"
- If no โ Exit
- If yes โ Continue
Step 2: Create Directory Structure#
Create the following directories using Write/Bash tool:
bmad/
โโโ config.yaml
โโโ agent-overrides/
.bmad/
โโโ bmm-workflow-status.yaml
โโโ stories/
โโโ (story directories created as needed)
.claude/
โโโ commands/
โโโ bmad/
โโโ (commands auto-registered by Claude Code)Note: Only create directories that don't exist. Use mkdir -p to be safe.
Step 3: Collect Project Information#
Ask user these questions (one at a time):
Q1: Project Name
" What is your project name? "
Examples: " MyApp " , " E-Commerce Platform " , " Mobile Game "
Default: Use directory name if user skipsQ2: Project Type
" What type of project is this? "
Options (present as menu):
1. Web Application
2. Mobile App (iOS/Android)
3. API / Backend Service
4. Game
5. Library / Framework
6. Other
Store as: " web-app " , " mobile-app " , " api " , " game " , " library " , " other "Q3: Project Level
" What is the project complexity level? "
Explain levels:
- Level 0: Single atomic change (1 story)
- Level 1: Small feature set (1-10 stories)
- Level 2: Medium feature set (5-15 stories)
- Level 3: Complex integration (12-40 stories)
- Level 4: Enterprise expansion (40+ stories)
Options (present as menu):
0. Level 0 - Single story
1. Level 1 - Small (1-10 stories)
2. Level 2 - Medium (5-15 stories)
3. Level 3 - Complex (12-40 stories)
4. Level 4 - Enterprise (40+ stories)
Store as: 0, 1, 2, 3, or 4Step 4: Create Project Config#
Load global config from
~/.claude/config/bmad/config.yamlperhelpers.md#Load-Global-ConfigLoad template from
${CLAUDE_PLUGIN_ROOT}/references/project-config-template.mdSubstitute variables:
{{PROJECT_NAME}}โ User input from Step 3{{PROJECT_TYPE}}โ User input from Step 3{{PROJECT_LEVEL}}โ User input from Step 3
Write to
bmad/config.yamlusing Write tool
Example output:
project_name: " MyApp "
project_type: " web-app "
project_level: 2
output_folder: " .bmad "
bmm:
workflow_status_file: " .bmad/bmm-workflow-status.yaml "
sprint_status_file: " .bmad/sprint-status.yaml "
paths:
docs: " .bmad "
stories: " .bmad/stories "
tests: " tests "Step 5: Create Workflow Status File#
Load template from
${CLAUDE_PLUGIN_ROOT}/references/templates/bmm-workflow-status-template.mdDetermine conditional statuses based on project level:
Level 0-1: - PRD: " recommended " (optional for level 0) - Tech-spec: " required " - Architecture: " optional " Level 2+: - PRD: " required " - Tech-spec: " optional " - Architecture: " required "Substitute variables:
{{TIMESTAMP}}โ Current ISO timestamp{{PROJECT_NAME}}โ From project config{{PROJECT_TYPE}}โ From project config{{PROJECT_LEVEL}}โ From project config{{PRD_STATUS}}โ Conditional per above{{TECH_SPEC_STATUS}}โ Conditional per above{{ARCHITECTURE_STATUS}}โ Conditional per above
Write to
.bmad/bmm-workflow-status.yamlusing Write tool
Step 5.5: ZenHub Integration Setup (Optional)#
Ask user:
" Would you like to set up ZenHub integration? "
ZenHub integration enables:
- Automatic issue creation (Epics, Stories, Sub-tasks)
- Pipeline management (Sprint Backlog โ In Progress โ Done)
- Sprint assignment and tracking
- Sub-task decomposition for complex stories
Options:
1. Yes - Set up ZenHub integration
2. No - Skip (can be configured later)If yes:
Check MCP availability:
- Attempt
helpers.md#Load-ZenHub-Context - If MCP available:
- Auto-discover workspace IDs
- Auto-generate
bmad/zenhub-conventions.yamlfrom MCP data - Log: "โ ZenHub conventions auto-generated from workspace"
- If MCP not available:
- Copy template:
${CLAUDE_PLUGIN_ROOT}/references/templates/zenhub-conventions-template.mdโbmad/zenhub-conventions.yaml - Log: "โ ZenHub MCP not available. Template created โ fill in IDs manually or run again when MCP is configured."
- Copy template:
- Attempt
Ask about Sub-tasks:
" Does your ZenHub workspace support Sub-tasks (Task issue type)? " Options: 1. Yes - Enable sub-task decomposition 2. No / Not sure - Disable (can enable later)Update project config (
bmad/config.yaml):zenhub: conventions_file: " bmad/zenhub-conventions.yaml " sub_tasks: enabled: {true|false} auto_generate: false min_story_points: 5
If no: Skip โ ZenHub integration can be configured later by:
- Creating
bmad/zenhub-conventions.yamlfrom template - Adding
zenhub:section tobmad/config.yaml
Step 6: Confirm Initialization#
Display success message:
โ BMAD Method v6 initialized successfully!
Project Configuration:
Name: {project_name}
Type: {project_type}
Level: {project_level}
Files Created:
โ bmad/config.yaml
โ .bmad/bmm-workflow-status.yaml
โ Directory structure
โ bmad/zenhub-conventions.yaml (if ZenHub setup chosen)
Workflow Path for Level {project_level}:
{Display path based on level - see Step 7}
Recommended Next Step:
{Recommend workflow - see helpers.md#Determine-Next-Workflow}Step 7: Recommend Workflow Path#
Based on project level, show recommended path:
Level 0:
Phase 1 (Optional): /product-brief
Phase 2 (Required): /tech-spec
Phase 4 (Required): /create-story โ /dev-storyLevel 1:
Phase 1 (Recommended): /product-brief
Phase 2 (Required): /tech-spec
Phase 4 (Required): /sprint-planning โ storiesLevel 2+:
Phase 1 (Recommended): /product-brief
Phase 2 (Required): /prd
Phase 3 (Required): /architecture
Phase 4 (Required): /sprint-planning โ storiesStep 8: Offer to Start#
Ask user:
" Would you like to start with the recommended workflow? "
If Phase 1 recommended: " I can help you create a product brief. "
If Phase 2 required: " I can help you create a [PRD/tech-spec]. "If yes: Hand off to appropriate agent (Analyst for brief, PM for PRD/tech-spec) If no: "Run /workflow-status anytime to check your progress."
Helper References#
- Load global config:
helpers.md#Load-Global-Config - Load template:
helpers.md#Load-Template - Apply variables:
helpers.md#Apply-Variables-to-Template - Save document:
helpers.md#Save-Output-Document - Determine next:
helpers.md#Determine-Next-Workflow - Load ZenHub context:
helpers.md#Load-ZenHub-Context
Error Handling#
If BMAD already initialized:
- Inform user
- Offer to reinitialize (overwrites config)
- Offer to check status instead (
/workflow-status)
If directory creation fails:
- Show error
- Check permissions
- Suggest manual directory creation
If template missing:
- Use inline fallback template
- Log warning
- Continue initialization
Notes for LLMs#
- Use TodoWrite to track 8 steps
- Create directories with
mkdir -p(safe for existing dirs) - Be clear about conditional requirements based on level
- Present options as numbered menus for clarity
- Use Write tool for config/status files
- Maintain BMad Master persona (helpful, organized, clear)
- Don't skip steps - initialization must be complete
Remember: This is the entry point for BMAD. Set users up for success with clear explanation of their path forward.