← 返回 Skills 市场
spzwin

Cms Bp Manager

作者 spzwin · GitHub ↗ · v2.0.2 · MIT-0
cross-platform ⚠ suspicious
118
总下载
0
收藏
1
当前安装
3
版本数
在 OpenClaw 中安装
/install cms-bp-manager
功能描述
BP管理助手 — 查看/管理自己与下级的BP(目标/关键成果/关键举措)、AI质量检查。触发词:bp/BP/BP管理/BP目标/BP成果/BP举措/衡量标准/对齐/关键任务/关键成果/上级BP/下级BP/承接/目标管理/OKR/KR/我的目标/我的成果/查看BP/查看目标/检查BP/审计BP。
使用说明 (SKILL.md)

BP Manager(读 + 审计)

BP 管理助手 — 查看/管理自己与下级的BP,AI质量检查(基于康哲规则)


角色定位

BP Manager 是面向管理者和员工的 BP 日常管理工具,本技能承载只读查询 + AI 审计检查能力:

  1. BP 查看:查看自己或下级的 BP(目标/关键成果/关键举措)
  2. AI 检查:基于康哲规则检查 BP 质量(结构/承接/衡量标准)
  3. 汇报查看:查看任务关联的汇报历史
  4. 搜索功能:按名称搜索任务或分组
  5. 月度汇报查询:按分组+月份查询月度汇报
  6. 下级BP建议:为下级的 BP 提供改进建议

写入能力(新增KR/新增举措/延期提醒)已拆分至 cms-bp-manager-write


核心场景

场景一:查看 BP

用户意图:快速了解 BP 全貌

触发词

  • "查看我的 BP"
  • "查看下属的 BP"
  • "查看产品中心的 BP"

执行流程

  1. 识别用户身份(通过员工ID)
  2. 获取周期列表,选择当前周期
  3. 获取分组树,定位到目标分组
  4. 调用 getGroupMarkdown 获取完整 BP
  5. 格式化输出给用户

示例

用户:查看我的 BP
助手:正在获取您的 BP...
[输出 Markdown 格式的 BP 内容]

场景二:AI 检查 BP

用户意图:检查 BP 是否符合康哲规则

触发词

  • "检查我的 BP"
  • "BP 质量检查"
  • "帮我检查一下这个 BP"
  • "审计 BP"

执行流程

  1. 获取目标 BP 内容(Markdown 格式)
  2. 基于康哲规则进行检查:
    • 结构完整性:是否按 G-R-A 三层拆解
    • 承接关系:下级目标是否承接上级关键举措
    • 衡量标准:是否符合 SMART 原则
    • 层级深度:是否符合所在层级要求
  3. 输出检查结果和改进建议

检查规则(来自 references/kangzhe-rules.md):

  • 集团层级:拆解到 2 层(目标 → 关键成果)
  • 中心/部门/员工层级:拆解到 3 层(目标 → 关键成果 → 关键举措)
  • 衡量标准:必须包含指标/阈值/口径/数据源/统计频率
  • 承接规则:下级目标承接上级关键成果/关键举措

示例

用户:检查我的 BP
助手:正在检查您的 BP...

检查结果:
✅ 结构完整性:通过(3层结构完整)
✅ 承接关系:通过(目标承接了上级关键举措)
⚠️ 衡量标准:关键成果 1.2 缺少数据源
✅ 层级深度:通过(符合部门层级要求)

建议:
- 为关键成果 1.2 补充数据源信息

场景三:下级 BP 建议

用户意图:为下级的 BP 提供创建关键举措的建议

触发词

  • "帮我看看下属的 BP"
  • "给下级提点建议"
  • "为下属的 BP 提建议"

执行流程

  1. 获取下级 BP 内容
  2. 分析 BP 内容,识别:
    • 哪些关键成果缺少关键举措
    • 哪些关键举措过于空泛,需要拆解
    • 哪些关键举措缺少承接人
  3. 基于分析结果,生成改进建议
  4. 输出建议列表

