Преглед на файлове

chore: 跳过 Epic 4-7 及 Story 8-8、12-13,优化工作流路径

更新内容:
- Epic 4(表单工具): 已跳过 - Playwright MCP + Page Object 已满足需求
- Epic 5(列表/对话框): 已跳过 - Page Object 已实现相关功能
- Epic 6(完整验证): 已跳过 - 已合并到 Epic 9
- Epic 7(文档体验): 已跳过 - 文档已完善
- Story 8-8: 已跳过 - Story 8-7 评估确认不需要扩展工具包
- Story 12-8: 已跳过 - Epic 12 核心目标已完成

跳过原因:
- Playwright MCP 提供强大的手动测试能力
- 业务 Epic (8-13) 已充分验证当前方案可行
- 工具扩展需求少于 3 个 (Story 10.12 结论)

Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
yourname преди 1 ден
родител
ревизия
4b50343e91

+ 2 - 2
_bmad-output/implementation-artifacts/sprint-status.yaml

@@ -143,7 +143,7 @@ development_status:
   8-5-delete-region-test: done              # 编写删除区域测试(15个测试全部通过,代码审查完成,所有HIGH和MEDIUM问题已修复)
   8-6-cascade-select-test: done          # 编写级联选择完整流程测试 (代码审查完成,所有HIGH和MEDIUM问题已修复)
   8-7-run-tests-collect-issues: done     # 运行测试并收集问题和改进建议 - 代码审查完成,所有CRITICAL和MEDIUM问题已修复
-  8-8-extend-utils-if-needed: backlog    # 扩展工具包(如需要)
+  8-8-extend-utils-if-needed: n/a    # 扩展工具包(如需要)⏭️ 已跳过 - Story 8-7 评估确认不需要扩展工具包,问题都是测试代码或业务代码问题
   8-9-region-stability-test: done         # 区域管理稳定性验证 ✅ 组件自动展开功能已实现并验证 (2026-01-12)
   epic-8-retrospective: optional
 
@@ -223,7 +223,7 @@ development_status:
   12-5-enterprise-mini-login: done      # 企业小程序登录测试 ✅ 完成 (2026-01-14) - 包含退出登录 Bug 修复
   12-6-talent-mini-page-object: done          # 人才小程序 Page Object ✅ 完成 (2026-01-14) - 两轮代码审查问题全部修复
   12-7-talent-mini-login: done     # 人才小程序登录测试 ✅ 完成 (2026-01-14) - 8/16 测试通过,已知问题已记录
-  12-8-user-permission-test: optional     # 用户权限验证(小程序无写操作)- 可选的安全验证测试
+  12-8-user-permission-test: n/a     # 用户权限验证(小程序无写操作)⏭️ 已跳过 - Epic 12 核心目标已完成,这是可选的安全验证测试,Playwright MCP 可支持手动验证
   epic-12-retrospective: optional
 
   # Epic 13: 跨端数据同步测试 (Epic E - 业务测试 Epic)

+ 29 - 0
_bmad-output/planning-artifacts/workflow-path.yaml

@@ -0,0 +1,29 @@
+# BMM Workflow Path Configuration
+# Generated: 2026-01-16T02:23:00Z
+# Project: 188-179-template-6
+
+project_level: 4
+project_type: 2
+workflow_mode: implementation
+
+# Recommended workflows for this project level
+recommended_workflows:
+  - sprint-planning
+  - create-story
+  - dev-story
+  - code-review
+  - sprint-status
+  - retrospective
+  - correct-course
+
+# Level descriptions:
+# Level 1 (analysis): Market research, technical research, domain analysis
+# Level 2 (planning): PRD, UX Design
+# Level 3 (solutioning): Architecture, Epics & Stories
+# Level 4 (implementation): Sprint Planning, Development, Code Review
+
+# Type descriptions:
+# 1 (greenfield): New project from scratch
+# 2 (brownfield): Existing codebase, consider existing patterns
+# 3 (migration): Migrating from another framework/platform
+# 4 (enhancement): Extending existing functionality

+ 252 - 0
_bmad/bmm/workflows/workflow-status/init/instructions.md

