- SubflowNode: 加载子DagDef递归执行,深度限制防无限递归,5个测试全绿 - 内置模板: 代码审查(analyze→report→notify) - 内置模板: Bug修复(locate→fix→verify→notify) - 内置模板: 功能开发(design→implement→test→review→notify) - 模板含persona分配(reviewer/analyst/coder/tester/architect)
48 lines
988 B
YAML
48 lines
988 B
YAML
# Bug 修复模板
|
|
name: Bug 修复
|
|
description: AI 驱动的 bug 修复流程 — 定位、修复、验证、通知
|
|
|
|
nodes:
|
|
locate:
|
|
type: ai
|
|
label: 定位 Bug
|
|
config:
|
|
prompt: |
|
|
根据错误描述和堆栈信息,定位 bug 的根因。
|
|
使用 search_files 和 read_file 工具查找相关代码。
|
|
persona_id: analyst
|
|
|
|
fix:
|
|
type: ai
|
|
label: 修复 Bug
|
|
config:
|
|
prompt: |
|
|
基于定位结果,修复 bug。
|
|
使用 patch_file 工具进行最小化修改。
|
|
persona_id: coder
|
|
|
|
verify:
|
|
type: ai
|
|
label: 验证修复
|
|
config:
|
|
prompt: |
|
|
验证修复是否有效。
|
|
使用 run_command 工具运行相关测试。
|
|
persona_id: tester
|
|
|
|
notify:
|
|
type: notify
|
|
label: 通知结果
|
|
config:
|
|
type: desktop
|
|
title: Bug 修复完成
|
|
message: 修复已验证
|
|
|
|
edges:
|
|
- from: locate
|
|
to: fix
|
|
- from: fix
|
|
to: verify
|
|
- from: verify
|
|
to: notify
|