示例

用户:帮我看看张三的 BP,给他提点建议
助手:正在分析张三的 BP...

建议为张三的 BP 改进以下内容:

**关键成果 1.1:客户拜访量达到50家**
- 建议新增举措:建立拜访记录系统,记录每次拜访的详细信息
- 建议新增举措:制定月度拜访计划,明确每周拜访目标

**关键成果 1.2:签约客户数达到20家**
- 建议新增举措:重点客户专项跟进,建立客户档案
- 建议新增举措:每周五回报跟进进度,及时调整策略

如需创建这些关键举措,请使用写入技能 cms-bp-manager-write

场景四:查看汇报历史

用户意图:查看某个任务关联的汇报历史

触发词

  • "查看目标 X 的汇报历史"
  • "这个任务的汇报记录"

执行流程

  1. 识别目标任务
  2. 调用 pageAllReports 接口(支持时间范围过滤)
  3. 格式化输出汇报列表

示例

用户:查看目标 A4-1 的汇报历史
助手:正在获取汇报历史...

目标【A4-1】的汇报历史(共5条):

1. 手动汇报 - 2026-03-10
   - 标题: Q1 进度汇报
   - 业务时间: 2026-03-08

2. AI汇报 - 2026-03-05
   - 标题: AI进度分析
   - 业务时间: 2026-03-01

...

场景五:搜索任务

用户意图:按名称搜索 BP 任务

触发词

  • "搜索关于客户拜访的任务"
  • "找一下包含'全栈'的任务"

执行流程

  1. 识别搜索关键词
  2. 确定搜索范围(分组ID)
  3. 调用 searchTaskByName 接口
  4. 输出搜索结果

示例

用户:搜索关于客户拜访的任务
助手:正在搜索...

找到 2 个相关任务:

1. 【关键成果】客户拜访量达到50家
   - 分组: 技术部
   - 状态: 进行中
   - 承接人: 张三

2. 【关键举措】每周拜访5家客户
   - 分组: 技术部
   - 状态: 进行中
   - 承接人: 李四

场景六:查询月度汇报

用户意图:按分组+月份查询月度汇报

触发词

  • "查看3月份的月度汇报"
  • "月度汇报查询"

执行流程

  1. 确认分组ID和汇报月份(YYYY-MM)
  2. 调用 getMonthlyReportByMonth 接口
  3. 格式化输出月度汇报内容

写入能力(已拆分)

以下场景已拆分至 cms-bp-manager-write,本技能不再承载:

  • 新增关键成果:为某个目标添加新的关键成果 → cms-bp-manager-write
  • 新增关键举措:为某个关键成果添加关键举措 → cms-bp-manager-write
  • 延期提醒:向指定员工发送延期提醒 → cms-bp-manager-write

环境变量

变量名 说明 获取方式
BP_APP_KEY BP 系统 API 密钥 从玄关开放平台获取

自动更新检查(每次运行 commands.py 默认启用)

变量名 说明
BP_MANAGER_SKIP_UPDATE_CHECK 设为 1/true/yes 时跳过更新检查
BP_MANAGER_PROMPT_UPDATE 设为 1/true/yes 时检测到新版本会提示是否更新(仅 TTY 生效)
BP_MANAGER_AUTO_UPDATE 设为 1/true/yes 时检测到新版本自动执行更新命令

更新命令固定为:npx clawhub@latest install cms-bp-manager --force


API 接口清单

本技能使用的接口(只读)

