feat: capability 缩小——按角色职责拆分(根治越权注入)
- 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 专属工具,从源头避免越权
This commit is contained in:
parent
f810497384
commit
5a4b6e4ccc
@ -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` 技能。
|
||||
@ -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` 技能。
|
||||
@ -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 产线默认)
|
||||
|
||||
@ -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` 技能。
|
||||
@ -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` 技能。
|
||||
@ -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` 技能。
|
||||
@ -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 产线默认)
|
||||
|
||||
@ -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)角色定义
|
||||
|
||||
@ -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)角色定义
|
||||
|
||||
@ -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)角色定义
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user