@@ -0,0 +1,252 @@
+# Workflow Init - Initialize BMM Project
+
+<critical>The workflow execution engine is governed by: {project-root}/_bmad/core/tasks/workflow.xml</critical>
+<critical>You MUST have already loaded and processed: {project-root}/_bmad/bmm/workflows/workflow-status/init/workflow.yaml</critical>
+<critical>This workflow initializes a BMM project by determining project level, type, and creating the workflow path configuration.</critical>
+
+<workflow>
+
+<step n="1" goal="Check if project is already initialized">
+  <action>Check if {workflow_path} exists</action>
+  <check if="file exists">
+    <output>项目已初始化!工作流路径配置文件已存在于: {workflow_path}</output>
+    <ask>是否要重新初始化项目?(y/n)</ask>
+    <check if="user response == 'n'">
+      <action>Exit workflow</action>
+    </check>
+  </check>
+</step>
+
+<step n="2" goal="Determine project level">
+  <output>
+## 确定项目级别 (Project Level)
+
+BMM 框架支持以下项目级别:
+
+**Level 1 - Analysis (分析阶段)**
+- 市场研究、技术调研、领域分析
+- 产出:Product Brief、Research Reports
+
+**Level 2 - Planning (规划阶段)**
+- PRD、UX Design
+- 产出:PRD Document、UX Design Specification
+
+**Level 3 - Solutioning (解决方案阶段)**
+- Architecture、Epics & Stories
+- 产出:Architecture Document、Epics & Stories
+
+**Level 4 - Implementation (实施阶段)**
+- Sprint Planning、Development、Code Review
+- 产出:Sprint Status、Story Files、Code Changes
+
+  </output>
+  <ask>请输入项目级别 (1-4):</ask>
+  <action>Validate input is 1, 2, 3, or 4</action>
+  <check if="invalid">
+    <output>无效的级别,请输入 1-4 之间的数字</output>
+    <goto step="2"/>
+  </check>
+  <action>Set {{level}} to user input</action>
+</step>
+
+<step n="3" goal="Determine project type">
+  <output>
+## 确定项目类型 (Project Type)
+
+请选择项目类型:
+
+**1 - Greenfield (全新项目)**
+- 从零开始的新项目
+- 无遗留代码约束
+
+**2 - Brownfield (现有项目)**
+- 在现有代码库基础上开发
+- 需要考虑现有架构和模式
+
+**3 - Migration (迁移项目)**
+- 从其他框架/平台迁移
+- 需要保持功能等价
+
+**4 - Enhancement (增强项目)**
+- 对现有项目进行功能增强
+- 基于现有架构扩展
+
+  </output>
+  <ask>请输入项目类型 (1-4):</ask>
+  <action>Validate input is 1, 2, 3, or 4</action>
+  <check if="invalid">
+    <output>无效的类型,请输入 1-4 之间的数字</output>
+    <goto step="3"/>
+  </check>
+  <action>Set {{type}} to user input</action>
+</step>
+
+<step n="4" goal="Map level and type to workflow path">
+  <action>Determine workflow path based on level and type</action>
+
+  <output>
+## 工作流路径配置
+
+根据项目级别和类型,推荐的工作流路径:
+
+  </output>
+
+  <check if="{{level}} == 1">
+    <output>
+**Level 1 - Analysis Phase**
+推荐工作流:
+1. create-product-brief - 创建产品简介
+2. research - 进行市场/技术/领域调研
+    </output>
+    <action>Set workflow_mode = "analysis"</action>
+  </check>
+
+  <check if="{{level}} == 2">
+    <output>
+**Level 2 - Planning Phase**
+推荐工作流:
+1. create-prd - 创建产品需求文档
+2. create-ux-design - 设计 UX 模式
+    </output>
+    <action>Set workflow_mode = "planning"</action>
+  </check>
+
+  <check if="{{level}} == 3">
+    <output>
+**Level 3 - Solutioning Phase**
+推荐工作流:
+1. create-architecture - 创建架构文档
+2. create-epics-and-stories - 分解 Epic 和 Story
+3. check-implementation-readiness - 检查实施准备情况
+    </output>
+    <action>Set workflow_mode = "solutioning"</action>
+  </check>
+
+  <check if="{{level}} == 4">
+    <output>
+**Level 4 - Implementation Phase**
+推荐工作流:
+1. sprint-planning - Sprint 规划
+2. create-story - 创建 Story
+3. dev-story - 开发 Story
+4. code-review - 代码审查
+5. sprint-status - Sprint 状态查询
+    </output>
+    <action>Set workflow_mode = "implementation"</action>
+  </check>
+
+  <ask>确认此工作流路径?(y/n/edit)</ask>
+  <check if="user response == 'edit'">
+    <goto step="2"/>
+  </check>
+</step>
+
+<step n="5" goal="Generate workflow path configuration">
+  <template-output>
+# BMM Workflow Path Configuration
+# Generated: {{date}}
+# Project: {project-root}
+
+project_level: {{level}}
+project_type: {{type}}
+workflow_mode: {{workflow_mode}}
+
+# Recommended workflows for this project level
+recommended_workflows:
+  </template-output>
+
+  <check if="{{level}} == 1">
+    <template-output>
+  - create-product-brief
+  - research
+    </template-output>
+  </check>
+
+  <check if="{{level}} == 2">
+    <template-output>
+  - create-prd
+  - create-ux-design
+    </template-output>
+  </check>
+
+  <check if="{{level}} == 3">
+    <template-output>
+  - create-architecture
+  - create-epics-and-stories
+  - check-implementation-readiness
+    </template-output>
+  </check>
+
+  <check if="{{level}} == 4">
+    <template-output>
+  - sprint-planning
+  - create-story
+  - dev-story
+  - code-review
+  - sprint-status
+  - retrospective
+  - correct-course
+    </template-output>
+  </check>
+
+  <template-output>
+# Level descriptions:
+# Level 1 (analysis): Market research, technical research, domain analysis
+# Level 2 (planning): PRD, UX Design
+# Level 3 (solutioning): Architecture, Epics & Stories
+# Level 4 (implementation): Sprint Planning, Development, Code Review
+
+# Type descriptions:
+# 1 (greenfield): New project from scratch
+# 2 (brownfield): Existing codebase, consider existing patterns
+# 3 (migration): Migrating from another framework/platform
+# 4 (enhancement): Extending existing functionality
+  </template-output>
+</step>
+
+<step n="6" goal="Save workflow path configuration">
+  <action>Write template output to: {workflow_path}</action>
+  <output>
+## 初始化完成
+
+工作流路径配置已保存到: {workflow_path}
+
+项目级别: Level {{level}}
+项目类型: Type {{type}} ({{project_type}})
+工作流模式: {{workflow_mode}}
+
+下一步建议:
+  </output>
+
+  <check if="{{level}} == 1">
+    <output>
+- 运行 `/bmad:bmm:workflows:create-product-brief` 创建产品简介
+- 运行 `/bmad:bmm:workflows:research` 进行调研
+    </output>
+  </check>
+
+  <check if="{{level}} == 2">
+    <output>
+- 运行 `/bmad:bmm:workflows:create-prd` 创建产品需求文档
+- 运行 `/bmad:bmm:workflows:create-ux-design` 设计 UX
+    </output>
+  </check>
+
+  <check if="{{level}} == 3">
+    <output>
+- 运行 `/bmad:bmm:workflows:create-architecture` 创建架构文档
+- 运行 `/bmad:bmm:workflows:create-epics-and-stories` 分解 Epic 和 Story
+    </output>
+  </check>
+
+  <check if="{{level}} == 4">
+    <output>
+- 运行 `/bmad:bmm:workflows:sprint-planning` 进行 Sprint 规划
+- 运行 `/bmad:bmm:workflows:sprint-status` 查看当前状态
+    </output>
+  </check>
+
+  <action>Report workflow completion</action>
+</step>
+
+</workflow>

