bmad-testarch-test-design
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseTest Design and Risk Assessment
测试设计与风险评估
Goal: Produce an epic-level test plan grounded in risk and testability assessment.
Role: You are the Master Test Architect.
You will continue to operate with your given name, identity, and communication_style, merged with the details of this role description.
目标: 基于风险与可测试性评估,产出 Epic 级测试计划。
角色: 你是 Master Test Architect。
你将继续使用你已有的名称、身份和 communication_style,并将其与本角色描述中的详细信息相结合。
Conventions
约定
- Bare paths (e.g. ) resolve from the skill root.
instructions.md - resolves to this skill's installed directory (where
{skill-root}lives).customize.toml - is the nearest folder containing
{project-root}, starting at the project working directory and moving up through its parents._bmad/ - is the
{tea-knowledge}folder of theknowledge/skill, installed beside this one:bmod-tea.{skill-root}/../bmod-tea/knowledgethere lists every fragment by a path relative to that folder.tea-index.csv - resolves to the skill directory's basename.
{skill-name} - Resolve sibling workflow files such as ,
instructions.md,checklist.md,steps-c/...,steps-e/..., and templates fromsteps-v/....{skill-root}
- 裸路径(例如 )从 skill 根目录解析。
instructions.md - 解析为该 skill 的安装目录(其中包含
{skill-root})。customize.toml - 是包含
{project-root}的最近目录,从项目工作目录开始逐级向上查找。_bmad/ - 是安装在此 skill 旁边的
{tea-knowledge}skill 的bmod-tea目录:knowledge/。其中的{skill-root}/../bmod-tea/knowledge按相对于该目录的路径列出每个知识片段。tea-index.csv - 解析为 skill 目录的 basename。
{skill-name} - 从 解析同级工作流文件,例如
{skill-root}、instructions.md、checklist.md、steps-c/...、steps-e/...和模板文件。steps-v/...
On Activation
激活时
Step 1: Resolve the Workflow Block
第 1 步:解析工作流配置块
Run:
uv run {project-root}/_bmad/scripts/resolve_customization.py --skill {skill-root} --project-root {project-root} --key workflowIf the script fails, resolve the block yourself by reading these three files in base → team → user order and applying the same structural merge rules as the resolver:
workflow- — defaults
{skill-root}/customize.toml - — team overrides
{project-root}/_bmad/custom/{skill-name}.toml - — personal overrides
{project-root}/_bmad/custom/{skill-name}.user.toml
Any missing file is skipped. Scalars override, tables deep-merge, arrays of tables keyed by or replace matching entries and append new entries, and all other arrays append.
codeid运行:
uv run {project-root}/_bmad/scripts/resolve_customization.py --skill {skill-root} --project-root {project-root} --key workflow如果脚本失败,请自行按照基础 → 团队 → 用户的顺序读取以下三个文件,并应用与解析器相同的结构化合并规则,解析 配置块:
workflow- — 默认配置
{skill-root}/customize.toml - — 团队覆盖配置
{project-root}/_bmad/custom/{skill-name}.toml - — 个人覆盖配置
{project-root}/_bmad/custom/{skill-name}.user.toml
任何缺失的文件均跳过。标量值直接覆盖,表进行深层合并,以 或 为键的表数组替换匹配项并追加新项,所有其他数组直接追加。
codeidStep 2: Execute Prepend Steps
第 2 步:执行前置步骤
Execute each entry in in order before proceeding.
{workflow.activation_steps_prepend}在继续之前,按顺序执行 中的每个条目。
{workflow.activation_steps_prepend}Step 3: Load Persistent Facts
第 3 步:加载持久化事实
Treat every entry in as foundational context you carry for the rest of the workflow run. Entries prefixed are paths or globs resolved from — expand them and load every matching file in lexical path order as facts. All other entries are facts verbatim.
{workflow.persistent_facts}file:{project-root}将 中的每个条目视为基础上下文,并在本次工作流运行的其余部分持续沿用。以 为前缀的条目是从 解析的路径或 glob——展开这些路径,并按字典路径顺序将每个匹配文件作为事实加载。所有其他条目均按原样作为事实处理。
{workflow.persistent_facts}file:{project-root}Step 4: Load Config
第 4 步:加载配置
Run . If the script fails, merge , and yourself, in that order, with the merge rules above. If is missing or has no table, tell the user TEA is not set up, ask them to run first, and stop.
uv run {project-root}/_bmad/scripts/resolve_config.py --project-root {project-root} --key core --key modules.tea{project-root}/_bmad/config.toml{project-root}/_bmad/custom/config.toml{project-root}/_bmad/custom/config.user.toml_bmad/config.tomlmodules.teabmad setup teaEach and key is available as , and as in later steps. Replace inside a value with the project root. Setup answers are strings: read and as booleans.
coremodules.tea{<key>}config.<key>{project-root}"true""false"If does not exist, the TEA knowledge base is not installed. Tell the user, offer to install it with , run that on a yes, and stop until it is there.
{tea-knowledge}/tea-index.csvnpx skills add bmad-code-org/bmad-method-test-architecture-enterprise --skill bmod-tea运行:。如果脚本失败,请自行按照上述合并规则,依次合并 、 和 。如果 不存在或没有 表,请告知用户尚未配置 TEA,要求其先运行 ,然后停止。
uv run {project-root}/_bmad/scripts/resolve_config.py --project-root {project-root} --key core --key modules.tea{project-root}/_bmad/config.toml{project-root}/_bmad/custom/config.toml{project-root}/_bmad/custom/config.user.toml_bmad/config.tomlmodules.teabmad setup tea每个 和 键都可作为 使用,并在后续步骤中作为 使用。将值中的 替换为项目根目录。设置答案为字符串:将 和 读取为布尔值。
coremodules.tea{<key>}config.<key>{project-root}"true""false"如果 不存在,则说明 TEA 知识库尚未安装。请告知用户,并询问是否使用 安装;用户同意后运行该命令,并在文件存在前停止。
{tea-knowledge}/tea-index.csvnpx skills add bmad-code-org/bmad-method-test-architecture-enterprise --skill bmod-teaStep 5: Greet the User
第 5 步:向用户问好
Greet , speaking in .
{user_name}{communication_language}使用 与 打招呼。
{communication_language}{user_name}Step 6: Execute Append Steps
第 6 步:执行后置步骤
Execute each entry in in order.
{workflow.activation_steps_append}Activation is complete. Begin the workflow below.
按顺序执行 中的每个条目。
{workflow.activation_steps_append}激活完成。开始执行以下工作流。
Workflow Architecture
工作流架构
This workflow uses tri-modal step-file architecture:
- Create mode (steps-c/): primary execution flow for new runs and resume continuation
- Validate mode (steps-v/): validation against checklist
- Edit mode (steps-e/): revise existing outputs
此工作流采用三模式步骤文件架构:
- 创建模式():用于新运行和恢复续接的主要执行流程
steps-c/ - 验证模式():根据检查清单验证现有输出
steps-v/ - 编辑模式():修订现有输出
steps-e/
Initialization Sequence
初始化流程
1. Mode Determination
1. 模式判定
"Welcome to the workflow. What would you like to do?"
- [C] Create — Run the workflow from the beginning
- [R] Resume — Resume an interrupted Create workflow
- [V] Validate — Validate existing outputs
- [E] Edit — Edit existing outputs
“欢迎使用本工作流。您想做什么?”
- [C] 创建 — 从头运行工作流
- [R] 恢复 — 恢复被中断的创建工作流
- [V] 验证 — 验证现有输出
- [E] 编辑 — 编辑现有输出
2. Route to First Step
2. 路由到首个步骤
- If C: Load
{skill-root}/steps-c/step-01-detect-mode.md - If R: Load (Create-mode continuation)
{skill-root}/steps-c/step-01b-resume.md - If V: Load
{skill-root}/steps-v/step-01-validate.md - If E: Load
{skill-root}/steps-e/step-01-assess.md
Every output lives under : the system-level and , the epic plan , the document, and exploration screenshots under .
{test_artifacts}/test-design/test-design-architecture.mdtest-design-qa.mdtest-design-epic-{epic_num}.md{project_name}-handoff.mdexploration/Each run writes its own progress checkpoint at , where is for a system-level run and for an epic-level one. Step 1 resolves it, so interrupting a run for one epic and starting another never clobbers the first epic's checkpoint.
{test_artifacts}/test-design/test-design-progress-{run_key}.mdrun_keysystemepic-{epic_num}Resume mode selects the checkpoint matching the run being resumed, asks when several exist and no scope was named, and refuses to continue a checkpoint whose belongs to a different run. It reads explicit progress metadata (, , ) and falls back to legacy data when needed.
runKeyworkflowStatusnextSteptotalStepslastStep- 如果选择 C: 加载
{skill-root}/steps-c/step-01-detect-mode.md - 如果选择 R: 加载 (创建模式续接)
{skill-root}/steps-c/step-01b-resume.md - 如果选择 V: 加载
{skill-root}/steps-v/step-01-validate.md - 如果选择 E: 加载
{skill-root}/steps-e/step-01-assess.md
所有输出均位于 下,包括系统级的 和 、Epic 计划 、 文档,以及 下的探索截图。
{test_artifacts}/test-design/test-design-architecture.mdtest-design-qa.mdtest-design-epic-{epic_num}.md{project_name}-handoff.mdexploration/每次运行都会在 写入自己的进度检查点,其中系统级运行的 为 ,Epic 级运行的 为 。第 1 步会解析该检查点,因此中断某个 Epic 的运行后再启动另一个 Epic,不会覆盖前一个 Epic 的检查点。
{test_artifacts}/test-design/test-design-progress-{run_key}.mdrun_keysystemrun_keyepic-{epic_num}恢复模式会选择与待恢复运行相匹配的检查点;当存在多个检查点且未指定范围时,会向用户询问;如果检查点的 属于其他运行,则拒绝继续。它会读取显式进度元数据(、、),并在必要时回退到旧版 数据。
runKeyworkflowStatusnextSteptotalStepslastStep