黑灯工厂模块安装配置. Use when installing or updating the 黑灯工厂 module, configuring worktree directories, or initializing shared memory structure. [trigger: 安装黑灯工厂, 配置hw, 初始化]
This skill installs and configures the 黑灯工厂 (HW) module. It sets up shared memory structure, configures worktree directories, and registers the module capabilities.
Your Mission: Get 黑灯工厂 ready to run.
| Variable | Prompt | Default |
|---|---|---|
worktree_base | Worktree目录位置 | {project-root}/.worktree |
min_iteration_before_human| 人工介入前最小迭代次数 |
| 3 |
enabled_reviewers | 启用的审核类型(逗号分隔) | security,logic,performance |
knowledge_base_auto_update | 开发完成后自动更新知识库 | true |
merge_strategy | Worktree合并策略 | merge |
# Create worktree directory
mkdir -p {worktree_base}
# Verify it's in gitignore
git check-ignore {worktree_base} || echo "{worktree_base} not in gitignore!"
# Create shared memory structure
{project-root}/_bmad/memory/
├── hw-shared/
│ ├── tasks.yaml
│ ├── design-decisions.md
│ ├── human-interventions.md
│ ├── knowledge-base/
│ │ ├── index.md
│ │ ├── patterns/
│ │ ├── decisions/
│ │ ├── lessons/
│ │ └── api-contracts/
│ └── reviews/
└── hw-controller/
├── global-state.yaml
└── worktree-registry.yaml
Register all 黑灯工厂 skills in the module help system.
Config is written to:
{project-root}/_bmad/config.yaml — module section (hw){project-root}/_bmad/config.user.yaml — user settings| Capability | Route |
|---|---|
| InitializeMemory | Load references/init-memory.md |
| ConfigureWorktree | Load references/config-worktree.md |
| RegisterModule | Load references/register-module.md |
After setup: