← 返回 Skills 市场
spzwin

cms-bp-org-monthly-report-reviser

作者 spzwin · GitHub ↗ · v1.0.2 · MIT-0
cross-platform ⚠ suspicious
92
总下载
0
收藏
0
当前安装
3
版本数
在 OpenClaw 中安装
/install cms-bp-org-monthly-report-reviser
功能描述
组织 BP 月报修订工具。用于初始化本地或远端组织 BP 月报、按章节边界生成精确修订、执行确认后的安全写入、修改灯色、追加组织自身证据、解释口径,最终交付干净的组织月报 Markdown 目录。
使用说明 (SKILL.md)

组织 BP 月报修订器

本 skill 的主流程与个人月报修订一致:在 bp/report-reviser/{reportMonth}-月报-{reportRecordId}/ 生成干净 Markdown;AI 只按章节规则提出修改方案;用户确认后由脚本精确写入。不要把临时过程文件作为最终正文来源。

核心边界

  • 月份目录是唯一正文来源:最终可见 Markdown 只能放在 bp/report-reviser/{reportMonth}-月报-{reportRecordId}/ 下。
  • 目录月份必须标准化reportMonth 必须使用 YYYY-MM,例如 2026-05-月报-2058815281387614209;不要使用 2026年5月-月报-...2026-05-组织月报-... 作为正式工作目录。
  • 默认不写文件:用户只提出修改意图时,只输出修改方案;只有明确确认后才调用脚本写入。
  • 普通正文修订只用精确替换:使用 apply_chapter_patch,必须提供 targetFile + locator.originalText,禁止整章重写或模糊替换。
  • 专门动作不能混进正文 patch:灯色走 update_lamp_color;证据追加走 add_evidence_ref;普通正文替换不得直接改灯色、证据编号、汇报链接或系统事实。
  • 组织目标灯色按 KR 聚合:目标灯色不能直接自由修改,必须等于当前 KR 灯色聚合结果。
  • 下级承接 BP 内容锁定:第 2.2 章中的“下级承接BP内容”、下级进展摘要、下级目标灯、下级判断理由,以及举措下的下级证据摘要,不能通过普通正文修订修改。
  • 第 7/8 章完全不可改;附录证据索引只允许脚本追加组织自身证据。
  • 第 3/4/5/6 章可普通修订;允许写入用户明确提供的新事实数字,但不能新增无来源目标、证据、组织承诺或汇报链接。
  • ID 全程字符串:禁止对 reportId、groupId、periodId、taskId、huibao id 等做数值转换。

按需读取

场景 必读文件
初始化、灯色、证据、交付命令 references/workflows.md
判断章节能否修改 references/rules/editable-boundary-rules.md
普通正文 patch references/rules/patch-rules.mdreferences/templates/chapter_patch_schema.json
写入失败或校验争议 references/rules/validation-rules.md

主流程

1. 初始化

远端 reportId:

  • 执行以下脚本。若未安装 requests必须先安装,再运行脚本。
  • 禁止在未实际运行脚本的情况下,根据代码、经验或历史输出模拟/推断/口述脚本结果。
python3 scripts/org_monthly_report_reviser.py prepare_revision_workspace --report_id {reportId}

在 sandbox exec / tool runner 中执行远端初始化时,BP_OPEN_API_APP_KEY 必须通过执行工具的 env 参数传入,禁止写成 export ... && python3 ...BP_OPEN_API_APP_KEY=... python3 ... 这类 shell 前缀。

{
  "command": "python3 scripts/org_monthly_report_reviser.py prepare_revision_workspace --report_id {reportId}",
  "env": {
    "BP_OPEN_API_APP_KEY": "{个人AppKey(用于访问业务接口)}"
  }
}

初始化完成后,只向用户展示 bp/report-reviser/{reportMonth}-月报-{reportRecordId}/

2. 定位和判断

根据用户意图定位月份目录下的 Markdown 文件:

  1. 章节编号/章节名精确匹配
  2. 目标编号/目标名称匹配
  3. 全文关键词搜索