接口 方法 用途
GET /bp/period/list 获取周期列表 选择工作周期
GET /bp/group/list 获取分组树 导航到目标分组
POST /bp/group/getPersonalGroupIds 批量获取个人分组ID 快速定位员工
GET /bp/task/v2/getSimpleTree 获取BP任务树 了解完整结构
GET /bp/goal/list 获取目标列表 查看目标概览
GET /bp/goal/{goalId}/detail 获取目标详情 查看单个目标完整信息
GET /bp/keyResult/list 获取关键成果列表
GET /bp/keyResult/{keyResultId}/detail 获取关键成果详情
GET /bp/action/list 获取关键举措列表
GET /bp/action/{actionId}/detail 获取关键举措详情
GET /bp/group/markdown 获取分组BP Markdown AI 分析友好
POST /bp/group/batchGetKeyPositionMarkdown 批量获取关键岗位详情
GET /bp/task/children 获取任务子树骨架
POST /bp/task/relation/pageAllReports 查询任务关联汇报 支持时间范围过滤
GET /bp/delayReport/list 查询延期汇报历史
GET /bp/task/v2/searchByName 按名称搜索任务
GET /bp/group/searchByName 按名称搜索分组
GET /bp/monthly/report/getByMonth 按分组+月份查询月度汇报

写入接口(归属 cms-bp-manager-write)

接口 方法 用途
POST /bp/task/v2/addKeyResult 新增关键成果 → cms-bp-manager-write
POST /bp/task/v2/addAction 新增关键举措 → cms-bp-manager-write
POST /bp/delayReport/send 发送延期提醒汇报 → cms-bp-manager-write

数据模型

Period(周期)

interface Period {
  id: string;        // 周期 ID
  name: string;      // 周期名称
  status: number;    // 1=启用,0=未启用
}

Group(分组)

interface Group {
  id: string;           // 分组 ID
  name: string;         // 分组名称
  type: 'org' | 'personal';  // 组织/个人
  levelNumber: string;  // 层级编码
  employeeId?: string;  // 个人分组时的员工ID
  parentId?: string;    // 父分组 ID
  childCount?: number;  // 下级分组数量
  children?: Group[];   // 子分组
}

Goal(目标)

interface Goal {
  id: string;              // 目标 ID
  name: string;            // 目标名称
  fullLevelNumber: string; // 目标编码
  statusDesc: string;      // 状态描述
  reportCycle: string;     // 汇报周期
  planDateRange: string;   // 计划时间范围
  taskUsers: TaskUser[];   // 参与人
  krCount?: number;        // 关键成果数量
  actionCount?: number;    // 关键举措数量
  keyResults?: KeyResult[];// 关键成果列表
}

KeyResult(关键成果)

interface KeyResult {
  id: string;              // 关键成果 ID
  name: string;            // 关键成果名称
  fullLevelNumber: string; // 编码
  statusDesc: string;      // 状态描述
  measureStandard: string; // 衡量标准
  reportCycle: string;     // 汇报周期
  planDateRange: string;   // 计划时间范围
  taskUsers: TaskUser[];   // 参与人
  actionCount?: number;    // 关键举措数量
  actions?: Action[];      // 关键举措列表
}

Action(关键举措)

interface Action {
  id: string;              // 关键举措 ID
  name: string;            // 关键举措名称
  fullLevelNumber: string; // 编码
  statusDesc: string;      // 状态描述
  reportCycle: string;     // 汇报周期
  planDateRange: string;   // 计划时间范围
  taskUsers: TaskUser[];   // 参与人
}

TaskUser(任务参与人)

interface TaskUser {
  taskId: string;   // 任务 ID
  role: string;     // 角色:承接人/协办人/抄送人/监督人/观察人
  empList: Employee[]; // 员工列表
}

Employee(员工)

interface Employee {
  id: string;   // 员工 ID
  name: string; // 员工姓名
}

错误处理

错误码 说明 处理建议
1 请求成功 正常处理
0 通用失败 提示用户稍后重试
610002 appKey 无效 检查 BP_APP_KEY 环境变量
610015 无访问权限 提示用户无权限访问该资源

