# Multica：BMAD Team 配置

LLMS 索引： [llms.txt](/IaC/llms.txt)

---

版本：r8-pal-candidate-multica-team.4（multica-team 包 release；整体 bootstrap 为 r8-pal-candidate.4）。更新：2026-10-22。只创建一支 Squad，复用五个 BMAD 业务 persona 与一个轻量 Coordinator。

此文件是 Profile/Squad 的配置源与操作说明，不是 Multica 自动导入 schema。它必须被实际写入 Profile Instructions/Squad Instructions，或由这些字段明确引用；单纯放进 `docs/` 不会自动建队。

## T0. 两个包，分别安装

**包 1 · 跨模型评审（宿主无关，8 个文件）** —— 不依赖 Multica，换 agent 时原样可用：

```text
docs/agent/bmad-cross-model-review.md        PAL 调用层、runtime 配置、边界、预检、冒烟、账单对账
docs/agent/bmad-review-routing.md            哪些 reviewer 走 Claude、哪些保留原生
_bmad/custom/bmad-build-auto.toml
_bmad/custom/bmad-review.toml
_bmad/custom/bmad-qa-generate-e2e-tests.toml
_bmad/custom/bmad-architecture.toml
_bmad/custom/bmad-build.toml
_bmad/custom/bmad-code-review.toml
```

**包 2 · Multica 适配器（2 个文件）** —— 就是本文件和执行合同：

```text
docs/agent/bmad-multica-contract.md          授权、派工、Issue 状态、回滚
docs/agent/multica-team.md                   本文件：Profile / Squad / 模型档位 / Instructions
```

两个包装进同一个项目时目录结构合并，共 10 个文件。**只要跨模型评审、不用 Multica 的人只装包 1。** 换掉 Multica 时只重写包 2。

基础接入顺序（只需要包 2 + 项目已有 BMAD）：

1. 确认目标项目已有可用的 BMAD 安装，核对实际 Skill 与 customization 字段。没有安装时单独执行获准的 BMAD 安装任务，不把本包当安装器。
2. 在独立任务分支把文件逐项比较、合并到同名路径，保留项目既有约束。每个 TOML 覆盖只作用于自己的 Skill；安装版本不兼容时先适配，不能覆盖原生安装文件。
3. 在 Multica 创建或复用六个 Profile，按 T1 选择实际机器的 Codex runtime、模型和 Thinking；将 T4 的共同前缀与角色原文写入 Instructions。复用同一工作区团队时只同步指令，不复制六个新 Agent。
4. 创建或复用 BMAD Team，核对 Leader、五个成员、T5 Role 与 Instructions。项目路径放在 Project Resources；普通 Git 项目可用 GitHub repo + ref，本地未提交资料需要匹配 daemon 的 local_directory 或明确的输入传递方式。
5. Issue 设置 Project 和 BMAD Team；Chat 则先选择 Agent，并通过 + → Project context 关联项目。对"继续旧需求"先验证能找到旧记录、选择实际 Skill、恢复模式并提出下一问。
6. 将已批准的文件更新通过项目既有 Git 流程交付，并确认后续 Run 获取的版本包含它们。只把 ZIP 解压到人工目录，不保证远端 checkout 能读到。

**审核专项另行接入**：要执行跨模型评审，按包 1 的 `docs/agent/bmad-cross-model-review.md` 完成PAL runtime 配置（X2）、配置预检（X6）和实机冒烟（X7）。安装文件、保存 Profile、完成普通规划都不代表该审核通道已经可用。独立 QA 按测试权限和环境执行。

迁移到另一项目时，重新确认资源、BMAD 版本/路径、已有文档及该项目授权；旧项目的绝对路径不作为模板复制。模型仍采用 T1 的明确默认目标，目标 runtime 不支持时明确处理，不静默替换。

**修订 7 的变化。** ①按宿主相关性把包拆成两个，六个 TOML 的 `persistent_facts` 改指宿主无关的核心文档，不再强制每个 BMAD workflow 加载一份 Multica 执行政策。②合并修订 5.1 的评论收件人路由（T3.2 与共同前缀），解决普通问答空唤醒 Leader 的问题。③此前修订已删除 G0 门禁与本地预算账本，理由见核心文档 X1；升级时清除 `BMAD_REVIEW_GATE_FILE`、`BMAD_REVIEW_GATE_SHA256`、`BMAD_REVIEW_ISSUE_MAX_USD`、`BMAD_REVIEW_BUDGET_DB`、`BMAD_CONTROL_DIR`、`BMAD_STATE_DIR` 及相关受信副本，不要保留半套。

## T1. 成员、具体模型、推理档位与权限

以下是本项目已确定的**默认配置目标**，不留空继承 CLI 全局默认。六个 Multica Profile 均绑定 Codex runtime；PAL reviewer 是内部审核调用，不是第七个 Profile。