然后判断能否改:

  • 可普通修订:提出具体替换方案和目标文件。
  • 需要专门动作:灯色、证据追加走脚本动作。
  • 禁止直接改:说明边界,不生成可执行 patch。

3. 用户确认前只给方案

确认表达包括:确认写入可以,写进去就这样改帮我保存按这个改

确认前输出类似:

我会修改:
3_问题_偏差与原因分析.md

修改点:
1. ...
2. ...

请确认是否写入。

4. 确认后写入

普通正文修订:

python3 scripts/org_monthly_report_reviser.py apply_chapter_patch \
  --report_id {reportId} \
  --patch_file {patch_path}

灯色修改:

python3 scripts/org_monthly_report_reviser.py update_lamp_color \
  --report_id {reportId} \
  --code A8B8-1.1 \
  --new_lamp yellow \
  --reason "用户确认后的灯色判断依据;涉及证据 R1001"

追加组织自身证据:

python3 scripts/org_monthly_report_reviser.py add_evidence_ref \
  --report_id {reportId} \
  --evidence_file {evidence_json_path}

脚本成功后会刷新 report_manifest.jsonchapter_revision_manifest.json,并追加 revision_history.jsonl

交付

交付给用户或前端时,只交付 bp/report-reviser/{reportMonth}-月报-{reportRecordId}/

  • Markdown 是正文。
  • JSON 是索引/校验/历史。
  • 不读取、不展示、不依赖临时过程文件。
安全使用建议
Install only if you are comfortable giving the skill a business API key and allowing it to create and modify local report workspaces. Before running initialization on an existing report ID, back up bp/report-reviser or use a fresh workspace, because existing generated files in that report directory may be deleted.
能力评估
Purpose & Capability
The remote API access, API key use, Markdown generation, precise patching, lamp-color updates, evidence appends, and manifest/history writes are coherent with the stated organization monthly report revision purpose.
Instruction Scope
The skill repeatedly instructs the agent to wait for user confirmation before ordinary edits, but initialization is treated as an allowed setup step and does not clearly warn that existing generated files may be removed.
Install Mechanism
The artifact includes a Python script and says to install requests if missing; this is expected for the remote API workflow, but dependencies and required permissions are not declared in a tighter manifest.
Credentials
The skill uses an environment API key, network access, local reads, and local writes. These are mostly purpose-aligned, but the scope is under-declared and the workspace mutation behavior is broader than a user may expect.
Persistence & Privilege
The script persists report files, manifests, and revision history under bp/report-reviser, and confirmed code shows initialization recursively removes nearly all existing contents of the computed report directory without confirmation, dry run, or backup.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install cms-bp-org-monthly-report-reviser
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /cms-bp-org-monthly-report-reviser 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.2
自动升级发布:组织 BP 月报修订工具。用于初始化本地或远端组织 BP 月报、按章节边界生成精确修订、执行确认后的安全写入、修改灯色、追加组织自身证据、解释口径,最终交付干净的组织月报 Markdown 目录。
v1.0.1
自动升级发布:组织 BP 月报修订工具。用于初始化本地或远端组织 BP 月报、按章节边界生成精确修订、执行确认后的安全写入、修改灯色、追加组织自身证据、解释口径,最终交付干净的组织月报 Markdown 目录。
v1.0.0
初始版本
元数据
Slug cms-bp-org-monthly-report-reviser
版本 1.0.2
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 3
常见问题

cms-bp-org-monthly-report-reviser 是什么?

组织 BP 月报修订工具。用于初始化本地或远端组织 BP 月报、按章节边界生成精确修订、执行确认后的安全写入、修改灯色、追加组织自身证据、解释口径,最终交付干净的组织月报 Markdown 目录。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 92 次。

如何安装 cms-bp-org-monthly-report-reviser?

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

cms-bp-org-monthly-report-reviser 是免费的吗?

是的,cms-bp-org-monthly-report-reviser 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

cms-bp-org-monthly-report-reviser 支持哪些平台?

cms-bp-org-monthly-report-reviser 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 cms-bp-org-monthly-report-reviser?

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

💬 留言讨论