From b6eadecbe6e7717cb631af57edd8b10cbba7d09b Mon Sep 17 00:00:00 2001 From: yumoqing Date: Mon, 24 Aug 2026 08:10:34 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20PM=20bug=20=E6=8E=A8=E5=8A=A8=E8=A6=81?= =?UTF-8?q?=E6=B1=82=E5=BC=BA=E5=8C=96=E5=88=B0=E6=8A=80=E8=83=BD=E2=80=94?= =?UTF-8?q?=E2=80=94=E6=AF=8F=E6=AC=A1=E5=AE=A1=E6=A0=B8=E4=BB=BB=E4=BD=95?= =?UTF-8?q?=E4=BB=BB=E5=8A=A1=E9=83=BD=E6=A3=80=E6=9F=A5=E5=B9=B6=E6=8E=A8?= =?UTF-8?q?=E5=8A=A8=20Bug=20=E6=B5=81=E8=BD=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 用户定:在 PM 的技能里加 bug 推动要求(而非 system_prompt 硬编码)。 bug-confirm 技能: - 标题「闭环触发(审核 test 交付通过时)」→「Bug 推动要求(每次审核任何 任务都要执行,铁律)」 - 加「硬性动作」:先 list_bugs 真实调用,禁止编造「无 open Bug」 - description 三段式强化:每次审核都要 load_skill 本技能 PM 角色技能 description 同步:bug-confirm 的触发从「审核 test 后」改为「每次审核任何任务」 --- .../sdlc_general/common/bug-confirm/SKILL.md | 15 ++++++++++++--- .../sdlc_general/roles/agent.pm/role/SKILL.md | 2 +- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/skills_library/pipelines/sdlc_general/common/bug-confirm/SKILL.md b/skills_library/pipelines/sdlc_general/common/bug-confirm/SKILL.md index f654851..f6d286b 100644 --- a/skills_library/pipelines/sdlc_general/common/bug-confirm/SKILL.md +++ b/skills_library/pipelines/sdlc_general/common/bug-confirm/SKILL.md @@ -1,6 +1,6 @@ --- name: bug-confirm -description: 确认/驳回/重开 Bug 能力——confirm_bug/reject_bug/reopen_bug/list_bugs 工具集(agent.pm 用)。审核 test 交付时据此处理 open bug。完整状态机见 bug 技能。 +description: 确认/驳回/重开 Bug 能力——confirm_bug/reject_bug/reopen_bug/list_bugs 工具集(agent.pm 用)。PM 每次审核任何任务都要先 load_skill 加载本技能并检查当前迭代 open Bug 推动流转(confirm/驳回/派发修复/派发复测),否则 Bug 永远停在 open、闭环断裂。完整状态机见 bug 技能。 capability: bug_confirm_capability tools: [confirm_bug, reject_bug, reopen_bug, list_bugs] --- @@ -16,9 +16,18 @@ tools: [confirm_bug, reject_bug, reopen_bug, list_bugs] ## 状态机 完整流转见 `bug` 技能(open → confirmed → fixing → fixed → verified → closed)。 -## 闭环触发(审核 test 交付通过时) +## Bug 推动要求(每次审核任何任务都要执行,铁律) -审核 test 任务通过后,`list_bugs` 查**当前迭代** `status=open` 的 Bug,**逐个读 title/description 判断根因**,再正确指派。 +Bug 是独立于任务链的第二条循环,你(PM)拥有「添加流转」的能力。**每次审核任何任务(不只是 test)都要先 `list_bugs` 检查当前迭代的 Bug 状态并推动流转**,不能跳过、不能编造「无 bug」。 + +**硬性动作(审核任何任务的第一步)**: +1. 先 `list_bugs(status=open)` 真实调用,拿到当前迭代 open Bug 的实际清单——**禁止编造「无 open Bug」**(不调用就声称无 bug 是严重违规,会导致 Bug 永远停在 open、闭环断裂)。 +2. 有 open Bug 就逐个判断根因并推动(见下「判断根因 + 分类指派」);确无 open Bug 才跳过。 + +**推动时机**: +- 审核 test 任务时:test 上报的 open Bug 需要你 confirm + 派发修复。 +- 审核 develop「修复 Bug」任务通过时:查 `status=fixed` 的 Bug → 派发「复测」任务给 test。 +- 审核其他任务时:也要 `list_bugs` 看一眼是否有待推动的 open Bug(避免遗漏任何一环)。 ### 第一步:判断 Bug 根因(部署 Bug vs 功能 Bug) 读每个 Bug 的 title/description,识别根因类型: diff --git a/skills_library/pipelines/sdlc_general/roles/agent.pm/role/SKILL.md b/skills_library/pipelines/sdlc_general/roles/agent.pm/role/SKILL.md index 245f4e0..19486e0 100644 --- a/skills_library/pipelines/sdlc_general/roles/agent.pm/role/SKILL.md +++ b/skills_library/pipelines/sdlc_general/roles/agent.pm/role/SKILL.md @@ -1,6 +1,6 @@ --- name: role -description: 项目经理角色定义。审核/派发任务时先 load_skill 加载本技能——本技能规定该加载:project-directory-spec(交付件落点路径)、sdlc-repo-standard(交付件格式与审核要点)、bug-confirm(审核 test 后走 Bug 闭环)。不先加载会按错误路径检查交付件、漏检实际产出、漏处理 Bug。 +description: 项目经理角色定义。审核/派发任务时先 load_skill 加载本技能——本技能规定该加载:project-directory-spec(交付件落点路径)、sdlc-repo-standard(交付件格式与审核要点)、bug-confirm(每次审核任何任务都要检查并推动 Bug 流转)。不先加载会按错误路径检查交付件、漏检实际产出、漏处理 Bug(Bug 永远停在 open、闭环断裂)。 capability: task_capability, bug_confirm_capability ---