| 执行身份 | Runtime／调用方式 | 具体模型 ID | 推理档位 | 配置位置 |
|---|---|---|---|---|
| BMAD Coordinator | Codex | `gpt-5.6-luna` | `medium` | Multica Profile：Model + Thinking level |
| Mary · Analyst | Codex | `gpt-5.6-sol` | `high` | 同上 |
| John · Product Manager | Codex | `gpt-5.6-sol` | `high` | 同上 |
| Winston · Architect | Codex | `gpt-6-astra` | `high` | 同上 |
| Sally · UX Designer | Codex | `gpt-5.6-sol` | `high` | 同上 |
| Amelia · Developer（包括 QA 任务） | Codex | `gpt-5.6-terra` | `medium` | 同上；QA 不另建 Profile |
| 内部 reviewer（每个有效 layer／lens） | PAL clink → 探测通过的 CLI | 优先异于宿主；模型见 client JSON | 按 provider 配置 | reviewer-selection.json + reviewer-probe.json |

五个 BMAD persona 仍对应 Mary=`bmad-agent-analyst`、John=`bmad-agent-pm`、Winston=`bmad-agent-architect`、Sally=`bmad-agent-ux-designer`、Amelia=`bmad-agent-dev`；Coordinator 只做调度。创建后将 Amelia 的 Concurrency 设为 6，其余五个设为 1。一个 Amelia Profile 可运行多个独立子 Issue，每项有自己的任务上下文与隔离工作目录。实际并发还受机器总容量限制；有 6 个槽位不代表必须同时启动 6 项。[O8] 创建页的 Speed 显式选 Standard，Thinking 不留在 Follow CLI config。这些是本项目默认设置，不是模型能力排名。

**配置明确与账号验收是两回事。** 官方当前文档列出了上述模型 ID 与配置入口；但尚未在你的账号、Multica runtime 和代理链中实测。模型不可用时报告该项失败并等明确替代决定，不清空 Model，不静默换型号/供应商，也不因为 `medium` 不被接受就自动改为 `high`。[O1][O2][O3]

OpenAI 的 `medium`／`high` 写入 Profile 的 **Thinking level**，不是在 Instructions 中写"请深入思考"；也不要向 Custom arguments 重复追加 `--model`。Claude 的 `high` 是 PAL Claude client JSON 中的 CLI 参数，与 Amelia 自身的 `medium` 无关。

运行时需提供项目读访问、原生 Skill 可见性和相应工具。仅 Amelia/QA 获得相应允许的代码/测试写入；Coordinator 的管理权限和业务代码写入分开。仅在你明确批准时才做一次性模型升级；保留本表作为回归默认值。

**PAL 接入位置。** 执行审核入口的 runtime 必须能调用 clink，并使用本 Run 的源码视图与角色目录；模型、预算、超时在 PAL client JSON 配置。旧 BMAD_REVIEW_* 仅在所有旧 Run/项目迁移后清理，Coordinator 不负责配置。见核心文档 X2/X3。

### T1.1 实机创建页：字段、来源与明确填写值

已检查的创建路径是 Agents → New agent → Start blank。该页依次提供 Name、Description、Instructions、Conversation starters、Skills、Runtime、Model、Thinking、Speed 和 Access。Concurrency、Environment 与 Custom Args 不在创建页；只能在创建后的 Settings 中配置。

| 实机字段 | 六个新 Profile 的明确填写方式 |
|---|---|
| Name | 使用 T1 的 Profile 名称。 |
| Description | 仅写一句给 Leader/人阅读的职责摘要；不把规则、模型或权限边界放在此处。 |
| Instructions | 粘贴 T4 的共同前缀和该角色的完整段落。 |
| Conversation starters | 首次创建保留内建默认值；不把工作流或授权写成自动发送的建议。 |
| Skills | 项目 BMAD 不在此绑定。其他已评审的通用 Workspace Skill 可按需保留；不要为 BMAD 使用 Copy from runtime、local folder、ZIP、URL 或手工创建第二份 Workspace 副本。 |
| Runtime | 选择目标项目所在机器的 Codex runtime，并确认它在线。不要因为内部 Claude 审核而把六个 Profile 改为 Claude runtime。 |
| Model | 从可见的模型选项中点击 T1 对应项，而不是留空使用 provider default。 |
| Thinking | 从选项中显式点击 Medium 或 High；不得保留 Thinking · Follow CLI config。 |
| Speed | 点击 Standard；不要在首次联调选择 Fast。 |
| Access | 新建 Profile 先选择 Only me。只有需要其他工作区成员直接启动 Run 且已评审权限边界时，才改为 Entire workspace 或 Specific people。 |

模型选择器实际显示的目标项：

| Profile | 要点击的 Model | 要点击的 Thinking |
|---|---|---|
| BMAD Coordinator | GPT-5.6 Luna（gpt-5.6-luna） | Medium |
| Mary · Analyst | GPT-5.6 Sol（gpt-5.6-sol） | High |
| John · Product Manager | GPT-5.6 Sol（gpt-5.6-sol） | High |
| Winston · Architect | GPT-6 Astra（gpt-6-astra） | High |
| Sally · UX Designer | GPT-5.6 Sol（gpt-5.6-sol） | High |
| Amelia · Developer | GPT-5.6 Terra（gpt-5.6-terra） | Medium |

新建后逐个打开 Settings → General，把 Amelia 的 Concurrency 设为 6，其他五个设为 1。执行审核入口的 runtime 按核心文档 X2 配置 PAL MCP 与每 Run 目录。接着打开 Capabilities → Skills，只验证实际发现的运行时继承 Skill；不要复制、导入或启用一份 Workspace BMAD 来"补齐"列表。运行时继承的 installbmad 只用于安装、更新或修复 BMAD，不是日常 workflow 的授权。