+ 30 - 0
_bmad/bmm/workflows/workflow-status/init/workflow.yaml

@@ -0,0 +1,30 @@
+# Workflow Init - Initialize BMM Project
+name: workflow-init
+description: "Initialize a new BMM project by determining level, type, and creating workflow path"
+author: "BMad"
+
+# Critical variables from config
+config_source: "{project-root}/_bmad/core/config.yaml"
+output_folder: "{config_source}:output_folder"
+user_name: "{config_source}:user_name"
+communication_language: "{config_source}:communication_language"
+document_output_language: "{config_source}:document_output_language"
+date: system-generated
+implementation_artifacts: "{output_folder}/implementation-artifacts"
+planning_artifacts: "{output_folder}/planning-artifacts"
+
+# Workflow components
+installed_path: "{project-root}/_bmad/bmm/workflows/workflow-status/init"
+instructions: "{installed_path}/instructions.md"
+
+# Inputs
+variables:
+  level: "to-be-determined"
+  type: "to-be-determined"
+  workflow_path: "{planning_artifacts}/workflow-path.yaml"
+
+# Output file
+default_output_file: "{planning_artifacts}/workflow-path.yaml"
+
+# Standalone workflow
+standalone: true

+ 168 - 0
_bmad/bmm/workflows/workflow-status/instructions.md

