@zeyue0329/xiaoma-cli 1.0.24 → 1.0.26
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.
- package/ENHANCED_WORKFLOW_OPTIMIZATION.md +225 -0
- package/ENHANCED_WORKFLOW_OPTIMIZATION_SUMMARY.md +293 -0
- package/dist/teams/team-fullstack-with-database.txt +1447 -377
- package/package.json +1 -1
- package/tools/installer/package.json +1 -1
- package/xiaoma-core/agents/automated-fix-validator.yaml +578 -0
- package/xiaoma-core/agents/automated-quality-validator.yaml +544 -0
- package/xiaoma-core/agents/enhanced-workflow-orchestrator.yaml +303 -0
- package/xiaoma-core/agents/global-requirements-auditor.yaml +512 -0
- package/xiaoma-core/agents/intelligent-template-adapter.yaml +375 -0
- package/xiaoma-core/agents/issue-dispatcher.yaml +627 -0
- package/xiaoma-core/agents/master-execution-engine.yaml +529 -0
- package/xiaoma-core/agents/requirements-coverage-auditor.yaml +373 -0
- package/xiaoma-core/docs/ENHANCED_WORKFLOW_USAGE_GUIDE.md +306 -0
- package/xiaoma-core/docs/SERIAL_EXECUTION_WORKFLOW_GUIDE.md +347 -0
- package/xiaoma-core/docs/ULTIMATE_AUTOMATION_USAGE_GUIDE.md +291 -0
- package/xiaoma-core/docs/activate-enhanced-workflow.md +154 -0
- package/xiaoma-core/tasks/requirements-coverage-audit.md +198 -0
- package/xiaoma-core/templates/global-qa-monitoring-tmpl.yaml +442 -0
- package/xiaoma-core/templates/requirements-coverage-audit.yaml +329 -0
- package/xiaoma-core/templates/start-enhanced-workflow.yaml +347 -0
- package/xiaoma-core/workflows/enhanced-fullstack-with-database.yaml +177 -14
- package/xiaoma-core/workflows/enhanced-fullstack-with-qa-loop.yaml +766 -0
- package/xiaoma-core/workflows/full-requirement-automation.yaml +1267 -360
|
@@ -0,0 +1,303 @@
|
|
|
1
|
+
# Enhanced Workflow Orchestrator with Multi-layer Quality Assurance
|
|
2
|
+
# 增强工作流编排器 - 多层质量保证系统
|
|
3
|
+
|
|
4
|
+
meta:
|
|
5
|
+
name: "Enhanced Workflow Orchestrator"
|
|
6
|
+
version: "2.0"
|
|
7
|
+
description: "全流程自动化工作流编排器,包含多层质量验证机制"
|
|
8
|
+
created_date: "2025-09-10"
|
|
9
|
+
quality_priority: "MAXIMUM"
|
|
10
|
+
|
|
11
|
+
# ========== 核心配置 ==========
|
|
12
|
+
core_config:
|
|
13
|
+
automation_level: "FULL_AUTO" # 全自动化
|
|
14
|
+
quality_gates: "MULTI_LAYER" # 多层质量门控
|
|
15
|
+
validation_rounds: 3 # 最少3轮验证
|
|
16
|
+
error_tolerance: "ZERO" # 零容错
|
|
17
|
+
parallel_processing: true # 并行处理
|
|
18
|
+
rollback_capability: true # 支持回滚
|
|
19
|
+
|
|
20
|
+
# ========== 智能任务规划器 ==========
|
|
21
|
+
intelligent_task_planner:
|
|
22
|
+
pre_analysis:
|
|
23
|
+
- step: "project_scope_scan"
|
|
24
|
+
description: "扫描项目范围和现有文档"
|
|
25
|
+
actions:
|
|
26
|
+
- scan_directory_structure
|
|
27
|
+
- identify_existing_documents
|
|
28
|
+
- analyze_document_patterns
|
|
29
|
+
- extract_template_requirements
|
|
30
|
+
|
|
31
|
+
- step: "template_intelligence"
|
|
32
|
+
description: "智能模板分析和理解"
|
|
33
|
+
actions:
|
|
34
|
+
- read_template_files
|
|
35
|
+
- parse_template_structure
|
|
36
|
+
- generate_template_schema
|
|
37
|
+
- validate_template_understanding
|
|
38
|
+
|
|
39
|
+
- step: "task_dependency_mapping"
|
|
40
|
+
description: "任务依赖关系映射"
|
|
41
|
+
actions:
|
|
42
|
+
- identify_task_dependencies
|
|
43
|
+
- calculate_optimal_execution_order
|
|
44
|
+
- determine_parallel_processing_opportunities
|
|
45
|
+
- generate_execution_plan
|
|
46
|
+
|
|
47
|
+
execution_planning:
|
|
48
|
+
strategy: "QUALITY_FIRST"
|
|
49
|
+
batch_size: 3 # 每批处理3个任务
|
|
50
|
+
validation_checkpoints: 5 # 5个验证检查点
|
|
51
|
+
rollback_points: true
|
|
52
|
+
|
|
53
|
+
# ========== 自适应模板引擎 ==========
|
|
54
|
+
adaptive_template_engine:
|
|
55
|
+
template_learning:
|
|
56
|
+
- phase: "template_discovery"
|
|
57
|
+
actions:
|
|
58
|
+
- locate_template_files
|
|
59
|
+
- parse_yaml_structure
|
|
60
|
+
- extract_field_definitions
|
|
61
|
+
- identify_validation_rules
|
|
62
|
+
|
|
63
|
+
- phase: "template_comprehension"
|
|
64
|
+
actions:
|
|
65
|
+
- analyze_field_relationships
|
|
66
|
+
- understand_section_hierarchy
|
|
67
|
+
- map_required_vs_optional_fields
|
|
68
|
+
- generate_completion_checklist
|
|
69
|
+
|
|
70
|
+
- phase: "template_validation"
|
|
71
|
+
actions:
|
|
72
|
+
- verify_template_understanding
|
|
73
|
+
- test_template_application
|
|
74
|
+
- validate_field_mappings
|
|
75
|
+
- confirm_structure_compliance
|
|
76
|
+
|
|
77
|
+
dynamic_application:
|
|
78
|
+
format_enforcement: "STRICT"
|
|
79
|
+
field_completion: "MANDATORY"
|
|
80
|
+
structure_validation: "REAL_TIME"
|
|
81
|
+
|
|
82
|
+
# ========== 多层质量保证系统 ==========
|
|
83
|
+
multi_layer_quality_assurance:
|
|
84
|
+
# 第一层:模板合规性验证
|
|
85
|
+
layer_1_template_compliance:
|
|
86
|
+
name: "Template Compliance Validation"
|
|
87
|
+
priority: "CRITICAL"
|
|
88
|
+
checks:
|
|
89
|
+
- template_structure_match
|
|
90
|
+
- required_fields_presence
|
|
91
|
+
- field_format_validation
|
|
92
|
+
- section_hierarchy_check
|
|
93
|
+
- yaml_syntax_validation
|
|
94
|
+
pass_criteria: "ALL_CHECKS_PASS"
|
|
95
|
+
failure_action: "IMMEDIATE_CORRECTION"
|
|
96
|
+
|
|
97
|
+
# 第二层:内容质量验证
|
|
98
|
+
layer_2_content_quality:
|
|
99
|
+
name: "Content Quality Validation"
|
|
100
|
+
priority: "HIGH"
|
|
101
|
+
checks:
|
|
102
|
+
- content_completeness_check
|
|
103
|
+
- logical_consistency_validation
|
|
104
|
+
- technical_accuracy_review
|
|
105
|
+
- language_quality_assessment
|
|
106
|
+
- cross_reference_validation
|
|
107
|
+
pass_criteria: "SCORE_ABOVE_90"
|
|
108
|
+
failure_action: "CONTENT_REVISION"
|
|
109
|
+
|
|
110
|
+
# 第三层:跨文档一致性验证
|
|
111
|
+
layer_3_cross_document_consistency:
|
|
112
|
+
name: "Cross-Document Consistency Validation"
|
|
113
|
+
priority: "HIGH"
|
|
114
|
+
checks:
|
|
115
|
+
- terminology_consistency
|
|
116
|
+
- structure_alignment
|
|
117
|
+
- version_consistency
|
|
118
|
+
- reference_integrity
|
|
119
|
+
- naming_convention_compliance
|
|
120
|
+
pass_criteria: "CONSISTENCY_SCORE_95"
|
|
121
|
+
failure_action: "BATCH_CORRECTION"
|
|
122
|
+
|
|
123
|
+
# 第四层:业务逻辑验证
|
|
124
|
+
layer_4_business_logic:
|
|
125
|
+
name: "Business Logic Validation"
|
|
126
|
+
priority: "MEDIUM"
|
|
127
|
+
checks:
|
|
128
|
+
- database_design_coherence
|
|
129
|
+
- api_specification_completeness
|
|
130
|
+
- implementation_feasibility
|
|
131
|
+
- acceptance_criteria_clarity
|
|
132
|
+
- task_decomposition_adequacy
|
|
133
|
+
pass_criteria: "LOGIC_SCORE_85"
|
|
134
|
+
failure_action: "LOGIC_REFINEMENT"
|
|
135
|
+
|
|
136
|
+
# 第五层:最终集成验证
|
|
137
|
+
layer_5_integration_validation:
|
|
138
|
+
name: "Final Integration Validation"
|
|
139
|
+
priority: "CRITICAL"
|
|
140
|
+
checks:
|
|
141
|
+
- end_to_end_document_flow
|
|
142
|
+
- complete_story_coverage
|
|
143
|
+
- implementation_readiness
|
|
144
|
+
- documentation_completeness
|
|
145
|
+
- quality_metrics_achievement
|
|
146
|
+
pass_criteria: "INTEGRATION_SCORE_95"
|
|
147
|
+
failure_action: "COMPREHENSIVE_REVIEW"
|
|
148
|
+
|
|
149
|
+
# ========== 自动化执行引擎 ==========
|
|
150
|
+
automation_execution_engine:
|
|
151
|
+
workflow_steps:
|
|
152
|
+
- step: "initialization"
|
|
153
|
+
description: "工作流初始化"
|
|
154
|
+
actions:
|
|
155
|
+
- load_project_context
|
|
156
|
+
- read_all_templates
|
|
157
|
+
- validate_template_understanding
|
|
158
|
+
- generate_execution_plan
|
|
159
|
+
- setup_quality_gates
|
|
160
|
+
validation: "MANDATORY"
|
|
161
|
+
|
|
162
|
+
- step: "batch_processing"
|
|
163
|
+
description: "批量文档处理"
|
|
164
|
+
strategy: "PARALLEL_WITH_VALIDATION"
|
|
165
|
+
actions:
|
|
166
|
+
- process_document_batch
|
|
167
|
+
- apply_template_format
|
|
168
|
+
- perform_layer_1_validation
|
|
169
|
+
- perform_layer_2_validation
|
|
170
|
+
- generate_quality_report
|
|
171
|
+
validation_points: 3
|
|
172
|
+
|
|
173
|
+
- step: "cross_validation"
|
|
174
|
+
description: "跨文档验证"
|
|
175
|
+
actions:
|
|
176
|
+
- perform_layer_3_validation
|
|
177
|
+
- perform_layer_4_validation
|
|
178
|
+
- check_global_consistency
|
|
179
|
+
- validate_business_logic
|
|
180
|
+
- generate_consistency_report
|
|
181
|
+
validation: "COMPREHENSIVE"
|
|
182
|
+
|
|
183
|
+
- step: "final_integration"
|
|
184
|
+
description: "最终集成验证"
|
|
185
|
+
actions:
|
|
186
|
+
- perform_layer_5_validation
|
|
187
|
+
- generate_final_quality_report
|
|
188
|
+
- update_summary_documents
|
|
189
|
+
- perform_integration_test
|
|
190
|
+
- generate_completion_certificate
|
|
191
|
+
validation: "EXHAUSTIVE"
|
|
192
|
+
|
|
193
|
+
# ========== 质量检查器配置 ==========
|
|
194
|
+
quality_checkers:
|
|
195
|
+
template_compliance_checker:
|
|
196
|
+
name: "TemplateComplianceChecker"
|
|
197
|
+
rules:
|
|
198
|
+
- required_sections:
|
|
199
|
+
[
|
|
200
|
+
"状态",
|
|
201
|
+
"用户故事",
|
|
202
|
+
"验收标准",
|
|
203
|
+
"数据库设计相关",
|
|
204
|
+
"API接口规范",
|
|
205
|
+
"任务/子任务",
|
|
206
|
+
"开发者说明",
|
|
207
|
+
"变更日志",
|
|
208
|
+
"开发者代理记录",
|
|
209
|
+
"QA结果",
|
|
210
|
+
]
|
|
211
|
+
- field_formats:
|
|
212
|
+
状态: ["Draft", "Approved", "InProgress", "Review", "Done", "Completed"]
|
|
213
|
+
用户故事: "^\\*\\*作为\\*\\*.*\\*\\*我希望\\*\\*.*\\*\\*以便\\*\\*.*"
|
|
214
|
+
- structure_validation: true
|
|
215
|
+
- yaml_syntax_check: true
|
|
216
|
+
error_handling: "AUTO_CORRECTION"
|
|
217
|
+
|
|
218
|
+
content_quality_checker:
|
|
219
|
+
name: "ContentQualityChecker"
|
|
220
|
+
metrics:
|
|
221
|
+
completeness_threshold: 95
|
|
222
|
+
accuracy_threshold: 90
|
|
223
|
+
clarity_threshold: 85
|
|
224
|
+
consistency_threshold: 90
|
|
225
|
+
validation_methods:
|
|
226
|
+
- semantic_analysis
|
|
227
|
+
- technical_review
|
|
228
|
+
- completeness_scoring
|
|
229
|
+
- clarity_assessment
|
|
230
|
+
error_handling: "ITERATIVE_IMPROVEMENT"
|
|
231
|
+
|
|
232
|
+
consistency_checker:
|
|
233
|
+
name: "ConsistencyChecker"
|
|
234
|
+
scope: "CROSS_DOCUMENT"
|
|
235
|
+
checks:
|
|
236
|
+
- terminology_dictionary
|
|
237
|
+
- naming_conventions
|
|
238
|
+
- structure_patterns
|
|
239
|
+
- reference_integrity
|
|
240
|
+
- version_alignment
|
|
241
|
+
error_handling: "BATCH_CORRECTION"
|
|
242
|
+
|
|
243
|
+
# ========== 自动纠错系统 ==========
|
|
244
|
+
auto_correction_system:
|
|
245
|
+
template_format_correction:
|
|
246
|
+
- missing_sections: "AUTO_GENERATE_WITH_PLACEHOLDER"
|
|
247
|
+
- incorrect_format: "AUTO_REFORMAT"
|
|
248
|
+
- field_validation_errors: "AUTO_CORRECT_WITH_VALIDATION"
|
|
249
|
+
|
|
250
|
+
content_improvement:
|
|
251
|
+
- incomplete_content: "AUTO_ENHANCE_WITH_CONTEXT"
|
|
252
|
+
- consistency_issues: "AUTO_ALIGN_WITH_STANDARDS"
|
|
253
|
+
- quality_deficiencies: "ITERATIVE_AUTO_IMPROVEMENT"
|
|
254
|
+
|
|
255
|
+
rollback_mechanism:
|
|
256
|
+
- save_checkpoints: "EVERY_MAJOR_STEP"
|
|
257
|
+
- version_control: "AUTOMATIC"
|
|
258
|
+
- rollback_triggers: "QUALITY_FAILURE"
|
|
259
|
+
|
|
260
|
+
# ========== 报告生成系统 ==========
|
|
261
|
+
reporting_system:
|
|
262
|
+
real_time_progress:
|
|
263
|
+
- task_completion_status
|
|
264
|
+
- quality_validation_results
|
|
265
|
+
- error_detection_and_correction
|
|
266
|
+
- performance_metrics
|
|
267
|
+
|
|
268
|
+
quality_reports:
|
|
269
|
+
- layer_by_layer_validation_results
|
|
270
|
+
- quality_score_breakdown
|
|
271
|
+
- improvement_recommendations
|
|
272
|
+
- compliance_certification
|
|
273
|
+
|
|
274
|
+
final_deliverables:
|
|
275
|
+
- comprehensive_quality_report
|
|
276
|
+
- document_completion_certificate
|
|
277
|
+
- implementation_readiness_assessment
|
|
278
|
+
- maintenance_recommendations
|
|
279
|
+
|
|
280
|
+
# ========== 执行配置 ==========
|
|
281
|
+
execution_config:
|
|
282
|
+
max_parallel_tasks: 5
|
|
283
|
+
validation_timeout: 300 # 5分钟
|
|
284
|
+
auto_correction_attempts: 3
|
|
285
|
+
quality_score_minimum: 90
|
|
286
|
+
rollback_on_failure: true
|
|
287
|
+
comprehensive_logging: true
|
|
288
|
+
|
|
289
|
+
notification_settings:
|
|
290
|
+
progress_updates: true
|
|
291
|
+
quality_alerts: true
|
|
292
|
+
completion_notifications: true
|
|
293
|
+
error_notifications: true
|
|
294
|
+
|
|
295
|
+
# ========== 成功标准 ==========
|
|
296
|
+
success_criteria:
|
|
297
|
+
template_compliance: "100%"
|
|
298
|
+
content_quality_score: ">=90"
|
|
299
|
+
cross_document_consistency: ">=95%"
|
|
300
|
+
business_logic_validation: ">=85%"
|
|
301
|
+
integration_validation: ">=95%"
|
|
302
|
+
zero_critical_errors: true
|
|
303
|
+
comprehensive_documentation: true
|