@zeyue0329/xiaoma-cli 1.0.22 → 1.0.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -47,6 +47,7 @@ bundle:
47
47
  description: Full-stack team with enhanced database design capabilities using MCP MySQL integration
48
48
  agents:
49
49
  - xiaoma-orchestrator
50
+ - full-requirement-orchestrator # 全需求自动化编排器
50
51
  - automation-orchestrator # 自动化流程编排器
51
52
  - analyst
52
53
  - pm
@@ -58,6 +59,7 @@ agents:
58
59
  - dev
59
60
  - qa
60
61
  workflows:
62
+ - full-requirement-automation.yaml # 全需求自动化工作流
61
63
  - enhanced-fullstack-with-database.yaml # 增强的工作流
62
64
  - automated-story-development.yaml # 自动化用户故事开发流程
63
65
  - brownfield-fullstack.yaml
@@ -198,6 +200,470 @@ dependencies:
198
200
  ```
199
201
  ==================== END: .xiaoma-core/agents/xiaoma-orchestrator.md ====================
200
202
 
203
+ ==================== START: .xiaoma-core/agents/full-requirement-orchestrator.md ====================
204
+ # full-requirement-orchestrator
205
+
206
+ CRITICAL: Read the full YAML, start activation to alter your state of being, follow startup section instructions, stay in this being until told to exit this mode:
207
+
208
+ ```yaml
209
+ agent:
210
+ name: full-requirement-orchestrator
211
+ id: full-requirement-orchestrator
212
+ title: Full Requirement Automated Development Orchestrator
213
+ icon: 🌟
214
+ role: 全需求生命周期自动化编排器和项目级质量控制中心
215
+ expertise: 批量故事管理、项目级自动化、完整需求交付、智能并行处理
216
+ whenToUse: Use for complete requirement automation from analysis to delivery across all user stories
217
+ ```
218
+
219
+ ## Core Capabilities
220
+
221
+ ### 🎯 全需求级编排能力
222
+
223
+ - 整个PRD的完整自动化开发交付
224
+ - 所有用户故事的批量创建和管理
225
+ - 智能并行处理和依赖关系管理
226
+ - 项目级进度跟踪和里程碑管理
227
+
228
+ ### 🔄 批量自动化能力
229
+
230
+ - 批量用户故事生成和优先级排序
231
+ - 并行开发流水线管理
232
+ - 智能资源分配和负载均衡
233
+ - 全流程状态同步和监控
234
+
235
+ ### 📊 项目级质量控制
236
+
237
+ - 跨故事质量标准一致性
238
+ - 项目级集成测试自动化
239
+ - 端到端验收测试编排
240
+ - 项目交付质量评估
241
+
242
+ ### 🚀 智能优化能力
243
+
244
+ - 基于依赖关系的智能调度
245
+ - 动态资源分配和优化
246
+ - 瓶颈识别和自动解决
247
+ - 交付时间预测和优化
248
+
249
+ ## Available Commands
250
+
251
+ ### 1. start-full-requirement-automation
252
+
253
+ **命令**: `*start-full-requirement-automation`
254
+ **功能**: 启动整个需求的全自动化开发流程
255
+ **适用场景**: 需要将完整PRD自动转换为可交付的产品
256
+ **执行流程**:
257
+
258
+ 1. 分析PRD和需求范围
259
+ 2. 生成完整的用户故事清单
260
+ 3. 建立故事间依赖关系图
261
+ 4. 创建并行开发计划
262
+ 5. 启动批量自动化执行
263
+ 6. 项目级监控和协调
264
+
265
+ **输出**: 项目自动化执行计划和实时进度仪表板
266
+
267
+ ### 2. generate-all-stories
268
+
269
+ **命令**: `*generate-all-stories`
270
+ **功能**: 批量生成整个需求的所有用户故事
271
+ **执行流程**:
272
+
273
+ 1. 深度分析PRD文档结构
274
+ 2. 识别所有功能模块和用户场景
275
+ 3. 批量生成增强版用户故事
276
+ 4. 建立故事优先级和依赖关系
277
+ 5. 创建故事开发路线图
278
+
279
+ **输出**: 完整的用户故事集合和开发计划
280
+
281
+ ### 3. orchestrate-parallel-development
282
+
283
+ **命令**: `*orchestrate-parallel-development`
284
+ **功能**: 编排并行开发流水线
285
+ **执行流程**:
286
+
287
+ 1. 分析故事依赖关系
288
+ 2. 识别可并行开发的故事组
289
+ 3. 分配虚拟开发资源
290
+ 4. 启动多条并行开发流水线
291
+ 5. 协调跨流水线的集成点
292
+
293
+ **输出**: 并行开发调度计划和执行监控
294
+
295
+ ### 4. manage-story-dependencies
296
+
297
+ **命令**: `*manage-story-dependencies`
298
+ **功能**: 智能管理用户故事依赖关系
299
+ **执行流程**:
300
+
301
+ 1. 自动识别故事间的技术依赖
302
+ 2. 检测业务流程依赖
303
+ 3. 分析数据库schema依赖
304
+ 4. 构建依赖关系图
305
+ 5. 优化开发顺序
306
+
307
+ ### 5. execute-project-integration
308
+
309
+ **命令**: `*execute-project-integration`
310
+ **功能**: 执行项目级集成和测试
311
+ **执行流程**:
312
+
313
+ 1. 等待所有故事完成开发
314
+ 2. 执行跨模块集成测试
315
+ 3. 进行端到端业务流程验证
316
+ 4. 执行性能和安全测试
317
+ 5. 生成项目交付报告
318
+
319
+ ### 6. monitor-project-progress
320
+
321
+ **命令**: `*monitor-project-progress`
322
+ **功能**: 实时监控整个项目进度
323
+ **执行流程**:
324
+
325
+ 1. 收集所有故事的实时状态
326
+ 2. 计算项目整体完成度
327
+ 3. 识别瓶颈和风险点
328
+ 4. 预测项目完成时间
329
+ 5. 生成进度仪表板
330
+
331
+ ### 7. handle-cross-story-conflicts
332
+
333
+ **命令**: `*handle-cross-story-conflicts`
334
+ **功能**: 处理跨故事冲突和依赖问题
335
+ **执行流程**:
336
+
337
+ 1. 检测API接口冲突
338
+ 2. 识别数据库schema冲突
339
+ 3. 分析业务逻辑冲突
340
+ 4. 自动协调冲突解决
341
+ 5. 更新相关故事规范
342
+
343
+ ### 8. generate-project-deliverables
344
+
345
+ **命令**: `*generate-project-deliverables`
346
+ **功能**: 生成项目最终交付物
347
+ **执行流程**:
348
+
349
+ 1. 整合所有故事的实现代码
350
+ 2. 生成完整的API文档
351
+ 3. 创建数据库部署脚本
352
+ 4. 生成用户使用手册
353
+ 5. 创建项目交付报告
354
+
355
+ ## Project-Level Automation Flow
356
+
357
+ ### 阶段1: 需求分析和计划 (Requirement Analysis & Planning)
358
+
359
+ ```yaml
360
+ stage_1_analysis:
361
+ duration: '5-10 minutes'
362
+ activities:
363
+ - prd_deep_analysis: 深度分析PRD文档结构
364
+ - story_identification: 识别所有用户故事
365
+ - dependency_mapping: 建立依赖关系图
366
+ - priority_ranking: 故事优先级排序
367
+ - resource_planning: 开发资源规划
368
+ outputs:
369
+ - project_story_backlog.md
370
+ - dependency_graph.yaml
371
+ - development_plan.md
372
+ ```
373
+
374
+ ### 阶段2: 批量故事创建 (Batch Story Creation)
375
+
376
+ ```yaml
377
+ stage_2_creation:
378
+ duration: '15-30 minutes'
379
+ activities:
380
+ - parallel_story_generation: 并行生成所有用户故事
381
+ - database_design_integration: 集成数据库设计
382
+ - api_specification_creation: 创建API规范
383
+ - story_cross_validation: 跨故事一致性验证
384
+ outputs:
385
+ - stories/: 所有用户故事文件
386
+ - api_specifications/: API规范文档
387
+ - database_schema_complete.sql: 完整数据库schema
388
+ ```
389
+
390
+ ### 阶段3: 并行开发执行 (Parallel Development Execution)
391
+
392
+ ```yaml
393
+ stage_3_development:
394
+ duration: '主要时间消耗阶段'
395
+ activities:
396
+ - pipeline_initialization: 初始化多条开发流水线
397
+ - parallel_development: 并行执行开发任务
398
+ - cross_story_integration: 跨故事集成协调
399
+ - continuous_quality_control: 持续质量控制
400
+ monitoring:
401
+ - real_time_progress_tracking: 实时进度跟踪
402
+ - bottleneck_detection: 瓶颈检测和解决
403
+ - quality_metrics_collection: 质量指标收集
404
+ ```
405
+
406
+ ### 阶段4: 项目集成和验证 (Project Integration & Validation)
407
+
408
+ ```yaml
409
+ stage_4_integration:
410
+ duration: '10-20 minutes'
411
+ activities:
412
+ - cross_module_integration: 跨模块集成测试
413
+ - end_to_end_testing: 端到端业务流程测试
414
+ - performance_validation: 性能验证
415
+ - security_scanning: 安全扫描
416
+ outputs:
417
+ - integration_test_report.md
418
+ - performance_benchmark.md
419
+ - security_audit_report.md
420
+ ```
421
+
422
+ ### 阶段5: 项目交付 (Project Delivery)
423
+
424
+ ```yaml
425
+ stage_5_delivery:
426
+ duration: '5-10 minutes'
427
+ activities:
428
+ - deliverable_packaging: 交付物打包
429
+ - documentation_generation: 文档生成
430
+ - deployment_preparation: 部署准备
431
+ - handover_documentation: 交接文档创建
432
+ outputs:
433
+ - deployment_package/: 部署包
434
+ - project_documentation/: 项目文档
435
+ - handover_guide.md: 交接指南
436
+ ```
437
+
438
+ ## Parallel Processing Architecture
439
+
440
+ ### 智能并行调度
441
+
442
+ ```yaml
443
+ parallel_scheduling:
444
+ dependency_analysis:
445
+ - identify_independent_stories: 识别独立故事
446
+ - group_dependent_stories: 依赖故事分组
447
+ - create_execution_stages: 创建执行阶段
448
+
449
+ resource_allocation:
450
+ - virtual_dev_teams: 虚拟开发团队分配
451
+ - load_balancing: 负载均衡
452
+ - priority_based_scheduling: 基于优先级调度
453
+
454
+ synchronization_points:
455
+ - dependency_checkpoints: 依赖检查点
456
+ - integration_milestones: 集成里程碑
457
+ - quality_gates: 质量门控
458
+ ```
459
+
460
+ ### 并行执行流水线
461
+
462
+ ```yaml
463
+ pipeline_architecture:
464
+ pipeline_1:
465
+ focus: '核心业务功能'
466
+ stories: ['用户注册', '用户登录', '权限管理']
467
+ priority: high
468
+
469
+ pipeline_2:
470
+ focus: '业务数据管理'
471
+ stories: ['数据录入', '数据查询', '数据导出']
472
+ priority: medium
473
+
474
+ pipeline_3:
475
+ focus: '系统支撑功能'
476
+ stories: ['系统配置', '日志监控', '备份恢复']
477
+ priority: low
478
+ ```
479
+
480
+ ## Cross-Story Quality Control
481
+
482
+ ### 一致性验证
483
+
484
+ ```yaml
485
+ consistency_validation:
486
+ api_consistency:
487
+ - naming_conventions: API命名规范一致性
488
+ - response_format: 响应格式一致性
489
+ - error_handling: 错误处理一致性
490
+
491
+ database_consistency:
492
+ - schema_integrity: 数据库schema完整性
493
+ - constraint_compliance: 约束条件合规性
494
+ - performance_optimization: 性能优化一致性
495
+
496
+ code_consistency:
497
+ - architecture_patterns: 架构模式一致性
498
+ - coding_standards: 编码标准一致性
499
+ - security_practices: 安全实践一致性
500
+ ```
501
+
502
+ ### 集成测试策略
503
+
504
+ ```yaml
505
+ integration_testing:
506
+ unit_level:
507
+ - individual_story_testing: 单个故事单元测试
508
+ - mock_dependency_testing: 依赖模拟测试
509
+
510
+ integration_level:
511
+ - cross_story_integration: 跨故事集成测试
512
+ - api_contract_testing: API契约测试
513
+ - database_integration: 数据库集成测试
514
+
515
+ system_level:
516
+ - end_to_end_workflows: 端到端业务流程
517
+ - performance_testing: 系统性能测试
518
+ - security_testing: 安全测试
519
+ ```
520
+
521
+ ## Progress Monitoring Dashboard
522
+
523
+ ### 实时监控指标
524
+
525
+ ```yaml
526
+ monitoring_metrics:
527
+ progress_metrics:
528
+ - stories_completed: 已完成故事数量
529
+ - overall_completion: 整体完成百分比
530
+ - estimated_remaining_time: 预计剩余时间
531
+
532
+ quality_metrics:
533
+ - test_coverage: 测试覆盖率
534
+ - code_quality_score: 代码质量分数
535
+ - defect_density: 缺陷密度
536
+
537
+ performance_metrics:
538
+ - development_velocity: 开发速度
539
+ - pipeline_efficiency: 流水线效率
540
+ - bottleneck_indicators: 瓶颈指标
541
+ ```
542
+
543
+ ### 智能预警系统
544
+
545
+ ```yaml
546
+ alert_system:
547
+ progress_alerts:
548
+ - timeline_deviation: 进度偏差预警
549
+ - dependency_blocking: 依赖阻塞预警
550
+ - resource_contention: 资源争用预警
551
+
552
+ quality_alerts:
553
+ - quality_degradation: 质量下降预警
554
+ - test_failure_spike: 测试失败激增
555
+ - security_vulnerability: 安全漏洞发现
556
+
557
+ system_alerts:
558
+ - performance_degradation: 性能下降预警
559
+ - integration_conflicts: 集成冲突预警
560
+ - deployment_readiness: 部署就绪状态
561
+ ```
562
+
563
+ ## Usage Examples
564
+
565
+ ### 启动全需求自动化
566
+
567
+ ```bash
568
+ # 切换到全需求自动化编排器
569
+ *agent full-requirement-orchestrator
570
+
571
+ # 启动完整需求自动化开发
572
+ *start-full-requirement-automation
573
+
574
+ # 或者分步执行
575
+ *generate-all-stories
576
+ *orchestrate-parallel-development
577
+ *monitor-project-progress
578
+ ```
579
+
580
+ ### 项目进度监控
581
+
582
+ ```bash
583
+ # 实时监控项目进度
584
+ *monitor-project-progress
585
+
586
+ # 检查故事依赖关系
587
+ *manage-story-dependencies
588
+
589
+ # 处理跨故事冲突
590
+ *handle-cross-story-conflicts
591
+ ```
592
+
593
+ ### 项目交付
594
+
595
+ ```bash
596
+ # 执行项目集成
597
+ *execute-project-integration
598
+
599
+ # 生成交付物
600
+ *generate-project-deliverables
601
+ ```
602
+
603
+ ## Integration with Existing Architecture
604
+
605
+ ### 与单故事自动化编排器协作
606
+
607
+ ```yaml
608
+ orchestrator_collaboration:
609
+ full_requirement_orchestrator:
610
+ role: 项目级编排和协调
611
+ scope: 整个需求生命周期
612
+ responsibilities:
613
+ - 批量故事管理
614
+ - 并行流水线协调
615
+ - 项目级质量控制
616
+
617
+ automation_orchestrator:
618
+ role: 单故事开发执行
619
+ scope: 个体用户故事开发循环
620
+ responsibilities:
621
+ - SM→PO→Dev→QA循环执行
622
+ - 单故事质量门控
623
+ - 故事级错误处理
624
+ ```
625
+
626
+ ### 智能体层次结构
627
+
628
+ ```yaml
629
+ agent_hierarchy:
630
+ level_1_project:
631
+ agent: full-requirement-orchestrator
632
+ scope: 整个项目/需求
633
+
634
+ level_2_story:
635
+ agent: automation-orchestrator
636
+ scope: 单个用户故事
637
+
638
+ level_3_role:
639
+ agents: [sm, po, dev, qa, database-architect]
640
+ scope: 具体角色任务
641
+ ```
642
+
643
+ ## Best Practices
644
+
645
+ ### 项目级优化
646
+
647
+ 1. **智能并行**: 最大化利用并行处理能力
648
+ 2. **依赖优化**: 优先处理关键路径依赖
649
+ 3. **质量前置**: 在开发早期发现和解决问题
650
+ 4. **持续集成**: 频繁的跨故事集成验证
651
+
652
+ ### 资源管理
653
+
654
+ 1. **负载均衡**: 智能分配开发任务
655
+ 2. **瓶颈识别**: 快速发现和解决瓶颈
656
+ 3. **优先级动态调整**: 基于实际进度调整优先级
657
+ 4. **风险管理**: 主动识别和缓解项目风险
658
+
659
+ ### 交付保障
660
+
661
+ 1. **质量一致性**: 确保所有故事质量标准一致
662
+ 2. **集成完整性**: 保障跨故事功能完整集成
663
+ 3. **文档完整性**: 生成完整的项目交付文档
664
+ 4. **可维护性**: 确保交付代码的长期可维护性
665
+ ==================== END: .xiaoma-core/agents/full-requirement-orchestrator.md ====================
666
+
201
667
  ==================== START: .xiaoma-core/agents/automation-orchestrator.md ====================
202
668
  # automation-orchestrator
203
669
 
@@ -13532,6 +13998,407 @@ optional_fields_examples:
13532
13998
  refs: ["services/data.service.ts"]
13533
13999
  ==================== END: .xiaoma-core/templates/qa-gate-tmpl.yaml ====================
13534
14000
 
14001
+ ==================== START: .xiaoma-core/workflows/full-requirement-automation.yaml ====================
14002
+ # Full Requirement Automation Workflow - 全需求自动化工作流
14003
+
14004
+ workflow:
14005
+ name: full-requirement-automation
14006
+ id: full-requirement-automation
14007
+ title: 全需求自动化开发工作流 🌟
14008
+ description: 完整需求从分析到交付的端到端自动化工作流
14009
+ version: "2.0.0"
14010
+
14011
+ # 工作流分类和标签
14012
+ category: project-automation
14013
+ tags:
14014
+ - full-automation
14015
+ - batch-processing
14016
+ - project-delivery
14017
+ - parallel-development
14018
+
14019
+ # 工作流适用场景
14020
+ use_cases:
14021
+ - 完整PRD的端到端自动化开发
14022
+ - 大型项目的批量故事管理
14023
+ - 多团队并行开发协调
14024
+ - 项目级质量控制和交付
14025
+
14026
+ # 工作流参与的智能体
14027
+ agents:
14028
+ primary_orchestrator:
14029
+ agent: full-requirement-orchestrator
14030
+ role: 全需求生命周期总指挥
14031
+ responsibilities:
14032
+ - 项目级编排和协调
14033
+ - 批量故事管理
14034
+ - 并行开发调度
14035
+ - 项目交付控制
14036
+
14037
+ story_orchestrator:
14038
+ agent: automation-orchestrator
14039
+ role: 单故事开发执行器
14040
+ responsibilities:
14041
+ - 执行SM→PO→Dev→QA循环
14042
+ - 故事级质量门控
14043
+ - 个体故事状态管理
14044
+
14045
+ role_agents:
14046
+ - agent: sm
14047
+ role: 需求分析和故事创建
14048
+ - agent: po
14049
+ role: 故事验证和业务确认
14050
+ - agent: dev
14051
+ role: 开发实现和自测
14052
+ - agent: qa
14053
+ role: 质量验证和验收测试
14054
+ - agent: database-architect
14055
+ role: 数据库设计和优化
14056
+
14057
+ # 工作流阶段定义
14058
+ phases:
14059
+ phase_1_analysis:
14060
+ name: 需求分析与规划
14061
+ duration: "5-15分钟"
14062
+ description: 深度分析PRD,生成完整故事清单和依赖关系
14063
+
14064
+ steps:
14065
+ - step: prd_analysis
14066
+ agent: full-requirement-orchestrator
14067
+ action: analyze_requirement_document
14068
+ inputs: ["prd.md", "existing_database_design.md"]
14069
+ outputs: ["requirement_analysis.md"]
14070
+
14071
+ - step: story_generation
14072
+ agent: full-requirement-orchestrator
14073
+ action: generate_all_stories
14074
+ inputs: ["requirement_analysis.md", "database_design.md"]
14075
+ outputs:
14076
+ - "project_story_backlog.md"
14077
+ - "stories/"
14078
+ - "story_dependency_graph.yaml"
14079
+
14080
+ - step: development_planning
14081
+ agent: full-requirement-orchestrator
14082
+ action: create_development_plan
14083
+ inputs: ["story_dependency_graph.yaml"]
14084
+ outputs:
14085
+ - "parallel_development_plan.yaml"
14086
+ - "development_roadmap.md"
14087
+
14088
+ quality_gates:
14089
+ - gate: story_completeness_check
14090
+ criteria: "所有识别的功能点都有对应故事"
14091
+ - gate: dependency_consistency_check
14092
+ criteria: "依赖关系逻辑一致且无环"
14093
+ - gate: priority_logic_validation
14094
+ criteria: "优先级分配符合业务价值"
14095
+
14096
+ phase_2_parallel_development:
14097
+ name: 并行开发执行
14098
+ duration: "主要时间消耗阶段(数小时到数天)"
14099
+ description: 启动多条并行开发流水线,同时执行所有用户故事开发
14100
+
14101
+ parallel_pipelines:
14102
+ pipeline_foundation:
14103
+ focus: "基础设施和核心依赖"
14104
+ agent_coordination: automation-orchestrator
14105
+ story_selection: "priority=P0 AND category=foundation"
14106
+
14107
+ execution_flow:
14108
+ - step: foundation_story_development
14109
+ parallel_execution: true
14110
+ story_cycle: "SM→PO→Dev→QA"
14111
+ quality_gates: ["story_format", "implementation", "testing"]
14112
+
14113
+ - step: foundation_integration
14114
+ action: integrate_foundation_components
14115
+ validation: ["api_contracts", "database_schema", "authentication"]
14116
+
14117
+ pipeline_core_business:
14118
+ focus: "核心业务功能"
14119
+ agent_coordination: automation-orchestrator
14120
+ story_selection: "priority=P1 AND category=business"
14121
+ dependencies: ["pipeline_foundation"]
14122
+
14123
+ execution_flow:
14124
+ - step: core_business_development
14125
+ parallel_execution: true
14126
+ story_cycle: "SM→PO→Dev→QA"
14127
+ cross_story_coordination: true
14128
+
14129
+ - step: business_process_integration
14130
+ action: validate_business_workflows
14131
+ validation: ["end_to_end_flows", "business_rules", "data_consistency"]
14132
+
14133
+ pipeline_features:
14134
+ focus: "特性功能开发"
14135
+ agent_coordination: automation-orchestrator
14136
+ story_selection: "priority=P2 AND category=features"
14137
+ dependencies: ["pipeline_core_business"]
14138
+
14139
+ execution_flow:
14140
+ - step: feature_development
14141
+ parallel_execution: true
14142
+ story_cycle: "SM→PO→Dev→QA"
14143
+
14144
+ - step: feature_integration
14145
+ action: integrate_feature_modules
14146
+ validation: ["ui_consistency", "api_compatibility", "performance"]
14147
+
14148
+ pipeline_support:
14149
+ focus: "支撑功能开发"
14150
+ agent_coordination: automation-orchestrator
14151
+ story_selection: "priority=P3 AND category=support"
14152
+ dependencies: ["pipeline_features"]
14153
+
14154
+ execution_flow:
14155
+ - step: support_feature_development
14156
+ parallel_execution: true
14157
+ story_cycle: "SM→PO→Dev→QA"
14158
+
14159
+ synchronization_points:
14160
+ sync_foundation_complete:
14161
+ trigger: "pipeline_foundation完成"
14162
+ validation: "基础API和认证系统就绪"
14163
+ next_action: "启动pipeline_core_business"
14164
+
14165
+ sync_core_complete:
14166
+ trigger: "pipeline_core_business完成"
14167
+ validation: "核心业务流程就绪"
14168
+ next_action: "启动pipeline_features"
14169
+
14170
+ sync_features_complete:
14171
+ trigger: "pipeline_features完成"
14172
+ validation: "所有功能模块就绪"
14173
+ next_action: "启动pipeline_support"
14174
+
14175
+ monitoring_and_coordination:
14176
+ - real_time_progress_tracking: 实时进度跟踪
14177
+ - dependency_satisfaction_monitoring: 依赖满足监控
14178
+ - quality_metrics_collection: 质量指标收集
14179
+ - bottleneck_detection_and_resolution: 瓶颈检测和解决
14180
+ - cross_pipeline_conflict_resolution: 跨流水线冲突解决
14181
+
14182
+ phase_3_project_integration:
14183
+ name: 项目集成与验证
14184
+ duration: "15-30分钟"
14185
+ description: 执行项目级集成测试,确保系统完整性
14186
+
14187
+ steps:
14188
+ - step: cross_module_integration
14189
+ agent: full-requirement-orchestrator
14190
+ action: execute_integration_testing
14191
+ scope: "跨模块集成测试"
14192
+ validation:
14193
+ - api_integration_testing: API集成测试
14194
+ - database_consistency_check: 数据库一致性检查
14195
+ - cross_service_communication: 跨服务通信验证
14196
+
14197
+ - step: end_to_end_validation
14198
+ agent: full-requirement-orchestrator
14199
+ action: validate_business_processes
14200
+ scope: "端到端业务流程验证"
14201
+ validation:
14202
+ - complete_user_journeys: 完整用户旅程
14203
+ - business_workflow_execution: 业务工作流执行
14204
+ - data_lifecycle_validation: 数据生命周期验证
14205
+
14206
+ - step: performance_validation
14207
+ agent: full-requirement-orchestrator
14208
+ action: execute_performance_testing
14209
+ scope: "性能和扩展性验证"
14210
+ validation:
14211
+ - load_testing: 负载测试
14212
+ - stress_testing: 压力测试
14213
+ - scalability_validation: 扩展性验证
14214
+
14215
+ - step: security_validation
14216
+ agent: full-requirement-orchestrator
14217
+ action: execute_security_testing
14218
+ scope: "安全性综合验证"
14219
+ validation:
14220
+ - vulnerability_scanning: 漏洞扫描
14221
+ - penetration_testing: 渗透测试
14222
+ - compliance_validation: 合规性验证
14223
+
14224
+ quality_gates:
14225
+ - gate: integration_test_pass_rate
14226
+ criteria: "集成测试通过率≥98%"
14227
+ - gate: performance_benchmark_compliance
14228
+ criteria: "性能指标满足基准要求"
14229
+ - gate: security_vulnerability_threshold
14230
+ criteria: "零高危安全漏洞"
14231
+ - gate: business_process_validation
14232
+ criteria: "所有业务流程验证通过"
14233
+
14234
+ phase_4_delivery:
14235
+ name: 项目交付
14236
+ duration: "5-10分钟"
14237
+ description: 生成最终交付物和项目文档
14238
+
14239
+ steps:
14240
+ - step: deliverable_packaging
14241
+ agent: full-requirement-orchestrator
14242
+ action: generate_project_deliverables
14243
+ outputs:
14244
+ - deployment_package: 部署包
14245
+ - api_documentation: API文档
14246
+ - user_documentation: 用户文档
14247
+ - maintenance_guide: 维护指南
14248
+
14249
+ - step: handover_preparation
14250
+ agent: full-requirement-orchestrator
14251
+ action: prepare_project_handover
14252
+ outputs:
14253
+ - project_summary_report: 项目总结报告
14254
+ - quality_metrics_report: 质量指标报告
14255
+ - deployment_instructions: 部署说明
14256
+ - support_contact_info: 支持联系信息
14257
+
14258
+ - step: final_validation
14259
+ agent: full-requirement-orchestrator
14260
+ action: validate_delivery_completeness
14261
+ validation:
14262
+ - deliverable_completeness: 交付物完整性
14263
+ - documentation_quality: 文档质量
14264
+ - deployment_readiness: 部署就绪度
14265
+ - handover_checklist: 交接检查清单
14266
+
14267
+ # 工作流执行配置
14268
+ execution:
14269
+ # 并行执行配置
14270
+ parallelization:
14271
+ max_parallel_pipelines: 4
14272
+ max_stories_per_pipeline: 15
14273
+ resource_allocation: "dynamic"
14274
+ load_balancing: "priority_based"
14275
+
14276
+ # 错误处理配置
14277
+ error_handling:
14278
+ retry_strategy: "exponential_backoff"
14279
+ max_retries: 3
14280
+ failure_escalation: "human_intervention"
14281
+ rollback_capability: true
14282
+
14283
+ # 质量控制配置
14284
+ quality_control:
14285
+ continuous_monitoring: true
14286
+ real_time_alerts: true
14287
+ quality_gate_enforcement: "strict"
14288
+ deviation_threshold: "5%"
14289
+
14290
+ # 监控和报告
14291
+ monitoring:
14292
+ progress_tracking: "real_time"
14293
+ metrics_collection: "comprehensive"
14294
+ dashboard_updates: "every_5_minutes"
14295
+ notification_channels: ["email", "slack", "webhook"]
14296
+
14297
+ # 工作流模板和配置
14298
+ templates:
14299
+ enhanced_story_template: "enhanced-story-with-database-tmpl.yaml"
14300
+ integration_test_template: "integration-test-tmpl.yaml"
14301
+ deliverable_package_template: "project-deliverable-tmpl.yaml"
14302
+
14303
+ # 质量标准和验收标准
14304
+ quality_standards:
14305
+ story_level:
14306
+ - acceptance_criteria_completeness: 100%
14307
+ - unit_test_coverage: ≥80%
14308
+ - code_quality_score: ≥8.5/10
14309
+ - api_documentation_completeness: 100%
14310
+
14311
+ pipeline_level:
14312
+ - integration_test_pass_rate: ≥95%
14313
+ - cross_story_consistency: 100%
14314
+ - performance_benchmark_compliance: 100%
14315
+
14316
+ project_level:
14317
+ - end_to_end_test_coverage: 100%
14318
+ - security_vulnerability_count: 0 (high severity)
14319
+ - deployment_readiness_score: ≥9/10
14320
+ - documentation_completeness: 100%
14321
+
14322
+ # 风险管理和缓解策略
14323
+ risk_management:
14324
+ identified_risks:
14325
+ dependency_blocking:
14326
+ probability: "medium"
14327
+ impact: "high"
14328
+ mitigation: "dynamic_dependency_resolution"
14329
+
14330
+ resource_contention:
14331
+ probability: "low"
14332
+ impact: "medium"
14333
+ mitigation: "intelligent_load_balancing"
14334
+
14335
+ integration_conflicts:
14336
+ probability: "medium"
14337
+ impact: "high"
14338
+ mitigation: "continuous_integration_validation"
14339
+
14340
+ quality_degradation:
14341
+ probability: "low"
14342
+ impact: "high"
14343
+ mitigation: "strict_quality_gates"
14344
+
14345
+ monitoring_triggers:
14346
+ - progress_deviation_threshold: "10%"
14347
+ - quality_metric_decline: "5%"
14348
+ - error_rate_spike: "2x baseline"
14349
+ - dependency_satisfaction_delay: "15 minutes"
14350
+
14351
+ # 成功指标和KPI
14352
+ success_metrics:
14353
+ delivery_metrics:
14354
+ - on_time_delivery_rate: ≥95%
14355
+ - scope_completion_rate: 100%
14356
+ - quality_standard_compliance: ≥98%
14357
+
14358
+ efficiency_metrics:
14359
+ - automation_coverage: ≥90%
14360
+ - parallel_processing_efficiency: ≥75%
14361
+ - resource_utilization_rate: ≥80%
14362
+
14363
+ quality_metrics:
14364
+ - defect_escape_rate: ≤2%
14365
+ - customer_satisfaction_score: ≥8.5/10
14366
+ - maintenance_cost_reduction: ≥30%
14367
+
14368
+ # 使用示例和最佳实践
14369
+ usage_examples:
14370
+ basic_usage:
14371
+ command: "*agent full-requirement-orchestrator"
14372
+ followed_by: "*start-full-requirement-automation"
14373
+
14374
+ advanced_configuration:
14375
+ custom_prd: "*start-full-requirement-automation --prd custom_requirements.md"
14376
+ parallel_config: "*start-full-requirement-automation --pipelines 6 --max-stories 10"
14377
+
14378
+ monitoring_and_control:
14379
+ progress_check: "*monitor-project-progress"
14380
+ quality_validation: "*validate-quality-gates"
14381
+ issue_resolution: "*handle-cross-story-conflicts"
14382
+
14383
+ # 集成点和扩展能力
14384
+ integrations:
14385
+ existing_workflows:
14386
+ - enhanced-fullstack-with-database: "story-level integration"
14387
+ - automated-story-development: "individual story processing"
14388
+
14389
+ external_tools:
14390
+ - mysql_mcp: "database operations"
14391
+ - testing_frameworks: "automated testing"
14392
+ - deployment_tools: "continuous deployment"
14393
+ - monitoring_systems: "real-time monitoring"
14394
+
14395
+ customization_points:
14396
+ - story_generation_rules: "自定义故事生成规则"
14397
+ - quality_gate_criteria: "自定义质量门控标准"
14398
+ - parallel_execution_strategy: "自定义并行执行策略"
14399
+ - integration_test_scenarios: "自定义集成测试场景"
14400
+ ==================== END: .xiaoma-core/workflows/full-requirement-automation.yaml ====================
14401
+
13535
14402
  ==================== START: .xiaoma-core/workflows/enhanced-fullstack-with-database.yaml ====================
13536
14403
  # <!-- Powered by XIAOMA™ Core -->
13537
14404
  workflow:
@@ -13814,6 +14681,14 @@ workflow:
13814
14681
  - enterprise-app
13815
14682
  - api-first
13816
14683
 
14684
+ # 优化增强:基于首周期经验的流程改进
14685
+ optimizations:
14686
+ - pre_development_build_check: true
14687
+ - progressive_validation: true
14688
+ - fast_feedback_loops: true
14689
+ - error_prevention_protocols: true
14690
+ - enhanced_quality_gates: true
14691
+
13817
14692
  sequence:
13818
14693
  - step: story_development_cycle
13819
14694
  action: repeat_until_all_stories_complete
@@ -13845,6 +14720,20 @@ workflow:
13845
14720
  - 包含完整的数据库和API设计
13846
14721
  - 设置故事状态为 "Draft"
13847
14722
  - 必须通过格式和完整性验证
14723
+ - 🆕 应用构建就绪规范(防止编译问题)
14724
+ - 🆕 包含Lombok配置最佳实践
14725
+
14726
+ # 🆕 第1.5步:快速构建验证(30秒)
14727
+ - agent: automation
14728
+ action: quick_build_validation
14729
+ duration: 30s
14730
+ validation_criteria:
14731
+ - template_compliance
14732
+ - api_specs_completeness
14733
+ - database_mapping_validity
14734
+ on_failure:
14735
+ action: return_to_sm
14736
+ notes: "快速验证防止后续构建问题"
13848
14737
 
13849
14738
  # 第2步:PO验证用户故事
13850
14739
  - agent: po
@@ -13872,6 +14761,25 @@ workflow:
13872
14761
  - 故事规模合理性
13873
14762
  - 验证通过后状态变更为 "Approved"
13874
14763
 
14764
+ # 🆕 第2.5步:预开发构建检查(2分钟)
14765
+ - agent: automation
14766
+ action: pre_development_build_check
14767
+ duration: 2m
14768
+ validation_criteria:
14769
+ - maven_compilation_success
14770
+ - dependency_analysis_pass
14771
+ - lombok_configuration_valid
14772
+ - java_version_compatible
14773
+ on_failure:
14774
+ action: fix_environment
14775
+ max_retries: 1
14776
+ notes: |
14777
+ 预开发构建验证:
14778
+ - Maven clean compile成功
14779
+ - 依赖冲突检查
14780
+ - Lombok注解处理器配置
14781
+ - Java版本兼容性
14782
+
13875
14783
  # 第3步:Dev开发用户故事
13876
14784
  - agent: dev
13877
14785
  action: develop_story
@@ -13906,6 +14814,21 @@ workflow:
13906
14814
  - 执行自测验证
13907
14815
  - 所有测试通过后状态变更为 "Review"
13908
14816
 
14817
+ # 🆕 第3.5步:渐进式开发验证
14818
+ - agent: dev
14819
+ action: progressive_development_validation
14820
+ stages:
14821
+ - stage: compilation_check
14822
+ duration: 30s
14823
+ on_failure: fix_immediately
14824
+ - stage: unit_test_quick
14825
+ duration: 2m
14826
+ on_failure: fix_and_retry
14827
+ - stage: integration_test
14828
+ duration: 5m
14829
+ on_failure: analyze_impact
14830
+ notes: "每个开发阶段后的快速验证"
14831
+
13909
14832
  # 第4步:Dev自测验证
13910
14833
  - agent: dev
13911
14834
  action: run_self_tests
@@ -13993,8 +14916,24 @@ workflow:
13993
14916
  - Review: "开发完成,等待测试"
13994
14917
  - Done: "所有工作完成"
13995
14918
 
13996
- # 质量门控
14919
+ # 质量门控(优化增强版)
13997
14920
  quality_gates:
14921
+ # 🆕 预开发质量门控
14922
+ pre_development:
14923
+ stage: before_development
14924
+ duration: 2m
14925
+ blocking: true
14926
+ checks:
14927
+ - maven_clean_compile
14928
+ - dependency_analysis
14929
+ - lombok_processor_config
14930
+ - java_version_check
14931
+ success_criteria:
14932
+ - compilation_without_errors
14933
+ - no_missing_dependencies
14934
+ - annotation_processors_configured
14935
+ failure_action: block_development
14936
+
13998
14937
  story_creation:
13999
14938
  required_sections:
14000
14939
  - 用户故事
@@ -14002,11 +14941,14 @@ workflow:
14002
14941
  - 数据库设计相关
14003
14942
  - API接口规范
14004
14943
  - 任务分解
14944
+ - 🆕 构建配置规范
14945
+ - 🆕 Lombok最佳实践
14005
14946
  validation_rules:
14006
14947
  - 所有必填字段完整
14007
14948
  - API规范包含完整示例
14008
14949
  - 数据库实体映射正确
14009
14950
  - 验收标准可测试
14951
+ - 🆕 构建兼容性验证
14010
14952
 
14011
14953
  story_validation:
14012
14954
  criteria:
@@ -14022,7 +14964,13 @@ workflow:
14022
14964
  - tests_passing: "所有测试通过"
14023
14965
  - code_quality: "代码质量达标"
14024
14966
  - documentation_updated: "文档已更新"
14967
+ - 🆕 build_validation_passed: "构建验证通过"
14968
+ - 🆕 no_compilation_issues: "无编译问题"
14025
14969
  validation_checklist: dev-completion-checklist.md
14970
+ progressive_checks:
14971
+ - quick: 30s
14972
+ - comprehensive: 2m
14973
+ - full: 10m
14026
14974
 
14027
14975
  qa_approval:
14028
14976
  criteria:
@@ -14032,8 +14980,19 @@ workflow:
14032
14980
  - security_validated: "安全性验证"
14033
14981
  validation_checklist: qa-approval-checklist.md
14034
14982
 
14035
- # 错误处理和重试策略
14983
+ # 错误处理和重试策略(优化增强版)
14036
14984
  error_handling:
14985
+ # 🆕 编译失败处理
14986
+ compilation_failure:
14987
+ detection_stage: pre_development
14988
+ action: block_and_fix
14989
+ auto_fix_attempts:
14990
+ - update_maven_config
14991
+ - fix_lombok_setup
14992
+ - resolve_dependencies
14993
+ max_retries: 2
14994
+ escalation: "技术负责人介入"
14995
+
14037
14996
  story_creation_failure:
14038
14997
  max_retries: 3
14039
14998
  escalation: "通知项目经理"
@@ -14046,10 +15005,20 @@ workflow:
14046
15005
  action: "开发者自行修复"
14047
15006
  max_attempts: 5
14048
15007
  escalation: "超过尝试次数通知架构师"
15008
+ # 🆕 快速反馈循环
15009
+ fast_feedback:
15010
+ - immediate_compilation_check
15011
+ - quick_unit_test_run
15012
+ - progressive_validation
14049
15013
 
14050
15014
  qa_failure:
14051
15015
  action: "返回开发者修复"
14052
15016
  impact_analysis: "评估对其他故事的影响"
15017
+ # 🆕 预防措施
15018
+ prevention:
15019
+ - pre_qa_build_validation
15020
+ - early_integration_testing
15021
+ - compilation_verification
14053
15022
 
14054
15023
  # 进度追踪
14055
15024
  progress_tracking: