xiaobaogongai-contract-risk-assessment
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "xiaobaogongai-contract-risk-assessment" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-89219d8adc7e41e0822dfe6cdf9ed439718f2b71fa5cd389a5a8ad31b013350f. Verify the upstream source and version against https://skillhub.cn/skills/user_89f3090c/xiaobaogongai-contract-risk before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
skillhub.cn
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Contract risk assessment tool. Compares three versions—old contract, new contract, and post-review contract—to identify differences, analyze risk changes, and determine whether review comments have been implemented, producing a professional contract revision comparison report. Use this skill when needing multi-version contract comparison, risk change assessment, or verification of review comment implementation.
Introduction source: third_party · user_89f3090c · 1.0.0 Reference
SkillPi interpretation
- Tasks
- Translation pending; see source documentation.
- Inputs and outputs
- Translation pending; see source documentation.
- Limits and differences
- Translation pending; see source documentation.
- Testing
- Not tested
Browse files
Frontmatter
name: xiaobaogongai-contract-risk-assessment
slug: xiaobaogongai-contract-risk-assessment
displayName: 小包公合同风险评估
version: 1.0.0
description: 合同风险评估工具,对比旧合同、新合同、审查后合同三版本,识别差异、分析风险变化、判断审查意见落实情况,输出专业合同修订对比报告。当用户需要对比多版本合同、评估合同风险变化、检查审查意见是否落实时使用此 Skill。
summary: 三版本(旧合同/新合同/审查后合同)对比,识别差异、评估风险变化、检查审查意见是否落实。
tags: [合同对比, 风险评估, 版本比对, 审查意见落实, 免费]
license: MIT
homepage: https://www.xiaobaogong.com
metadata:
version: "1.0.0"
author: 小包公法律AIxiaobaogongai-contract-risk-assessment - 合同风险评估
纯本地运行的合同风险分析工具,无需调用外部 API,完全基于 AI 文本分析能力。支持三版本合同对比(旧合同、新合同、审查后合同),输出律师事务所级别的审查报告。
触发条件
当用户提出以下表述时,必须使用本 Skill:
- "对比合同版本"
- "合同风险评估"
- "检查审查意见是否落实"
- "对比新旧合同"
- "合同差异分析"
- "审查后合同检查"
- "合同修改对比"
- "合同风险变化"
- 以及其他明确表达多版本合同对比、风险变化分析意图的场景
🔴 AI 调用行为约束(强制)
第一步:获取三份合同文件
必须确认用户已提供三份合同文件(PDF 或 Word 格式)。
| 文件要求 | 说明 |
|---|---|
| 格式 | 支持 .pdf、.docx、.doc、.txt |
| 来源 | 用户上传的文件,或已存在于本地的文件路径 |
| 数量 | 必须提供 3 份:旧合同、新合同、审查后合同 |
告知用户上传方式:
请提供需要对比的三份合同文件:
1. 【旧合同】原始版本
2. 【新合同】业务方修改后的版本
3. 【审查后合同】法务/律师审查后的最终版本
支持 PDF、Word、TXT 格式。
行为规则:
- ✅ 用户已提供 3 份文件 → 进入分析流程
- ✅ 用户只提供 2 份 → 询问是否只对比两份,或等待第三份
- ✅ 用户未提供文件 → 告知上传方式,等用户回复
- ❌ 禁止 在未获取合同文件时直接进行分析
第二步:读取合同文件
使用 main.js 读取合同文件内容:
node <skill_dir>/main.js --read <文件路径>
支持读取 PDF、Word、TXT 格式,输出纯文本内容。
第三步:执行三版本对比分析
调用 main.js 执行分析:
node <skill_dir>/main.js --compare <旧合同路径> <新合同路径> <审查后合同路径>
或直接将三份合同内容传给 AI 进行分析。
第四步:输出分析报告
必须按照以下 6 个部分输出:
# 一、合同整体变化摘要
- 修改条款数量
- 新增条款数量
- 删除条款数量
- 高风险变化
- 核心商业变化
# 二、条款级对比表
| 条款 | 旧合同 | 新合同 | 审查后合同 | 差异说明 | 风险分析 | 是否修复 |
|---|
# 三、重点风险变化
按"高风险/中风险/低风险"分类。
# 四、审查意见落实情况
- 已落实
- 未落实
- 部分落实
# 五、最终合同法律风险报告
正式律师式风险报告。
# 六、生成干净版合同
输出已吸收全部修订意见后的最终干净版合同。
分析维度
第一阶段:合同结构化拆解
对三份合同分别按以下维度拆分:
- 合同标题
- 合同主体
- 定义条款
- 权利义务
- 付款条款
- 履行条款
- 交付条款
- 验收条款
- 保密条款
- 知识产权条款
- 违约责任
- 赔偿责任
- 不可抗力
- 解除条款
- 争议解决
- 通知送达
- 生效条款
- 附件
第二阶段:三版本条款映射
自动建立对应关系:
- 旧合同条款 → 新合同对应条款 → 审查后合同对应条款
注意:
- 即使条款编号变化、顺序变化、部分拆分、部分合并,也必须通过法律语义识别对应关系
- 禁止因为编号不同就认为不是同一条款
第三阶段:差异识别
逐条输出:
- 条款状态:未修改 / 已修改 / 新增 / 删除 / 合并 / 拆分
- 具体修改内容:新增了什么 / 删除了什么 / 修改了什么
重点识别:
- 金额变化
- 时间变化
- 权利变化
- 责任变化
- 风险转移
- 管辖法院变化
- 违约责任变化
- 自动续约变化
- 单方解除权变化
- 数据合规义务变化
- 知识产权归属变化
第四阶段:审查意见落实分析
分析"新合同"中的风险是否在"审查后合同"中被修复:
- 已修复风险
- 未修复风险
- 部分修复风险
- 新增风险
第五阶段:法律风险审查
对最终合同(审查后合同)进行专业审查:
- 主体风险
- 权限风险
- 履约风险
- 回款风险
- 违约责任失衡
- 格式条款风险
- 数据合规风险
- AI/知识产权风险
- 自动续约风险
- 单方免责风险
- 赔偿责任无限扩大风险
- 管辖不利风险
输出要求
必须达到的标准
- 使用专业律师语言
- 使用法律合同术语
- 结构化输出
- 不允许泛泛而谈
- 不允许遗漏任何差异
- 必须逐条审查
- 必须像红线审查系统一样工作
禁止的行为
- 只做普通文本 diff
- 只总结不列明修改
- 忽略金额/期限变化
- 忽略隐性风险转移
- 忽略格式条款风险
必须达到的标准
大型律师事务所合同审查报告标准。
技术说明
纯本地运行
- 不调用任何外部 API
- 不涉及扣费、使用次数检验
- 完全免费使用
- 基于 AI 文本分析能力
长文本处理策略
- 先单独解析每份合同,提取结构化信息
- 将结构化信息压缩为对比格式
- 分批传入 AI 进行分析
- 最后汇总生成完整报告
文件读取支持
- PDF:使用
pdf-parse或系统命令解析 - Word:使用
python-docx或系统命令解析 - TXT:直接读取
使用示例
# 读取单份合同
node main.js --read /path/to/contract.docx
# 对比三份合同
node main.js --compare old.pdf new.docx reviewed.docx
# 输出格式
node main.js --compare old.pdf new.docx reviewed.docx --format markdown
注意事项
- 文件格式:确保合同文件可被正常读取,扫描版 PDF 可能无法识别
- 文件大小:超大文件(>50MB)可能需要预处理
- 隐私保护:本工具在本地运行,合同内容不会上传到外部服务器
- 精确度:对于关键金额、日期等信息,建议人工复核
与其他 Skill 的关系
- xiaobaogongai-contract-review:调用小包公 API 进行单合同审查(需扣费)
- xiaobaogongai-contract-drafting:调用小包公 API 起草合同(需扣费)
- xiaobaogongai-contract-risk-assessment:本工具,纯本地三版本对比(免费)
使用建议:
- 先用
xiaobaogongai-contract-review审查单份合同 - 获得审查后合同后,用本工具对比新旧版本差异
- 检查审查意见是否落实,评估风险变化
Current listing version
1.0.0
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 解决企业法务高频刚需场景,三版本合同对比具有明确实用价值
- 支持专业级合同风险分析和审查意见落实情况检查
Highlights
- 触发词覆盖全面,包含多种变体表达
- 边界清晰,不易与其他 Skill 重叠
Areas to improve
-
缺少 When to Use 章节 Reported severity: Minor
文档结构完整但未单独设立 When to Use 使用场景说明章节
Recommendation: 建议增加独立的 When to Use 章节,明确说明适用场景和使用时机
Highlights
- Phase/步骤清晰,有明确的执行流程
- 输出格式要求详细,包含6个标准部分
- frontmatter 完整规范
Areas to improve
-
异常处理机制不明确 Reported severity: Minor
未详细说明文件读取失败、格式不支持、超大文件等异常情况的处理方式
Recommendation: 建议补充异常处理说明,包括错误提示、重试机制和替代方案
Highlights
- 工具调用路径清晰(main.js),参数定义明确
- 支持多种文件格式(PDF、Word、TXT)
- 有明确的隐私保护说明
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
These common operations were not identified in the main document. This does not mean no permissions or risks exist.
Domains or addresses referenced in the document
These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.
- www.xiaobaogong.com
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.