使用注意事项

  1. API 限制:当前系统不支持编辑和删除操作,只能通过 Web UI 进行
  2. 权限控制:部分接口有数据权限校验,无权限时返回空列表
  3. 周期管理:建议每次操作前先确认当前周期
  4. 性能考虑getGroupMarkdown 返回完整 BP,Token 消耗较大,适合 AI 分析场景
  5. 鉴权依赖:所有接口调用统一依赖 cms-auth-skills,脚本不实现登录与换 token

审计输出要求(强制)

  • 结论必须精确引用到具体对象(编号+名称)
  • 不允许使用"部分/某些/个别"等模糊指代
  • 问题必须包含:对象精确引用 + 严重等级 + 原因 + 建议
  • 审计维度覆盖:基础合规、向上对齐、向下承接、GAP 分析

能力树

cms-bp-manager/
├── SKILL.md
├── README.md
├── setup.md
├── design/
│   └── design.md
├── references/
│   ├── api-endpoints.md
│   ├── api-request--20260404.md
│   ├── kangzhe-rules.md
│   ├── maintenance.md
│   └── audit/
│       └── README.md
└── scripts/
    ├── bp_client.py
    └── commands.py

版本历史

版本 日期 变更说明
v1.0.0 2026-04-04 初版,包含 BP 查看/管理/检查/提醒功能(原 bp-manager)
v2.0.0 2026-04-08 重构:基于原版 bp-manager 重建,写入能力拆分至 cms-bp-manager-write;新增月度汇报查询、时间范围过滤、UTF-8 兼容
安全使用建议
This skill appears to implement the stated read-only BP viewing and AI-audit functionality, but there are a few things to check before installing: - Required credential: The scripts and SKILL.md expect BP_APP_KEY (and optionally BP_EMPLOYEE_ID/EMPLOYEE_ID). The registry metadata shown did not declare these — confirm the platform will provide BP_APP_KEY via cms-auth-skills or that you will set it. Do not provide broader credentials (e.g., AWS keys) — only the BP appKey is needed. - Auto-update behavior: commands.py can contact GitHub and run 'npx clawhub@latest install cms-bp-manager --force' (via shell). This will download and run external code. If you want to limit risk, set BP_MANAGER_SKIP_UPDATE_CHECK=1 and avoid enabling BP_MANAGER_AUTO_UPDATE, or run the skill in an isolated environment and review/approve updates manually. - Network endpoints: the client defaults to a specific BaseUrl (https://sg-al-cwork-web.mediportal.com.cn/open-api). Confirm that endpoint is correct and expected for your environment. - Verify provenance: SKILL.md points to a GitHub repo, but the registry homepage is empty. If possible, inspect the referenced GitHub repo and confirm the owner and release artifacts before trusting auto-update. - Operational advice: run the provided scripts in a sandbox or non-production environment first, inspect network traffic, and ensure the appKey has the minimum necessary scope. If you require higher assurance, request the publisher to add the BP_APP_KEY requirement into the registry metadata and to disable automatic runtime installs or to make updates purely manual. I have medium confidence in this assessment because the code and docs broadly match the stated purpose, but the metadata omissions and runtime install behavior are clear inconsistencies that raise risk. Providing the registry manifest that explicitly lists required envs and disabling auto-update would increase confidence.
功能分析
Type: OpenClaw Skill Name: cms-bp-manager Version: 2.0.2 The skill bundle contains a self-update mechanism in 'scripts/commands.py' that uses 'subprocess.run(shell=True)' to execute shell commands ('npx clawhub install...') based on version checks against the GitHub API (api.github.com). While this is documented as a maintenance feature, the practice of an agent-based skill autonomously fetching and executing remote code via the shell is a high-risk behavior that could be leveraged for supply chain attacks. The rest of the code in 'scripts/bp_client.py' appears to be a standard API client for a Business Plan (BP) management system.
能力评估
Purpose & Capability
The SKILL.md, design docs, and scripts implement read-only BP view/search/report and AI audit logic (no write operations). The code calls only BP read endpoints and implements the Kangzhe rules. This matches the stated purpose. However the skill expects an appKey (BP_APP_KEY) and integrates with cms-auth-skills for auth, but the registry metadata at the top of the submission did not declare required environment variables or a primary credential — an inconsistency between declared registry requirements and the runtime requirements.
Instruction Scope
Runtime instructions and included scripts perform network calls to the BP API and GitHub, read environment variables (BP_APP_KEY, BP_EMPLOYEE_ID/EMPLOYEE_ID), and may run a subprocess to perform an update. The SKILL.md and scripts keep scope to BP read/search/report and AI checks, but the auto-update behavior (see commands.py) executes 'npx clawhub@latest install cms-bp-manager --force' via subprocess.run when auto-update is enabled or on prompt. That grants the skill the ability to download and execute code from the network at runtime, which is outside the simple read-and-audit scope and should be considered carefully.
Install Mechanism
There is no install specification in the registry (instruction-only), which is low risk, but the commands.py contains an automatic update/check flow that can invoke npx to install/update the skill (downloads code from the network). Running 'npx ... install cms-bp-manager --force' from within the skill is equivalent to fetching and executing external code at runtime and is a higher-risk install mechanism. The update command is conditional but enabled by default in the script unless skipped via env vars.
Credentials
The code requires an appKey (BP_APP_KEY) for the BP API and optionally reads BP_EMPLOYEE_ID/EMPLOYEE_ID; these are appropriate for a BP viewer/auditor. However the registry metadata presented to the platform declared no required environment variables/primary credential, which is inconsistent and misleading. Also the skill's auto-update behavior is controlled by additional env vars (BP_MANAGER_SKIP_UPDATE_CHECK, BP_MANAGER_PROMPT_UPDATE, BP_MANAGER_AUTO_UPDATE) that are documented in SKILL.md but not surfaced in the registry metadata — the mismatch reduces transparency about what credentials/config the skill needs and what it may do.
Persistence & Privilege
The skill does not request 'always: true' and does not modify other skills' configs. It can run autonomously (disable-model-invocation=false) which is platform default. The notable persistence/privilege concern is the auto-update path that can install/update the skill using npx/clawhub at runtime — this can change files on disk and should be restricted or disabled if you want to limit runtime modification.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install cms-bp-manager
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /cms-bp-manager 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v2.0.2
cms-bp-manager 2.1.0 - 增加自动更新检查相关说明及环境变量配置(BP_MANAGER_SKIP_UPDATE_CHECK、BP_MANAGER_PROMPT_UPDATE、BP_MANAGER_AUTO_UPDATE)。 - 默认在运行 commands.py 时自动检测技能新版本,并可根据环境变量自动或手动更新。 - SKILL.md 文档同步更新,详细列出自动更新机制及相关操作指引。 - 其余功能未变,保持只读/审计核心能力。
v2.0.1
从内部平台同步更新:BP管理助手 v2.0.1,优化BP查看和AI质量检查功能
v2.0.0
BP管理助手 — 查看/管理自己与下级的BP(目标/关键成果/关键举措)、AI质量检查
元数据
Slug cms-bp-manager
版本 2.0.2
许可证 MIT-0
累计安装 1
当前安装数 1
历史版本数 3
常见问题

Cms Bp Manager 是什么?

BP管理助手 — 查看/管理自己与下级的BP(目标/关键成果/关键举措)、AI质量检查。触发词:bp/BP/BP管理/BP目标/BP成果/BP举措/衡量标准/对齐/关键任务/关键成果/上级BP/下级BP/承接/目标管理/OKR/KR/我的目标/我的成果/查看BP/查看目标/检查BP/审计BP。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 118 次。

如何安装 Cms Bp Manager?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install cms-bp-manager」即可一键安装,无需额外配置。

Cms Bp Manager 是免费的吗?

是的,Cms Bp Manager 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Cms Bp Manager 支持哪些平台?

Cms Bp Manager 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Cms Bp Manager?

由 spzwin(@spzwin)开发并维护,当前版本 v2.0.2。

💬 留言讨论