aladin-contract-forge
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 "aladin-contract-forge" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-c62d1825cf8fda997cc816514373c1326289e023d5efae74fbeb80f0e88093d9. Verify the upstream source and version against https://skillhub.cn/skills/user_d18c97ea/aladin-contract-forge 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
Locally, with zero external dependencies, parse docx/txt contracts and convert them into a structured clause representation; run 15 risk-rule scans on clauses; perform a checklist-style inspection for 6 categories of required contract clauses; provide side-by-side clause comparison between two versions; present results on an HTML dashboard and produce an MD-format review report.
Introduction source: third_party · user_d18c97ea · 1.0.0 Reference
SkillPi interpretation
- Tasks
- Translation pending; see source documentation.
- Inputs and outputs
- Translation pending; see source documentation.
- Testing
- Not tested
Browse files
Frontmatter
name: aladin-contract-forge
slug: aladin-contract-forge
version: 1.0.0
displayName: 阿拉丁·合同智能工坊|零依赖docx解析·风险扫描·条款体检·双版本比对·审查报告
description: 合同审查/合同风险扫描/合同比对一站式本地工坊【阿拉丁出品】。直接解析 docx/txt/md 合同文件(零依赖零上传),自动结构化条款树,内置 15 条中文合同风险规则库(单方解除/最终解释权/全部免责/高额违约金/罚息超限/知识产权归属等),6 类合同(买卖/服务/租赁/劳动/借款/通用)必备条款体检与覆盖率评分,金额大小写与当事人一致性检查,双版本合同逐条 diff 比对,一键生成 HTML 风险看板 + Markdown 审查意见书。当用户说"帮我审合同、看看这份合同有什么坑、合同风险检查、对比两版合同改了哪里、合同审查报告、review contract、contract risk"时触发。与纯提示词审查类技能不同:本技能直接读文件、有确定性规则引擎、有结构化评分与可视化报告,全程本地不外传。
summary: 零依赖本地解析 docx/txt 合同→条款结构化→15条风险规则扫描→6类合同必备条款体检→双版本比对→HTML看板+MD审查意见书
category: professional
company: 阿拉丁
agent_created: true
tags:
- 合同审查
- 合同风险
- 合同比对
- 合同体检
- 法律合规
- 法务
- 合同管理
- 违约金
- 免责条款
- 必备条款
- docx解析
- 版本对比
- 风险扫描
- 审查报告
- contract-review
- contract-risk
- legal
- compliance
- document-diff
- 阿拉丁阿拉丁·合同智能工坊(aladin-contract-forge)
【阿拉丁出品】把"合同审查"从纯语感提示词升级为可复算的本地流水线:文件直读 → 条款结构化 → 规则化风险扫描 → 必备条款体检 → 双版本比对 → 结构化评分报告。全程纯 Python 标准库,零 pip 依赖、零上传,敏感合同不出本机。
何时触发
- "帮我审一下这份合同 / 看看有什么坑 / 有什么风险"
- "这份 docx 合同解析一下条款 / 提取甲乙方、金额、日期"
- "对比这两版合同改了哪些条款"
- "生成合同审查报告 / 审查意见书"
- "这份租赁/劳动/借款/服务/买卖合同缺不缺必备条款"
- "contract review / contract risk scan / compare contracts"
何时不触发
- 起草全新合同文本(可由 Hy3 直接撰写,本技能负责"审"不负责"写")
- 扫描件/图片版合同(需 OCR,建议先转文字版)
- 英文/外文合同深度审查(规则库面向中文合同)
- 需要出具正式法律意见书(本技能输出仅供参考,不构成法律意见)
- PDF 合同解析请先用 aladin-pdf-forge 转出文本再进本工坊
能力总览
| # | 能力 | 脚本 | 说明 |
|---|---|---|---|
| 1 | 多源导入 | scripts/contract_ingest.py |
docx(直接解压 XML 解析)/txt/md → 合同 IR JSON;条款树(章/条/款项)+ 当事人/金额(大小写)/日期/期限/比例实体抽取 |
| 2 | 风险扫描 | scripts/contract_review.py scan |
15 条中文合同风险规则(高/中/低危分级),逐条款命中定位 + 修改建议 |
| 3 | 必备条款体检 | 同上 | 6 类合同(通用/买卖/服务/租赁/劳动/借款)必备条款清单,覆盖率评分,缺失提醒 |
| 4 | 一致性检查 | 同上 | 金额大小写齐备性、当事人完整性、日期缺失检查 |
| 5 | 综合评分 | 同上 | 100 分制 + A(可签)/B(小改)/C(需修订)/D(高风险) 四档 |
| 6 | 双版本比对 | scripts/contract_review.py diff |
逐条款新增/删除/修改识别,相似度排序 + unified diff |
| 7 | 报告导出 | scripts/contract_report.py |
HTML 风险看板(评分/风险明细/体检/比对/要素速览)+ Markdown 审查意见书 |
| 8 | 语义深审 | Hy3 | 在规则结论之上做语义级风险解读、大写金额换算核对、谈判要点建议 |
标准工作流
PY="C:/Users/adam/.workbuddy/binaries/python/versions/3.13.12/python.exe"
# 1. 导入合同(docx/txt/md → IR)
"$PY" scripts/contract_ingest.py 合同.docx --out contract_ir.json
# 2. 风险扫描 + 体检(--type: 通用|买卖|服务|租赁|劳动|借款)
"$PY" scripts/contract_review.py scan --ir contract_ir.json --type 服务 --out review.json
# 3.(可选)双版本比对
"$PY" scripts/contract_ingest.py 合同V2.docx --out contract_v2_ir.json
"$PY" scripts/contract_review.py diff --ir contract_ir.json --ir2 contract_v2_ir.json --out diff.json
# 4. 生成报告(HTML 看板 + MD 意见书)
"$PY" scripts/contract_report.py --review review.json --diff diff.json --ir contract_ir.json \
--html contract_report.html --md contract_report.md
执行完脚本后,Agent(Hy3)应在规则结论之上补充语义层审查:
- 通读 IR 中条款原文,指出规则未覆盖的语义风险(权利义务不对等、条款互相矛盾等)
- 核对大写金额与小写金额是否一致(如"人民币壹拾万元整" vs "¥100,000")
- 结合用户立场(甲方/乙方)给出谈判要点与优先级
- 把以上内容并入最终答复,与报告一起交付
输入与输出
- 输入:
.docx(Word 2007+,直接解压解析,无需安装 Office)/.txt/.md合同文本 - 输出:
*_ir.json(条款结构化)、review.json(风险+体检+评分)、diff.json(版本比对)、contract_report.html(可视化看板)、contract_report.md(审查意见书)
能力边界(如实告知)
- 能:docx/txt/md 解析、15 规则风险扫描、6 类合同体检、双版比对、评分报告
- 不能:OCR 扫描件、.doc 老格式(请另存为 .docx)、出具正式法律意见、保证穷尽全部风险
- 规则引擎结论是确定性的(可复算),语义层结论由 Hy3 生成(需人工复核)
- 全程本地运行,不联网、不上传合同内容
重要约束
- 脚本仅使用 Python 标准库(zipfile/xml/re/json/difflib),零 pip 依赖
- 审查结论仅供参考,重大合同务必咨询执业律师——报告页脚已固定注明
- 不篡改原合同文件,所有产物写入新文件
- 大小写金额换算核对由 Hy3 语义层完成,规则层只做齐备性提示(避免误报)
渐进式披露
| 需要了解 | 阅读 |
|---|---|
| 风险规则库明细与扩展方法 | references/risk-rules.md |
| 6 类合同必备条款清单依据 | references/clause-checklists.md |
| IR JSON 结构定义 | references/ir-schema.md |
| 完整用法示例(含输出样例) | references/usage-examples.md |
| 样例合同(含 9 处埋雷) | assets/sample_contract.txt / assets/sample_contract_v2.txt |
出品:阿拉丁 | 同系列:aladin-pdf-forge(PDF 解析)/ aladin-excel-forge(表格清洗)/ aladin-doc-forge(技术文档)等
Current listing version
1.0.0
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 解决合同审查高频刚需场景,提供确定性规则引擎+可视化报告
- 覆盖15条中文合同风险规则+6类合同必备条款体检
- 支持双版本比对和结构化评分,显著提升法务工作效率
Highlights
- 触发词覆盖全面,包含中英文变体(contract review/risk scan)
- 边界清晰,明确列出不触发场景(起草合同、OCR扫描件等)
- description位置正确且内容完整无截断
Highlights
- 标准工作流分步清晰,含可选步骤和端到端bash示例
- frontmatter完整,包含所有必要元数据字段
- 渐进式披露设计良好,通过references目录引导深入阅读
Highlights
- 使用Python标准库,零pip依赖,确保环境兼容性
- 明确说明不支持格式和前置处理要求(如PDF需先转文本)
- 重要约束清晰:不篡改原文件、本地运行、仅供参考等
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.
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.