@@ -0,0 +1,168 @@
+# Workflow Status - Lightweight Status Checker
+
+<critical>The workflow execution engine is governed by: {project-root}/_bmad/core/tasks/workflow.xml</critical>
+<critical>You MUST have already loaded and processed: {project-root}/_bmad/bmm/workflows/workflow-status/workflow.yaml</critical>
+<critical>This workflow answers \"what should I do now?\" for any agent by reading workflow configuration.</critical>
+
+<workflow>
+
+<step n="1" goal="Check workflow path configuration">
+  <action>Check if {workflow_path} exists</action>
+  <check if="file does not exist">
+    <output>
+工作流路径配置文件不存在: {workflow_path}
+
+这是一个新项目!请先运行 workflow-init 来初始化项目:
+`/bmad:bmm:workflows:workflow-init`
+    </output>
+    <action>Exit workflow</action>
+  </check>
+  <action>Read {workflow_path}</action>
+  <action>Parse: project_level, project_type, workflow_mode, recommended_workflows</action>
+</step>
+
+<step n="2" goal="Check implementation status">
+  <action>Check if {sprint_status_file} exists</action>
+  <check if="file exists">
+    <action>Read {sprint_status_file}</action>
+    <action>Parse sprint status for current implementation phase</action>
+    <action>Determine if project is in active implementation</action>
+  </check>
+  <check if="file does not exist">
+    <output>
+注意: sprint-status.yaml 不存在,项目可能不在实施阶段
+    </output>
+  </check>
+</step>
+
+<step n="3" goal="Display status and next steps">
+  <output>
+## 项目工作流状态
+
+**项目级别**: Level {{project_level}}
+**项目类型**: Type {{project_type}}
+**工作流模式**: {{workflow_mode}}
+
+  </output>
+
+  <check if="{{project_level}} == 1">
+    <output>
+### 当前阶段: Analysis (分析阶段)
+
+推荐工作流:
+- `/bmad:bmm:workflows:create-product-brief` - 创建产品简介
+- `/bmad:bmm:workflows:research` - 进行市场/技术/领域调研
+    </output>
+  </check>
+
+  <check if="{{project_level}} == 2">
+    <output>
+### 当前阶段: Planning (规划阶段)
+
+推荐工作流:
+- `/bmad:bmm:workflows:create-prd` - 创建产品需求文档
+- `/bmad:bmm:workflows:create-ux-design` - 设计 UX 模式
+    </output>
+  </check>
+
+  <check if="{{project_level}} == 3">
+    <output>
+### 当前阶段: Solutioning (解决方案阶段)
+
+推荐工作流:
+- `/bmad:bmm:workflows:create-architecture` - 创建架构文档
+- `/bmad:bmm:workflows:create-epics-and-stories` - 分解 Epic 和 Story
+- `/bmad:bmm:workflows:check-implementation-readiness` - 检查实施准备情况
+    </output>
+  </check>
+
+  <check if="{{project_level}} == 4">
+    <output>
+### 当前阶段: Implementation (实施阶段)
+
+推荐工作流:
+- `/bmad:bmm:workflows:sprint-planning` - Sprint 规划
+- `/bmad:bmm:workflows:create-story` - 创建 Story
+- `/bmad:bmm:workflows:dev-story` - 开发 Story
+- `/bmad:bmm:workflows:code-review` - 代码审查
+- `/bmad:bmm:workflows:sprint-status` - Sprint 状态查询
+- `/bmad:bmm:workflows:retrospective` - 回顾
+- `/bmad:bmm:workflows:correct-course` - 航向修正
+    </output>
+  </check>
+
+  <output>
+
+### 其他可用工作流
+
+**快速开发工作流**:
+- `/bmad:bmm:workflows:quick-dev` - 灵活开发工作流
+- `/bmad:bmm:workflows:quick-spec` - 快速技术规范
+- `/bmad:bmm:workflows:create-tech-spec` - 创建技术规范
+
+**测试工作流**:
+- `/bmad:bmm:workflows:testarch-framework` - 初始化测试框架
+- `/bmad:bmm:workflows:testarch-atdd` - 验收测试驱动开发
+- `/bmad:bmm:workflows:testarch-automate` - 扩展测试覆盖
+
+**文档工作流**:
+- `/bmad:bmm:workflows:generate-project-context` - 生成项目上下文
+- `/bmad:bmm:workflows:document-project` - 文档化项目
+
+**图表工作流**:
+- `/bmad:bmm:workflows:create-excalidraw-diagram` - 创建系统架构图
+- `/bmad:bmm:workflows:create-excalidraw-dataflow` - 创建数据流图
+- `/bmad:bmm:workflows:create-excalidraw-wireframe` - 创建线框图
+- `/bmad:bmm:workflows:create-excalidraw-flowchart` - 创建流程图
+
+**协作工作流**:
+- `/bmad:bmm:workflows:brainstorming` - 头脑风暴
+- `/bmad:bmm:workflows:party-mode` - 多代理讨论
+  </output>
+</step>
+
+<step n="4" goal="Offer next action">
+  <ask>
+选择下一步操作:
+1) 运行推荐工作流
+2) 查看 sprint-status 详情 (仅 Level 4)
+3) 重新初始化项目 (运行 workflow-init)
+4) 退出
+  </ask>
+
+  <check if="choice == 1">
+    <check if="{{project_level}} == 1">
+      <output>运行 `/bmad:bmm:workflows:create-product-brief` 或 `/bmad:bmm:workflows:research`</output>
+    </check>
+    <check if="{{project_level}} == 2">
+      <output>运行 `/bmad:bmm:workflows:create-prd` 或 `/bmad:bmm:workflows:create-ux-design`</output>
+    </check>
+    <check if="{{project_level}} == 3">
+      <output>运行 `/bmad:bmm:workflows:create-architecture` 或 `/bmad:bmm:workflows:create-epics-and-stories`</output>
+    </check>
+    <check if="{{project_level}} == 4">
+      <output>运行 `/bmad:bmm:workflows:sprint-status` 查看当前 Sprint 状态</output>
+    </check>
+  </check>
+
+  <check if="choice == 2 and {{project_level}} == 4">
+    <action>Display contents of {sprint_status_file} if exists</action>
+    <check if="sprint_status_file not found">
+      <output>sprint-status.yaml 不存在,请先运行 `/bmad:bmm:workflows:sprint-planning`</output>
+    </check>
+  </check>
+
+  <check if="choice == 2 and {{project_level}} != 4">
+    <output>sprint-status 仅适用于 Level 4 (实施阶段)</output>
+  </check>
+
+  <check if="choice == 3">
+    <output>运行 `/bmad:bmm:workflows:workflow-init` 重新初始化项目</output>
+  </check>
+
+  <check if="choice == 4">
+    <action>Exit workflow</action>
+  </check>
+</step>
+
+</workflow>

