# 功能开发模板 name: 功能开发 description: AI 驱动的功能开发全流程 — 设计、编码、测试、审查、通知 nodes: design: type: ai label: 方案设计 config: prompt: | 分析需求,设计实现方案: 1. 模块划分和接口定义 2. 数据结构和核心算法 3. 影响范围评估 persona_id: architect implement: type: ai label: 编码实现 config: prompt: | 按照设计方案实现功能。 使用 write_file 和 patch_file 工具编写代码。 persona_id: coder test: type: ai label: 编写测试 config: prompt: | 为新功能编写单元测试和集成测试。 使用 run_command 工具运行测试验证。 persona_id: tester review: type: ai label: 代码审查 config: prompt: | 审查实现代码,关注: 1. 代码质量和可维护性 2. 潜在 bug 3. 安全性 persona_id: reviewer notify: type: notify label: 通知完成 config: type: desktop title: 功能开发完成 message: 设计→编码→测试→审查 全流程完成 edges: - from: design to: implement - from: implement to: test - from: test to: review - from: review to: notify