From 5a4b6e4ccc54a563ccdc44eec6e3f3fa69e72061 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Sat, 22 Aug 2026 01:32:01 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20capability=20=E7=BC=A9=E5=B0=8F?= =?UTF-8?q?=E2=80=94=E2=80=94=E6=8C=89=E8=A7=92=E8=89=B2=E8=81=8C=E8=B4=A3?= =?UTF-8?q?=E6=8B=86=E5=88=86=EF=BC=88=E6=A0=B9=E6=B2=BB=E8=B6=8A=E6=9D=83?= =?UTF-8?q?=E6=B3=A8=E5=85=A5=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - feature_capability 拆成 3 个细分能力:feature_propose_capability(requirement 提功能) / feature_review_capability(pm 审批) / feature_dev_capability(develop 开发) - bug_capability 拆成 2 个:bug_test_capability(test 上报/验证/关闭) / bug_fix_capability(develop 修复) - common/feature 和 common/bug 保留纯状态机规范(去 capability+tools) - 新建 5 个细分能力技能声明细分 capability+tools(系统读建立映射) - 角色技能声明细分 capability:requirement=feature_propose / develop=feature_dev+bug_fix / test=test_plan+test_case+bug_test - 效果:requirement 不再拿到 approve_feature 等 pm 专属工具,从源头避免越权 --- .../sdlc_general/common/bug-fix/SKILL.md | 16 ++++++++++++++++ .../sdlc_general/common/bug-test/SKILL.md | 17 +++++++++++++++++ .../pipelines/sdlc_general/common/bug/SKILL.md | 2 -- .../sdlc_general/common/feature-dev/SKILL.md | 16 ++++++++++++++++ .../common/feature-propose/SKILL.md | 16 ++++++++++++++++ .../sdlc_general/common/feature-review/SKILL.md | 17 +++++++++++++++++ .../sdlc_general/common/feature/SKILL.md | 2 -- .../roles/agent.develop/role/SKILL.md | 2 +- .../roles/agent.requirement/role/SKILL.md | 2 +- .../sdlc_general/roles/agent.test/role/SKILL.md | 2 +- 10 files changed, 85 insertions(+), 7 deletions(-) create mode 100644 skills_library/pipelines/sdlc_general/common/bug-fix/SKILL.md create mode 100644 skills_library/pipelines/sdlc_general/common/bug-test/SKILL.md create mode 100644 skills_library/pipelines/sdlc_general/common/feature-dev/SKILL.md create mode 100644 skills_library/pipelines/sdlc_general/common/feature-propose/SKILL.md create mode 100644 skills_library/pipelines/sdlc_general/common/feature-review/SKILL.md diff --git a/skills_library/pipelines/sdlc_general/common/bug-fix/SKILL.md b/skills_library/pipelines/sdlc_general/common/bug-fix/SKILL.md new file mode 100644 index 0000000..4c0d69b --- /dev/null +++ b/skills_library/pipelines/sdlc_general/common/bug-fix/SKILL.md @@ -0,0 +1,16 @@ +--- +name: bug-fix +description: 修复 Bug 能力——start_fix/fix_bug/list_bugs 工具集(agent.develop 用)。完整状态机见 bug 技能。 +capability: bug_fix_capability +tools: [start_fix, fix_bug, list_bugs] +--- + +# 修复 Bug 能力(agent.develop) + +## 职责 +- `start_fix`:confirmed → fixing(记录处理人) +- `fix_bug`:fixing → fixed(附修复说明 fix_description + fix_commit) +- `list_bugs`:查分配给自己的 Bug + +## 状态机 +完整流转见 `bug` 技能。 diff --git a/skills_library/pipelines/sdlc_general/common/bug-test/SKILL.md b/skills_library/pipelines/sdlc_general/common/bug-test/SKILL.md new file mode 100644 index 0000000..81e3b52 --- /dev/null +++ b/skills_library/pipelines/sdlc_general/common/bug-test/SKILL.md @@ -0,0 +1,17 @@ +--- +name: bug-test +description: 测试 Bug 能力——report_bug/verify_bug/close_bug/list_bugs 工具集(agent.test 用)。完整状态机见 bug 技能。 +capability: bug_test_capability +tools: [report_bug, verify_bug, close_bug, list_bugs] +--- + +# 测试 Bug 能力(agent.test) + +## 职责 +- `report_bug`:用例 fail 后上报 Bug,落库 sd_bugs(status=open) +- `verify_bug`:fixed → verified(验证修复生效) +- `close_bug`:verified → closed(关闭) +- `list_bugs`:查 Bug 清单 + +## 状态机 +完整流转见 `bug` 技能。 diff --git a/skills_library/pipelines/sdlc_general/common/bug/SKILL.md b/skills_library/pipelines/sdlc_general/common/bug/SKILL.md index 2e234d5..f7b4329 100644 --- a/skills_library/pipelines/sdlc_general/common/bug/SKILL.md +++ b/skills_library/pipelines/sdlc_general/common/bug/SKILL.md @@ -1,8 +1,6 @@ --- name: bug description: SDLC 产线默认 Bug 状态机规范——定义 Bug 状态、合法流转、角色→操作权限、严重度/优先级、关闭门禁。agent 处理 Bug 时据此操作,LLM 读本 skill 判断流转合法性。项目可同名 skill 覆盖。触发:上报/确认/修复/验证/关闭/驳回 Bug。 -capability: bug_capability -tools: [report_bug, confirm_bug, start_fix, fix_bug, verify_bug, close_bug, reject_bug, reopen_bug, list_bugs, set_bug_state] --- # Bug 状态机规范(SDLC 产线默认) diff --git a/skills_library/pipelines/sdlc_general/common/feature-dev/SKILL.md b/skills_library/pipelines/sdlc_general/common/feature-dev/SKILL.md new file mode 100644 index 0000000..4421425 --- /dev/null +++ b/skills_library/pipelines/sdlc_general/common/feature-dev/SKILL.md @@ -0,0 +1,16 @@ +--- +name: feature-dev +description: 开发功能能力——start_feature/deliver_feature/list_features 工具集(agent.develop 用)。完整状态机见 feature 技能。 +capability: feature_dev_capability +tools: [start_feature, deliver_feature, list_features] +--- + +# 开发功能能力(agent.develop) + +## 职责 +- `start_feature`:approved → in_progress(开始开发功能) +- `deliver_feature`:in_progress → delivered(开发完成交付验收) +- `list_features`:查自己负责开发的功能清单 + +## 状态机 +完整流转见 `feature` 技能。 diff --git a/skills_library/pipelines/sdlc_general/common/feature-propose/SKILL.md b/skills_library/pipelines/sdlc_general/common/feature-propose/SKILL.md new file mode 100644 index 0000000..cc55d72 --- /dev/null +++ b/skills_library/pipelines/sdlc_general/common/feature-propose/SKILL.md @@ -0,0 +1,16 @@ +--- +name: feature-propose +description: 提功能能力——propose_feature/list_features 工具集(agent.requirement 用)。需求拆解成功能点落库 sd_features。完整状态机见 feature 技能。 +capability: feature_propose_capability +tools: [propose_feature, list_features] +--- + +# 提功能能力(agent.requirement) + +## 职责 +- 需求拆解成功能点,用 `propose_feature` 落库 sd_features(status=proposed) +- 每个业务域的功能都要提,功能描述含输入/处理/输出/验收标准 +- 用 `list_features` 核对功能清单是否完整落库 + +## 状态机 +propose → proposed(功能诞生,待 pm approve)。完整流转见 `feature` 技能。 diff --git a/skills_library/pipelines/sdlc_general/common/feature-review/SKILL.md b/skills_library/pipelines/sdlc_general/common/feature-review/SKILL.md new file mode 100644 index 0000000..30c2582 --- /dev/null +++ b/skills_library/pipelines/sdlc_general/common/feature-review/SKILL.md @@ -0,0 +1,17 @@ +--- +name: feature-review +description: 审批功能能力——approve_feature/reject_feature/verify_feature/reopen_feature 工具集(agent.pm 用)。完整状态机见 feature 技能。 +capability: feature_review_capability +tools: [approve_feature, reject_feature, verify_feature, reopen_feature] +--- + +# 审批功能能力(agent.pm) + +## 职责 +- `approve_feature`:proposed → approved(需求评审通过,功能描述清晰 + 验收标准明确) +- `reject_feature`:proposed/approved → rejected(驳回附意见) +- `verify_feature`:delivered → verified(验收通过,功能满足验收标准且关联 Bug 清零) +- `reopen_feature`:rejected/verified → proposed(回炉重新打开) + +## 状态机 +完整流转见 `feature` 技能。 diff --git a/skills_library/pipelines/sdlc_general/common/feature/SKILL.md b/skills_library/pipelines/sdlc_general/common/feature/SKILL.md index 3c2ac2d..aead12a 100644 --- a/skills_library/pipelines/sdlc_general/common/feature/SKILL.md +++ b/skills_library/pipelines/sdlc_general/common/feature/SKILL.md @@ -1,8 +1,6 @@ --- name: feature description: SDLC 产线默认功能/需求状态机规范——定义功能状态、合法流转、角色→操作权限、门禁、验收标准。agent 处理功能时据此操作,LLM 读本 skill 判断流转合法性。项目可同名 skill 覆盖。触发:提出/审批/开发/交付/验证功能,或用户提到新功能、需求拆解、功能验收。 -capability: feature_capability -tools: [propose_feature, approve_feature, reject_feature, start_feature, deliver_feature, verify_feature, reopen_feature, list_features, set_feature_state] --- # 功能/需求状态机规范(SDLC 产线默认) diff --git a/skills_library/pipelines/sdlc_general/roles/agent.develop/role/SKILL.md b/skills_library/pipelines/sdlc_general/roles/agent.develop/role/SKILL.md index 3d790cd..2e1b425 100644 --- a/skills_library/pipelines/sdlc_general/roles/agent.develop/role/SKILL.md +++ b/skills_library/pipelines/sdlc_general/roles/agent.develop/role/SKILL.md @@ -1,7 +1,7 @@ --- name: role description: 开发工程师角色定义——职责 + 应遵守的开发规范列表(module-development-spec/database-table-definition-spec/crud-definition-spec/web-application-spec/sqlor-database-module,需时 load_skill 加载全文)。 -capability: feature_capability +capability: feature_dev_capability, bug_fix_capability --- # 开发工程师(develop)角色定义 diff --git a/skills_library/pipelines/sdlc_general/roles/agent.requirement/role/SKILL.md b/skills_library/pipelines/sdlc_general/roles/agent.requirement/role/SKILL.md index 56cd823..f4ebb8c 100644 --- a/skills_library/pipelines/sdlc_general/roles/agent.requirement/role/SKILL.md +++ b/skills_library/pipelines/sdlc_general/roles/agent.requirement/role/SKILL.md @@ -1,7 +1,7 @@ --- name: role description: 需求分析师角色定义——职责(拆解需求提功能落库 sd_features、需求文档、识别应用)+ 应遵守的规范列表(project-directory-spec/sdlc-repo-standard,需时 load_skill)。 -capability: feature_capability +capability: feature_propose_capability --- # 需求分析师(requirement)角色定义 diff --git a/skills_library/pipelines/sdlc_general/roles/agent.test/role/SKILL.md b/skills_library/pipelines/sdlc_general/roles/agent.test/role/SKILL.md index 3aa7d2e..0967b23 100644 --- a/skills_library/pipelines/sdlc_general/roles/agent.test/role/SKILL.md +++ b/skills_library/pipelines/sdlc_general/roles/agent.test/role/SKILL.md @@ -1,7 +1,7 @@ --- name: role description: 测试工程师角色定义——职责(冒烟测试检查环境可用性→建测试计划/用例落库→真实执行→失败建 Bug)+ 应遵守的规范列表(需时 load_skill)。 -capability: test_plan_capability, test_case_capability, bug_capability +capability: test_plan_capability, test_case_capability, bug_test_capability --- # 测试工程师(test)角色定义