+ 38 - 0
_bmad/bmm/workflows/workflow-status/workflow.yaml

@@ -0,0 +1,38 @@
+# Workflow Status - Lightweight Status Checker
+name: workflow-status
+description: "Lightweight status checker - answers \"what should I do now?\" for any agent. Reads YAML status file for workflow tracking. Use workflow-init for new projects."
+author: "BMad"
+
+# Critical variables from config
+config_source: "{project-root}/_bmad/core/config.yaml"
+output_folder: "{config_source}:output_folder"
+user_name: "{config_source}:user_name"
+communication_language: "{config_source}:communication_language"
+document_output_language: "{config_source}:document_output_language"
+date: system-generated
+implementation_artifacts: "{output_folder}/implementation-artifacts"
+planning_artifacts: "{output_folder}/planning-artifacts"
+
+# Workflow components
+installed_path: "{project-root}/_bmad/bmm/workflows/workflow-status"
+instructions: "{installed_path}/instructions.md"
+
+# Inputs
+variables:
+  workflow_path: "{planning_artifacts}/workflow-path.yaml"
+  sprint_status_file: "{implementation_artifacts}/sprint-status.yaml"
+
+# Smart input file references
+input_file_patterns:
+  workflow_path:
+    description: "Workflow path configuration from workflow-init"
+    whole: "{planning_artifacts}/workflow-path.yaml"
+    load_strategy: "FULL_LOAD"
+
+  sprint_status:
+    description: "Sprint status file generated by sprint-planning"
+    whole: "{implementation_artifacts}/sprint-status.yaml"
+    load_strategy: "FULL_LOAD"
+
+# Standalone workflow
+standalone: true