aceflow-tool-spec.yaml 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210
  1. name: "AceFlow工作流引擎"
  2. version: "2.0.0"
  3. description: "AI驱动的软件开发工作流管理工具,为敏捷团队提供智能流程建议"
  4. # 工具能力描述
  5. capabilities:
  6. primary:
  7. - "智能工作流程推荐"
  8. - "任务分类和优先级建议"
  9. - "开发阶段管理"
  10. - "进度跟踪和预测"
  11. secondary:
  12. - "项目复杂度分析"
  13. - "团队协作优化"
  14. - "记忆管理和知识沉淀"
  15. - "敏捷实践集成"
  16. # 使用时机判断
  17. when_to_use:
  18. # 关键词触发
  19. keywords:
  20. chinese: ["工作流", "流程", "阶段", "任务管理", "项目规划", "敏捷开发", "流程优化"]
  21. english: ["workflow", "process", "stage", "task management", "project planning", "agile"]
  22. # 场景描述
  23. scenarios:
  24. - "用户询问如何组织开发流程"
  25. - "需要制定项目计划和里程碑"
  26. - "想要标准化开发流程"
  27. - "需要跟踪项目进度"
  28. - "选择合适的开发模式"
  29. - "优化团队协作效率"
  30. - "制定质量保证流程"
  31. # 问题模式匹配
  32. question_patterns:
  33. - "如何.*开发流程"
  34. - "制定.*项目计划"
  35. - ".*工作流.*建议"
  36. - "项目.*阶段.*管理"
  37. - "选择.*开发模式"
  38. - "how to.*workflow"
  39. - "project.*planning"
  40. - "development.*process"
  41. # CLI集成配置
  42. cli_integration:
  43. # 命令发现
  44. discovery:
  45. command: "aceflow describe --format json"
  46. description: "获取工具详细能力描述"
  47. # 核心命令
  48. commands:
  49. suggest:
  50. description: "智能工作流推荐"
  51. usage: "aceflow suggest --task '{task_description}' [options]"
  52. example: "aceflow suggest --task '修复用户登录bug' --format json"
  53. required_params: ["task"]
  54. optional_params:
  55. - name: "team-size"
  56. type: "integer"
  57. description: "团队规模"
  58. - name: "project-type"
  59. type: "string"
  60. description: "项目类型"
  61. - name: "urgency"
  62. type: "string"
  63. choices: ["low", "medium", "high"]
  64. description: "紧急程度"
  65. plan:
  66. description: "项目规划建议"
  67. usage: "aceflow plan --project-type {type} --team-size {size} [options]"
  68. example: "aceflow plan --project-type web --team-size 5 --format json"
  69. required_params: []
  70. optional_params:
  71. - name: "project-type"
  72. type: "string"
  73. default: "web"
  74. description: "项目类型"
  75. - name: "team-size"
  76. type: "integer"
  77. default: 5
  78. description: "团队规模"
  79. track:
  80. description: "进度跟踪"
  81. usage: "aceflow track [options]"
  82. example: "aceflow track --stage current --format json"
  83. required_params: []
  84. optional_params:
  85. - name: "stage"
  86. type: "string"
  87. default: "current"
  88. description: "查询阶段"
  89. status:
  90. description: "项目状态查询"
  91. usage: "aceflow status [options]"
  92. example: "aceflow status --format json"
  93. required_params: []
  94. # 输出格式规范
  95. output_format:
  96. default: "json"
  97. supported: ["json", "yaml", "text"]
  98. # JSON响应结构
  99. json_schema:
  100. type: "object"
  101. properties:
  102. recommended_flow:
  103. type: "string"
  104. enum: ["minimal", "standard", "complete"]
  105. description: "推荐的工作流模式"
  106. confidence:
  107. type: "number"
  108. minimum: 0
  109. maximum: 1
  110. description: "推荐置信度"
  111. reasoning:
  112. type: "string"
  113. description: "推荐理由和解释"
  114. steps:
  115. type: "array"
  116. items:
  117. type: "string"
  118. description: "工作流步骤列表"
  119. estimated_hours:
  120. type: "integer"
  121. minimum: 1
  122. description: "预估工作时间(小时)"
  123. alternatives:
  124. type: "array"
  125. items:
  126. type: "object"
  127. properties:
  128. flow:
  129. type: "string"
  130. confidence:
  131. type: "number"
  132. reason:
  133. type: "string"
  134. description: "替代方案"
  135. task_type:
  136. type: "string"
  137. description: "识别的任务类型"
  138. required: ["recommended_flow", "confidence", "reasoning", "steps", "estimated_hours"]
  139. # Agent集成示例
  140. integration_examples:
  141. # Cursor/VSCode集成
  142. cursor:
  143. trigger_context: "当用户询问开发流程或项目规划时"
  144. command_template: "aceflow suggest --task '{user_input}' --format json"
  145. response_handling: |
  146. const response = await exec('aceflow suggest --task "修复登录bug" --format json');
  147. const result = JSON.parse(response.stdout);
  148. // 使用 result.recommended_flow, result.steps 等
  149. # Cline集成
  150. cline:
  151. trigger_context: "工作流相关查询"
  152. command_template: "aceflow {action} {params} --format json"
  153. response_format: "structured_json"
  154. # GitHub Copilot集成
  155. copilot:
  156. trigger_patterns: ["@aceflow", "workflow:", "process:"]
  157. command_integration: "CLI调用模式"
  158. output_integration: "JSON解析和建议生成"
  159. # 错误处理
  160. error_handling:
  161. common_errors:
  162. - code: "missing_task"
  163. message: "任务描述不能为空"
  164. solution: "请提供具体的任务描述"
  165. - code: "invalid_project_type"
  166. message: "不支持的项目类型"
  167. solution: "支持的类型: web, mobile, api, desktop等"
  168. - code: "project_not_initialized"
  169. message: "项目未初始化"
  170. solution: "请先运行 'aceflow init' 初始化项目"
  171. fallback_behavior:
  172. - "返回默认标准流程建议"
  173. - "提供错误信息和解决方案"
  174. - "给出相关帮助命令"
  175. # 性能指标
  176. performance:
  177. response_time: "<500ms"
  178. memory_usage: "<50MB"
  179. cpu_usage: "minimal"
  180. dependencies: "轻量级,无外部API依赖"
  181. # 兼容性
  182. compatibility:
  183. os: ["Windows", "macOS", "Linux"]
  184. python: ">=3.7"
  185. shell: ["bash", "zsh", "cmd", "powershell"]
  186. editors: ["VSCode", "Cursor", "Vim", "IntelliJ"]
  187. # 更新和维护
  188. maintenance:
  189. update_channel: "GitHub Releases"
  190. backward_compatibility: "保持API稳定性"
  191. deprecation_policy: "提前3个版本通知"