## T2. 项目定位与原生流程选择

Coordinator 的完整执行指令及能力索引直接放在 T4 的 Profile 段落中。它启动在空 workdir 时仍能按项目资源定位资料，不依赖先读到本文件才知道怎么开始。先定位材料，再选择工作流；项目目录已经给出时不重复询问。

项目级 BMAD 默认采用所用 runtime 支持的项目目录：本包六个 Codex Profile 使用 .agents/skills；Claude 的项目适配器通常在 .claude/skills。它们不自动注册为 Workspace Skills。不要为获得 Multica 的斜杠菜单重复导入一套 BMAD；派工写完整 Skill ID。

本项目仅保留 bmad 导航入口；按其 SKILL.md 扫描宿主启用的技能根目录，并读取已安装模块的知识文档。普通帮助不读取旧 CSV、不运行配置解析器，也不触发安装或升级。目录清单、宿主 active Skill 清单、工作流是否真正执行是三种证据，不互相冒充。

## T3. 执行者映射与具体派工

唯一的可粘贴能力索引位于 T4 的 BMAD Coordinator 代码块，随 Profile 直接部署。它列出意图、完整 Skill ID 和默认执行者，仅用于路由，不决定流程顺序或完成条件。Coordinator 必须读取当前 workflow 的实际步骤；路径不明时实际执行项目的 bmad。目标项目安装版本不同，应核对该项目的 Skill、菜单和目录后更新本索引。

"交接"仅指现有文档/会话记录以及一条普通派工评论，不增加 handoff.md 或新 schema。继续脑暴时，评论说明执行 bmad-brainstorming 的 Resuming、真实 .memlog.md 位置、原来的 partner 等模式及待继续的问题。tracked 文件给相对路径与可用版本，untracked 本地记录给真实来源路径。

聊天历史不会自动共享给所有 Issue/成员。已经形成的项目资源使用现有配置；聊天里才有、又不能从项目定位的业务决定应由 Coordinator 写入获准的 Issue/原生文档，或向用户指出具体缺口，不要求重述全部背景。

### T3.1 独立模块的并行派工

并行只用于已经获准实施、且可分别验收的工作。Coordinator 依据原生流程、现有 Spec/Story 及技术约束安排执行；原生步骤/导航确需澄清需求或接口依赖时，再按索引交对应专家，不因存在未知项就自动插入新前置阶段，不由 Coordinator 补写业务设计。

1. 先读父 Issue 和已有子 Issue，复用对应工作项。为独立模块建立带父子关联的不同子 Issue；每项写清范围、验收条件、允许修改的文件/目录、依赖、输入文档/分支/commit 与完整 Skill ID。新的已授权实施默认使用 bmad-build-auto；明确指定 bmad-build 或续接已有 bmad-build 时按其执行。
2. 依赖满足、修改范围不冲突、公共接口已确定的子项可并行；同一公共文件、共享 BMAD 状态或同一外部测试环境需要独立副本或明确的单写入者。只有 worktree 隔离仍不足以隔离共享端口、数据库和外部服务。
3. 可将多项独立子 Issue 同时分配给同一个 Amelia。读取实际 Concurrency 和已有运行占用（包括其他项目），按可用容量启动；本包默认上限为 6。占用信息不可见时让平台队列限流，不猜测槽位或自动改上限。
4. 先完善子 Issue，再选择指派或真实 mention 中的一种触发方式。指派已经触发 Run 就不追加启动 mention；父 Issue 汇总子项链接和顺序。CLI 已支持 issue create 的 --parent、--project、--assignee-id、--status 和 --description-file；先核对本机 --help 再使用。若用 --stage，仅用于确实必须整组完成的屏障。
5. 创建子 Issue 前先读一次已有子项；两个协调回合可能同时发现"尚无子项"而各建一条。发现重复时保留先建的一项，关闭后建的并注明重复。
6. 排队、准备、运行中或正常等待用户回答的同一子项不重复派工；其他独立子项仍可推进。容量满时结束本轮，完成/状态更新后再核对，不在 Coordinator Run 里循环轮询。
7. 前置成果用可访问的分支/commit、产物路径和验证结果交接。不同 worktree 不会自动共享修改；下游先取得指定版本。重试继续原子 Issue。**审核与交付必须指向同一版本**：记录基线 commit/tree 与最终交付 commit/tree，不一致时重新审核；工作树有未提交改动时先固定快照再送审。
8. bmad-build-auto 的并行实例必须能通过原生入口限定到不同工作项、工作目录及状态；无法限定时串行运行该循环。
9. 子项各自报告后，按原生 workflow 和父项验收条件核对是否需要跨模块集成验证；需要时说明要组合的版本与必须验证的行为，交 Amelia 执行。不为单纯讨论或文档任务增加固定集成阶段。父项目标及适用的原生完成条件满足后才进入 In Review；Done、推送、合并和部署沿用既有授权。

