v1.0.1: 制度文件冲突检测与合规审查 - 初版骨架

基于匠厂 skill-template 主仓 v1.0.108 派生的业务技能。

核心业务:
- 起草人在 OA 上传新制度送审稿时,自动比对校内现行制度库(约 300+ 份)
- 条款级冲突检测 + 程序合规性体检 + 疑似重复发文检测
- 在 Word 侧栏生成批注清单,一键跳转冲突原文

输出形态:
- 制度送审稿表状态更新(可送审 → 审查中 → 已通过 / 冲突中 / 驳回)
- 冲突条款清单 + HTML 审查报告 + 可选 PDF 导出

预期提效:制度出台后因"与 XX 文件冲突"而被要求暂停/修订的事件减少至零起。

业务行生命周期:可送审 → 审查中 → 已通过 / 冲突中 / 驳回 / 已跳过

Co-Authored-By: Claude Code <noreply@anthropic.com>
This commit is contained in:
2026-09-14 12:19:05 +08:00
commit cd71f49709
38 changed files with 1626 additions and 0 deletions

122
assets/actions.json Normal file
View File

@@ -0,0 +1,122 @@
{
"schemaVersion": 1,
"skill": "detect-policy-conflict-gs",
"actions": [
{
"id": "health",
"label": "运行检查",
"description": "检查技能运行环境、OA API 连通性、制度库索引完整性,不启动长任务。",
"placements": ["skill-detail", "agent"],
"executionProfile": "sync",
"entrypoint": {
"type": "cli",
"command": "health",
"args": []
}
},
{
"id": "version",
"label": "查看版本",
"description": "返回技能版本和机器标识。",
"placements": ["skill-detail"],
"executionProfile": "sync",
"entrypoint": {
"type": "cli",
"command": "version",
"args": []
}
},
{
"id": "config-path",
"label": "查看配置位置",
"description": "返回技能配置文件位置。",
"placements": ["skill-detail"],
"executionProfile": "sync",
"entrypoint": {
"type": "cli",
"command": "config-path",
"args": []
}
},
{
"id": "audit-policy-draft",
"label": "审查送审稿",
"description": "对一份新制度送审稿执行条款向量化 + 制度库比对 + 程序合规体检 + 重复发文检测,10~30 秒内返回结果。",
"placements": ["row", "agent", "skill-detail"],
"executionProfile": "sync",
"bind": {
"tables": ["制度送审稿"],
"selectionMode": "required",
"labelColumn": "送审稿标题"
},
"entrypoint": {
"type": "cli",
"command": "audit-policy-draft",
"args": ["--draft-id", "{row.送审稿ID}"]
}
},
{
"id": "recheck-conflict-clause",
"label": "重新比对冲突条款",
"description": "对某一条已经标记冲突的条款重新比对,常用于制度库更新后的复核。",
"placements": ["row", "agent"],
"executionProfile": "sync",
"bind": {
"tables": ["冲突条款清单"],
"selectionMode": "required",
"labelColumn": "新条款摘要"
},
"entrypoint": {
"type": "cli",
"command": "recheck-conflict-clause",
"args": ["--clause-id", "{row.冲突条款ID}"]
}
},
{
"id": "export-review-report",
"label": "导出审查报告",
"description": "将指定送审稿的审查结果导出为 PDF 报告,落到本技能 output/ 目录。",
"placements": ["row", "agent"],
"executionProfile": "sync",
"bind": {
"tables": ["制度送审稿"],
"selectionMode": "required",
"labelColumn": "送审稿标题"
},
"entrypoint": {
"type": "cli",
"command": "export-review-report",
"args": ["--draft-id", "{row.送审稿ID}", "--format", "pdf"]
}
},
{
"id": "mark-policy-status",
"label": "标记送审稿状态",
"description": "手动将送审稿标记为已通过 / 驳回(通常用于人工终审后回写状态)。",
"placements": ["row"],
"executionProfile": "sync",
"bind": {
"tables": ["制度送审稿"],
"selectionMode": "required",
"labelColumn": "送审稿标题"
},
"entrypoint": {
"type": "cli",
"command": "mark-policy-status",
"args": ["--draft-id", "{row.送审稿ID}", "--target-status", "{form.target_status}"]
}
},
{
"id": "rescan-pending-drafts",
"label": "定时扫描存量送审稿",
"description": "扫描所有"审查中 / 冲突中"状态的送审稿,因制度库新增 / 变更而重新比对。占位 Action,cron 启用后由定时调度。",
"placements": ["cron", "agent"],
"executionProfile": "async",
"entrypoint": {
"type": "cli",
"command": "rescan-pending-drafts",
"args": []
}
}
]
}