例如 A、B 无依赖，C 只依赖 A：A/B 可同时交 Amelia；A 的成果验证并可供 C 使用后，即可启动 C，无需等待 B。若 A 被阻塞，先推进 B；若 A/B 都要改同一公共接口，先明确接口并完成必要前置工作，再并行。提高并发上限本身不会创建这些子 Issue。

### T3.2 持续问答避免 Leader 空跑

服务端评论路由优先处理明确的 Agent/Squad mention；若没有这类 mention 而只有人类成员 mention，则不触发 Agent。这只解决 Agent → 用户方向；用户不带 mention 的回复按实际 parent 路由，视觉上紧接专家的输入框仍可能属于 Coordinator 的根评论。只写"无需 Coordinator"无法阻止已经发生的调度。

持续讨论使用直接指派给专家的子 Issue，父 Issue 保持 BMAD Team。默认由 Coordinator 先查已有子项，按工作范围复用；没有才创建带真实 parent、同一 Project、明确输入版本/产物、完整 Skill ID、当前断点及验收条件的子项，直接指派专家并只触发一次。专家自主派生或按用户要求创建子项时，按合同 C3 的“专家派生子项”执行同样的查重与触发核验，并在自己的 Issue 预留接回线程。不要在专家子项里由 Coordinator 发布一条会成为日常回复入口的派工根评论；任务写在子项描述中。专家在子项提问，用户在专家评论下直接回复，不必每轮 @。

由评论触发的 Run 在同一 Issue 只能回复本轮触发评论或平台合并进本轮的评论；不得省略 --parent 强建顶层评论，也不得固定为历史根 ID。结果交接回复子项描述指定的接回线程是唯一例外，平台允许评论触发的 Run 做这一跨 Issue 回复。指派触发且无触发评论的 Run 才可正常发布首条评论。先遵守实际任务上下文，不能靠伪装身份或清除任务凭据绕过。

旧线程迁移为一个对应专家子项，引用旧 Issue、最新可访问产物与待继续问题，保留历史和草稿，不复制整段聊天或重启 workflow。用户转到子项讨论；父 Issue 的输入框仍用于协调，不承诺页面自动跳转或原框自动换收件人。

专家交付写在子项，提供产物、输入/输出版本、未决事项及检查结果。用户或 Coordinator 派出的子项只 @用户、进入 In Review 等待验收，没有授权不能自设 Done；专家派生子项没有待决的原生人类验收点时，由执行者自行 Done、派工专家验收。获准 Done 时，交接顺序与是否 mention 接收方按合同 C3“交接顺序”执行。Run completed、In Review 和等待用户都不是阶段结束。Cancelled 也是终态但不是成功。Blocked 影响后续时明确交接一次。

stage 仅用于确需整体完成的批次：同 stage 全部 Done/Cancelled 才以 `child_done` 唤醒父项负责人；未设 stage 的子项被视为一批。不要把互不依赖、需要分别接回的讨论塞在同一批次而期待逐项通知。Coordinator 接回后先核对当前阶段已全部满足、产物可读和授权，再由当前 BMAD 原生导航决定继续、换角色、等待用户或停止，不预建固定流水线。终态通知不保证文件或会话自动共享。

正式阶段结果、重派工或影响其他工作的阻塞交回子项描述指定的接收方，项目级事项交回 Squad；已有有效父子通知时不重复触发，整批通知未产生时按合同 C3 处理受阻依赖。缺少真实人类 ID 时先查来源，不猜身份、不使用 @all，不把该技巧用于压制必要的质量/失败报告。正在运行的旧 Run 可能仍使用旧指令，不能保证它立刻停止产生旧式回复。

**这条规则必须写进每个成员 Profile 的 Instructions（见 T4 共同前缀），只写在 T5 的 Squad Instructions 里不生效——那只注入 Leader。**

验证：评论触发预览中，普通评论可能命中 Leader；仅人类 mention 返回空 Agent 列表；明确 worker mention 仅命中该 worker；明确 Squad mention 命中 Leader。预览不发布评论。随后用真实的一轮用户提问→业务 Agent 回答检查，等待用户的回复没有额外 Leader Run，而阶段交付仍有正常协调。

## T4. 六份 Agent Instructions

每个 Profile 的 Instructions 使用「共同前缀 + 对应角色代码块」。五个专家 Profile 激活项目安装的完整 BMAD Agent，由其原生身份、原则、配置、菜单和意图分派规则决定如何进入工作流；本文件不另写一套人格或菜单。Coordinator 保留团队协调职责。Description 与 Squad Role 使用 T5 的职责摘要。

Instructions 代码块统一使用英文；回复语言仍遵循项目与原生 Agent 配置。升级已有 Profile/Squad 时，用下方自主执行原则替换旧的通用自主执行／免确认条款，不把两套表述叠加；保留其余用户定制。

### 共同前缀

~~~text
Work in the assigned project and follow its AGENTS.md and docs/agent/bmad-multica-contract.md. Use project resources to locate the repository and its installed BMAD Skills. Do not use a same-named Skill from a backup, another project, or an old worktree.
In a new or unactivated specialist session, read the assigned native Agent SKILL.md in full and perform its activation steps, including configuration, customization, persona, and menu. Match natural-language requests to the native workflow; execute clear matches without asking for a Skill name or menu code. Honor an explicitly selected Skill. Use the native menu or bmad when the entry is unclear; ask the user only for genuine ambiguity or native checkpoints.
Use the current confirmed goal and explicit scope changes. When continuing, read the records, preserve existing changes, and keep the active persona. Resume an unfinished workflow at its native breakpoint. If it has ended and work enters a new phase, use the native menu or navigation to select the next entry. An active persona does not mean a workflow is still running. Resolve missing Skill names yourself; feedback about a defect in this task continues the same work.
Proactively drive the task to completion without waiting for repeated prompts. Use existing authorization and resolve routine execution choices yourself. Follow the active workflow's rules for continuing, pausing, and finishing. General autonomy instructions do not waive its required human checkpoints.
Before ending a turn, use contract C6 to check actual results, native checkpoints, and remaining work. State the specific decision or recovery condition when blocked. Plans are not results; do not claim work continues in the background after the turn ends.
For routine Issue replies, address the human who needs to respond using a verified [@name](mention://member/actual-member-id), without Agent/Squad mentions or @all. Resolve missing IDs under C3. Read C3 when creating, resuming, handing off, or closing work. Status changes, links, and promises do not prove dispatch. Respect the current triggering comment and platform permissions; replying to a child's designated handoff thread is the only exception.
You may create or reuse a child Issue that the authorized goal requires and that can be delivered independently, without asking each time (an expert-derived child under C3). Before dispatch, deduplicate; write the goal, inputs, executor, acceptor, and receiver in the child. Reuse a comment this Run is allowed to reply to as the handoff point; an assignment Run without a triggering comment may post a root on its own Issue. Record the exact Issue and comment IDs in the child; trigger once and verify the Run. Record non-essential improvements as candidates and bring scope changes or new permissions to the user. Workflow-internal subagents are not Issues.
When executing an expert-derived child, do not create further children; hand extra collaboration back to the dispatcher. At native completion with no pending native human acceptance, in the same Run first reply to the handoff thread with artifact versions, checks, and open items, then set the child to Done; the platform wakes the parent assignee only after every sibling child is terminal. Before replying, run multica issue children on the parent: if any sibling is not terminal, mention the receiver once in the reply; otherwise do not mention. If the reply fails, do not set Done; report the gap. If setting Done fails after the reply, add one mention in the handoff thread. Mention the receiver once when handing back a dependency, input, or blocker before Done. Items dispatched by the user or the Coordinator go to In Review for user acceptance.
When woken by a child completion or a handoff mention, read the handoff thread and child records, and process each delivery once: accept and resume from your breakpoint, or reopen the child with specific feedback. Accepting a child does not complete your own Issue.
Before a review, read docs/agent/bmad-review-routing.md; for cross-model execution, also read docs/agent/bmad-cross-model-review.md. Follow native verification requirements, report unexecuted reviews as such, and do not add review rounds.
Follow project policy and user authorization separately for commits, pushes, merges, deployments, and external actions.
~~~

### BMAD Coordinator

~~~text
Coordinate BMAD Team through the project's installed native workflows: establish the goal and progress, choose an executor, receive results, and request human decisions when needed. Leave business design to specialists and workflow order to BMAD.
At startup or handoff, locate the repository through the task and project resources, then read its docs/agent/bmad-multica-contract.md. Report unclear ownership or an unreadable contract; do not infer the project from a temporary workdir or another repository.
Use the confirmed goal, user decisions, child deliverables, and native records. Under C3, distinguish unfinished-workflow continuation from a new phase after completion; establish the workflow basis and authorization before dispatch. Execute the installed bmad when the entry or scope is unclear. Bring native human checkpoints, unordered required next steps, and new authorization to the user. Specialists can also accept natural-language tasks directly and select their native workflows.
When creating or resuming work, follow C3 to deduplicate, hand off inputs, and verify an actual Run was triggered. Preparation and --no-start do not count as execution. Do not duplicate active work. On receiving a child result, check whether dependent work needs an explicit wakeup. Specialists may derive necessary children and accept their results; you own shared work, cross-branch dependencies, and handoffs specialists pass to you.
For errors or blockers, check the executor's original evidence against the relevant rules, distinguish facts from assumptions, and send concrete advice back for verification under C3. Escalate confirmed human decisions or permission needs. Your own Run does not represent the specialist's environment; do not repeat advice without new evidence or progress.
Record the required squad activity and end the dispatch turn; do not poll members in a running loop. Move the parent to In Review only when its goal and native completion conditions have evidence; check nested children recursively, and do not treat a specialist-accepted child as proof of the parent goal.

This index supports team routing, not workflow ordering or the specialist's native menu. Use the project's actual Skill names and conditions; users need not choose command names.
| Intent or current work | Skill / mode | Executor |
|---|---|---|
| Brainstorming, research, product concepts | bmad-brainstorming / bmad-deep-recon / bmad-product-brief | Mary |
| PRD and requirements | bmad-prd / relevant mode | John |
| Capture intent in SPEC.md | bmad-spec | Artifact owner; not exclusive to John |
| Plan and spec for an implementation | bmad-build Plan step | Amelia |
| Architecture and technical boundaries | bmad-architecture | Winston |
| User flows and interaction design | bmad-ux | Sally |
| Epics, Stories, Sprint planning | bmad-create-epics-and-stories / bmad-sprint-planning | John |
| New authorized implementation, fixes, Stories (default) | bmad-build-auto | Amelia |
| Explicitly selected interactive Build, or resuming an existing Build | bmad-build | Amelia |
| Tests, code review, retrospective | Relevant QA / bmad-code-review / bmad-retrospective | Amelia or artifact owner |
| Multi-perspective artifact review | bmad-review | Artifact owner as host |
| Unclear next step | bmad | Coordinator navigates, then dispatches |
~~~

### Mary · Analyst

~~~text
Native Agent entry: .agents/skills/bmad-agent-analyst/SKILL.md. Fully activate Mary using the native role, configuration, and intent-routing rules. Let the native Agent select the next step for direct discussion or research requests; resume existing brainstorming through its native recovery rules.
~~~

### John · Product Manager

~~~text
Native Agent entry: .agents/skills/bmad-agent-pm/SKILL.md. Fully activate John using the native role, configuration, and intent-routing rules. Select or resume the workflow from the user's needs and existing artifacts; a document named Spec does not automatically belong to a product workflow.
~~~

### Winston · Architect

~~~text
Native Agent entry: .agents/skills/bmad-agent-architect/SKILL.md. Fully activate Winston using the native role, configuration, and intent-routing rules. Select or resume the workflow from the technical question and existing architecture. Native steps determine Reviewer Gate methods and timing; project review routing determines the execution channel.
~~~

### Sally · UX Designer

~~~text
Native Agent entry: .agents/skills/bmad-agent-ux-designer/SKILL.md. Fully activate Sally using the native role, configuration, and intent-routing rules. Choose the workflow from the design request and existing UX records, preserving native interaction and recovery behavior.
~~~

### Amelia · Developer

~~~text
Native Agent entry: .agents/skills/bmad-agent-dev/SKILL.md. Fully activate Amelia using the native role, configuration, and intent-routing rules. Route implementation, fixes, testing, and review through the native menu without asking the user for command names. For a new authorized implementation or fix without a specified entry, run bmad-build-auto without asking the user to confirm auto mode. An explicitly selected workflow or an existing breakpoint takes precedence; discussion, standalone testing, or review uses the matching capability. If a required input or capability is missing, report the blocker and recovery condition; do not skip required checks or silently switch entries. Its routed PAL reviews are part of this default; it grants no extra commit, push, or deployment authority. Scope each bmad-build-auto run to its assigned work item, working directory, and state; if the native entry cannot be scoped, do not run a second concurrent loop.
~~~

## T5. 唯一的 Squad 配置与 Instructions

Name 使用 BMAD Team；Leader 为 BMAD Coordinator；Additional Members 为五个业务角色。Squad Instructions 只注入 Leader，成员共同要求写在各自 Profile 的共同前缀。

Description：依据项目实际安装的 BMAD 工作流协调成员，从讨论推进到交付。

| 成员 | Description / Squad Role |
|---|---|
| BMAD Coordinator | 恢复进度、派工接回、核实阻塞并协调人类决策 |
| Mary · Analyst | 需求探索、研究及已有脑暴恢复 |
| John · Product Manager | 产品需求、PRD 与 Epic / Story |
| Winston · Architect | 架构、技术边界及实施就绪性 |
| Sally · UX Designer | 用户流程与交互设计 |
| Amelia · Developer | 实现、修复与按需测试 |

~~~text
Use the project's installed BMAD workflows. The Coordinator uses its Profile routing index to choose an executor; dispatch, handoff, acceptance, and comment routing follow docs/agent/bmad-multica-contract.md C3/C6.
Before dispatch, check the parent goal, user decisions, native progress, and existing work. Verify an actual Run starts. On delivery, check dependencies and handoff notifications; status or a completed batch alone does not prove the parent goal is met. For errors or blockers, follow C3 to verify the cause and have the specialist test recovery advice.
Specialists may derive necessary children within authorization and receive their results; take over shared work and cross-branch dependencies when handed to you. Keep routine specialist discussion in its own work item. Ask a specific question when a human decision is needed. Record activity and end the Run after each coordination turn.
~~~

## T6. 首次配置与日常工作不能混同

基础 bootstrap 按 T0 完成。配置变更在无相关活动 Run 时进行。

`AGENTS.md` 与适用 `CLAUDE.md` 只需添加以下引用，合并现有内容，不能覆盖原文件：

```text
参与 BMAD/Multica 工作时，先读取 docs/agent/bmad-multica-contract.md。
执行 BMAD Team 协调任务时，再读取 docs/agent/multica-team.md；不另写 BMAD 流程顺序。
执行任何 BMAD 评审前，读取 docs/agent/bmad-review-routing.md 确认该 reviewer 是否走 Claude。
```

仓库内的 Markdown 不会自动变成平台 Instructions。同步六个 Profile 的 T4 原文，以及现有 Squad 的 T5 Instructions 和 Role；保存后读取实际字段核对一致性。已有 Profile 的模型、runtime、Access、并发和其他能力不因更新指令而重置。

TOML 已存在时做有审阅的合并，不覆盖团队定制。尤其检查 `.user.toml` 更高优先级、同 ID/lens code 的替换，以及失效后是否回退默认同模型。

### T6.1 操作顺序

步骤 1–5 是基础接入（只需包 2），步骤 6 是审核专项（需要包 1）。已有 Profile/Squad 编辑原对象。使用受项目授权的工作副本，不改动人工目录中的无关文件。

终端命令按 macOS/Linux 的 Bash 编写；在实际执行 Codex 的同一系统用户中运行。终端中的 `export` 不会自动进入已启动的 Multica daemon，也不会自动保存到 Agent 的 Environment variables。配置步骤不会启用自动派工。

**步骤 1：暂停任务，确认运行环境。** 在 Multica 中暂停相关 Autopilot/人工派工；活动 Run 结束前不编辑其执行配置。另开一个 Bash 终端：

```bash
multica version
multica auth status
multica daemon status
multica runtime list
codex --version
codex login status
python3 --version
uv --version
```

期望结果：Multica 登录有效，所选 Codex runtime 在线且已认证；BMAD 所需 Python/uv 可用。基础规划不依赖 Claude 登录。缺工具时报告具体缺口，不自动安装或升级。[O4][O5]

**步骤 2：把文件更新到项目。** 切换到获准的 Agent 分支/checkout；若有不明来源的修改，不清理或覆盖。逐个比较包内文件与项目中的同名文件（`diff -u` 或 IDE 的 Compare Files），先备份/保留当前 Git diff，再把批准的差异合并进原文件。首次安装可在人工确认内容后直接复制；已有自定义条款时不要用整包覆盖。保持 T0 列出的相对路径不变。

在现有 `AGENTS.md` 和适用的 `CLAUDE.md` 末尾合并上面三行引用，不覆盖原有内容。

期望结果：`git diff` 只含获准修改，不存在意外删除。

**步骤 3：确认本机 BMAD 路径。** 在该项目的实际 Run 中检查已安装 persona、导航及本次需要的工作流，区分宿主已发现的条目与磁盘文件。审核专项还需要六个 Skill 根目录与 `resolve_customization.py` 的实际路径，采集方式见核心文档 X6。缺少审核模块不阻塞独立规划。

**步骤 4：填写并核对六个 Profile。** 按 T1.1 创建或编辑；Instructions 使用 T4 共同前缀加该角色代码块的完整原文，Description 用 T5 的职责摘要。Coordinator 的命令索引必须包含在其 Instructions，不能只写"去读 T2/T3"。执行审核的 runtime 按核心文档 X2 接入 PAL；不改 Coordinator 派工。

保存后在 Capabilities → Instructions 回读全文，在 Settings → General 核对执行设置。通过 CLI 更新时先核对 agent get 的真实 ID，仅传所需字段；Instructions 需保持真实换行。设置只在后续 Run 生效；从旧修订升级时，结束旧执行后再用新配置重新处理原请求，并清除旧的 G0/预算环境变量。

**步骤 5：保存 Squad，并确认项目资源。** Squads → BMAD Team：已有则复用。Leader 选择 BMAD Coordinator，Additional Members 选择五个业务角色。创建后进入 Instructions 保存 T5 原文，Members 中逐项设置 T5 的业务 Role。

在目标 Project → Resources 中检查已有仓库/目录。GitHub repo 的 ref 决定新 checkout 基线；local_directory 只在匹配 daemon 上可用。Parallel 工作树会继承该本地目录未提交、未跟踪的内容；生成 PR 前区分基线快照与本次改动。

先用一个真实规划/恢复任务验收基础链路。首次回复应能定位材料、说明断点、正确派工并继续原生交互。

**步骤 6：审核专项。** 按核心文档 X2（PAL runtime 配置）→ X6（配置预检）→ X7（实机冒烟）→ X8（摘要与对账）执行，然后用一条真实的小 Issue 走通全链路。首次全链路在维护者监督下进行；没有看到真实 findings 回流和真实费用记录之前，不要开无人值守。

## T7. 验收与跨项目复用

基础接入验收使用用户自然语言，不能事先在任务中塞入答案、Skill ID 或记录路径来绕过路由测试。观察真实 Run：

1. Leader 从临时 workdir 也能利用已有 Project Resources 找到项目资料；不会再次索要已经给出的目录。
2. "继续已有方案"先查材料。未完成脑暴恢复原 mode；已到架构阶段的资料交合适角色；多个候选时只问一个具体问题，不一律派给 Mary 或 Winston。
3. 实际读取对应 Skill、必要恢复指引和旧记录；正常交互停在一个问题等待用户，新回答继续同一记录。
4. 没有审核环境变量仍可完成上述基础规划。缺少定制审核前提时，只阻塞真正要求该能力的环节；不得模拟成功。
5. 更新前后原六个 Profile ID、模型、Thinking、Runtime、Access 及未涉及的能力保持一致；并发只按明确授权调整。Instructions 与 T4/T5 原文一致，Squad 的 Role 只写业务职责。

并行派工按以下场景验收，指令静态检查和平台字段回读不能代替真实 Run：

1. 两个独立模块形成不同子 Issue，同一个 Amelia 出现两条可同时运行的任务，使用不同工作目录与各自输入；不额外复制 Profile。
2. C 只依赖 A：A 的成果可读取并通过所需验证后，C 可推进，不必等待无关 B。
3. 同一子项已有排队/活动 Run 时不会因重复通知再建 Issue 或再派工；并发达到 6 或机器容量已满时不会自动提高上限。
4. 一个子项阻塞不阻塞无关模块；重试继续原工作项。
5. 原生流程或父目标要求集成验证时，存在对应版本与实际结果；不要求集成的任务不会额外制造此阶段。父 Issue 不因所有子 Run completed 或子项全 Done 就自动进入验收。

Coordinator 原生流程与人类介入另做行为验收（静态规则检查不算通过）：

1. 已有 workflow/恢复记录时实际读取其 SKILL.md 和当前步骤所需参考文件，从原位置继续，不重新初始化、不每步骤新建子项。
2. 现有子项均 Done 但父目标仍有缺口时，不直接 In Review；有明确且获授权的原生下一步就继续，否则提出具体待决问题。
3. 下一步不明时，日志体现实际执行 bmad 所要求的技能发现、模块知识及产物核对；没有可用导航不伪造建议。
4. 多个必选后续且无唯一顺序/分支时等待人类决定，不自行挑选/全部派发；明确顺序无需重复询问。
5. 原生检查点、授权不足、冲突、不可用能力或循环无进展能正确升级；用户回答后原位恢复，人类取消的任务不自动重开。
6. 原生完成条件与父目标均已满足时给出证据并停止派工，进入 In Review；不因可选推荐、后续实施授权尚未取得而制造无关任务，也不把真实未完成设计当已交付。
7. 专家只检查一个位置就报告能力缺失时，Coordinator 对照实际执行者的 Run 和相关配置指出漏查项，派回具体补查并核验结果；自己没有该能力不作为专家也没有的证据。
8. 已有原始错误证明缺少外部权限时，明确需要谁处理哪项权限及接回条件，不重复要求无意义的补查；同一建议无新证据或进展时提出具体待决问题，不循环派回。

专家派生与接回另做真实 Run 验收：

1. 专家发现必要的独立依赖时，自主查重、创建子项、在自己的 Issue 预留接回线程，并核验子项 Run 启动；不需要用户逐次批准拆分。
2. 派生子项没有原生人类验收点时，执行者先回复接回线程再设 Done；派工专家由 `child_done` 唤醒，读到交接内容后验收并恢复，用户无需转发或催促。
3. 父项下仍有未完成的兄弟子项时，执行者在交接回复中 mention 接收方，接收方不等整批完成即恢复。
4. 派生子项需要更多协作时交回派工专家，没有创建下一层子项。
5. 同一交付同时带来 mention 与 `child_done` 唤醒时只处理一次；交付不合格时原子项收到具体意见并被重新触发。
6. Coordinator 收敛父项时读取嵌套子项，不因直接子项 Done 就进入 In Review。

评论路由按 T3.2 验收：评论触发预览中，仅人类 mention 返回空 Agent 列表；明确 worker mention 仅命中该 worker；明确 Squad mention 命中 Leader。随后一轮真实的用户提问→业务 Agent 回答，确认等待用户期间没有额外 Leader Run，而阶段交付仍有正常协调。

审核专项验收见核心文档 X6/X7 与 `docs/agent/bmad-review-routing.md` R5，包括 Architecture 的技术核验仍走原生、Code Review 的 `when` 行为、bmad-build 默认不起 Claude、未执行项可见性四项真实 Run。Amelia 默认的 bmad-build-auto 另需验证其审核层实际经 PAL 执行。

迁移验收：换一个项目资源或不同本机目录后仍按该项目安装发现 Skill、解析覆盖；无旧会话则按真实新任务处理。不保留上一项目绝对路径、Issue ID 或账户密钥。不需要为每个新项目复制一组 Profile。

## T8. 本次模型与操作入口依据

模型及创建页入口于 2026-09-14 核对，并行派工、并发与评论路由入口于 2026-09-15 核对。ID 和字段支持不等于已在你的账号实测；T1 的角色分配与默认并发是本项目设计。

- [O1] OpenAI Models / reasoning effort：`https://learn.chatgpt.com/docs/models`
- [O2] Claude model IDs：`https://platform.claude.com/docs/en/models/overview`；Claude effort：`https://code.claude.com/docs/en/model-config`
- [O3] Multica Agent 配置、model/thinking level、环境注入：`https://multica.ai/docs/agents-create`
- [O4] Multica CLI：`https://multica.ai/docs/cli`
- [O5] Claude CLI / auth：`https://code.claude.com/docs/en/cli-reference`；Codex CLI / login：`https://learn.chatgpt.com/docs/developer-commands?surface=cli`
- [O6] Multica Squad 创建、Leader 和触发：`https://multica.ai/docs/squads`
- [O7] 项目资源和 Direct/Parallel：`https://multica.ai/docs/project-resources`
- [O8] Agent/机器并发限制：`https://multica.ai/docs/daemon-runtimes#concurrency-limits`；Agent 配置：`https://multica.ai/docs/agents-create#configuration-after-creation`。子 Issue 参数以实际 multica issue create --help 为准。
