← 返回 Skills 市场
bjmfjoy

Contract Auditor

作者 bjmfjoy · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
166
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install contract-auditor
功能描述
合同审计 Skill - AI 辅助审查合同条款,识别风险和问题 功能: - 自动提取合同文本(Word 格式) - 审查金额条款(一致性、付款节点、违约金) - 审查交付条款(时间、标准、延期责任) - 审查合规性(签章、日期、关键条款) - 风险提示(不利条款、模糊表述) - 生成审计报告 + 批注文档
使用说明 (SKILL.md)

Contract Auditor - 合同审计

AI 辅助合同审查工具,自动识别合同中的风险点和问题条款,生成审计报告和批注文档。

功能特性

审查维度 检查项
金额条款 大小写金额一致性、付款节点、违约金、发票类型
交付条款 交付时间、验收标准、延期责任、交付物清单、知识产权
合规性 签章、签署日期、合同期限、主体信息、争议解决、法律适用、不可抗力、保密、变更解除
风险提示 模糊表述、不利条款、权利义务对等、争议解决偏向性

使用方法

1. 私聊发送合同文件

直接发送 Word 合同文件(.doc/.docx),AI 自动审查并返回:

  • 审计报告:风险等级、问题统计、详细建议
  • 批注文档:在原合同文本上标注问题位置

2. 查看审计结果

审计报告包含

  • 风险等级评估(高/中/低)
  • 问题统计(按严重程度、类别)
  • 详细发现项(问题描述 + 修改建议)

批注文档包含

  • 合同正文(带批注标记)
  • 批注图例说明
  • 审计摘要
  • 完整问题清单

示例

输入:发送合同文件 技术服务合同.docx

输出

📋 合同审计完成

风险等级: 🟡 中
发现问题: 8 项

【审计报告】
1. 🔴 [高] 签署日期: 合同未明确约定签署日期
   建议: 必须填写合同签署日期

2. 🟡 [中] 金额条款: 大小写金额不一致
   建议: 核对并统一金额表述

...

【批注文档】
已生成带批注的合同文档,标注了所有问题位置

输出格式

审计报告(Markdown)

# 合同审计报告:xxx.docx

**风险等级**: 🟡 中
**发现问题**: 8 项

## 摘要
### 按严重程度
- 🟠 高: 2 项
- 🟡 中: 5 项
- 🟢 低: 1 项

## 详细发现
### 1. 🟠 [高] 签署日期
**问题**: ...
**建议**: ...

批注文档(Markdown)

# 带批注的合同:xxx.docx

## 合同正文(带批注)
第一条 合同金额
本合同总金额为人民币壹拾万元整。
>>> 🟡 [MEDIUM] 金额条款
>>>   问题:合同仅有中文大写金额
>>>   建议:建议同时标注阿拉伯数字金额

技术实现

services/
├── contract_auditor.py      # 主审计器
├── text_extractor.py        # 文本提取
├── annotator_simple.py      # 批注文档生成
└── analyzers/
    ├── payment_analyzer.py      # 金额条款分析
    ├── delivery_analyzer.py     # 交付条款分析
    ├── compliance_checker.py    # 合规性检查
    └── risk_analyzer.py         # 风险提示

版本规划

  • v1.0 (当前): Word 格式支持,4 维度审查,批注文档生成
  • v1.1: PDF 格式支持、图片 OCR
  • v1.2: ✅ Word 原文件批注(已完成)、批量处理
  • v2.0: Excel 汇总报告、合同模板对比

输出格式

1. 审计报告(Markdown)

# 合同审计报告:xxx.docx

**风险等级**: 🟡 中
**发现问题**: 8 项

## 摘要
### 按严重程度
- 🟠 高: 2 项
- 🟡 中: 5 项
- 🟢 低: 1 项

## 详细发现
### 1. 🟠 [高] 签署日期
**问题**: ...
**建议**: ...

2. 批注文档(Markdown)

生成带批注标记的 Markdown 文档,在原文中标注问题位置。

3. Word 批注文档(.docx)✅ NEW

原始 Word 文件上直接添加批注,使用 Word 的批注功能:

  • 在文档开头添加审计摘要
  • 在相关条款处添加批注气泡
  • 批注包含:风险等级、问题描述、修改建议
  • 保留原文件格式和样式

使用方法:

from services.contract_auditor import audit_with_word_annotation

# 审计并在原 Word 文件上加批注
audit_report, output_path = audit_with_word_annotation(
    input_path="合同.docx",
    output_path="合同_已批注.docx"  # 可选,默认自动命名
)

限制说明

  • 仅支持中文合同
  • 仅支持 Word 格式(v1.0),PDF 需手动转换
  • 批注文档为 Markdown 格式(v1.1 支持 Word 原文件批注)
  • 不提供法律有效性判定
  • 建议作为辅助参考,重要合同仍需法务审核
安全使用建议
This skill appears to do what it says: extract text from Word contracts, run heuristic analyses, and produce Markdown or annotated Word outputs. Before installing or using it consider: 1) Data privacy: audit where the agent runtime will store uploaded contracts (config shows /tmp/contract_auditor and retention_days) and confirm files are removed per your policy, since I did not find an explicit purge implementation in the reviewed snippets. 2) Dependencies: python-docx is required for Word annotation; optional PDF/OCR libraries are commented out. Ensure those are installed only if you need PDF/OCR. 3) Legal scope: the tool is heuristic-based (regex and simple rules); do not treat outputs as legal advice—have a lawyer review important contracts. 4) Runtime environment: run the skill in a trusted/local environment if contracts contain sensitive business data; verify the agent platform does not forward files to external services. 5) If you need stronger guarantees (audit logging, automatic secure deletion), request or inspect the parts of the codebase that implement storage/retention and file-deletion behavior before relying on it.
功能分析
Type: OpenClaw Skill Name: contract-auditor Version: 1.0.0 The 'contract-auditor' skill bundle is a legitimate tool designed to assist in reviewing contract clauses for risks and compliance. The code uses regex-based analyzers (e.g., in payment_analyzer.py and risk_analyzer.py) to identify specific patterns in contract text and provides suggestions for improvement. It utilizes the python-docx library for text extraction and document annotation, and the logic is entirely local with no evidence of network activity, data exfiltration, or unauthorized execution.
能力评估
Purpose & Capability
Name/description (contract audit, Word extraction, clause checks, annotated outputs) match the included code files: text extraction, analyzers for payment/delivery/compliance/risk, and annotators for Markdown/Word. No unrelated env vars, binaries, or cloud credentials are requested.
Instruction Scope
SKILL.md instructs users to send Word files and describes generating reports and annotated Word/Markdown outputs. The code implements those flows. One minor note: the documentation promises temporary storage and deletion of files, but in the reviewed files there is configuration for temp_dir/retention_days yet no explicit automatic deletion/purge implementation was visible in the reviewed snippets — this is an implementation detail to verify if you care about strict retention guarantees.
Install Mechanism
No install spec is included (instruction-only skill with code files). Dependencies are standard Python libraries (python-docx, optional pdf/OCR libs commented in requirements.txt). No external downloads, unknown URLs, or extract/install steps were present in the package.
Credentials
The skill requests no environment variables, no credentials, and no config paths beyond its own temp_dir in a config example. All environment access is proportional to processing local contract files. There are no calls to external endpoints or secret exfiltration patterns in the reviewed code.
Persistence & Privilege
always is false and autonomous invocation is allowed (platform default). The skill does not request permanent platform-wide privileges or modify other skills. It reads and writes local files (input contract and annotated output), which is expected for its purpose.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install contract-auditor
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /contract-auditor 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Contract Auditor 1.0.0 — 首发版上线! - 支持自动提取并审查 Word 格式合同(仅中文) - 检查金额条款、交付条款、合规性与风险提示(四维全覆盖) - 自动生成审计报告(Markdown),按风险等级/问题分类 - 生成带批注的合同文本(Markdown 标注问题位置) - 提供简单 API 用法,方便集成调试 - 详细问题描述与建议,辅助合同风险把控
元数据
Slug contract-auditor
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Contract Auditor 是什么?

合同审计 Skill - AI 辅助审查合同条款,识别风险和问题 功能: - 自动提取合同文本(Word 格式) - 审查金额条款(一致性、付款节点、违约金) - 审查交付条款(时间、标准、延期责任) - 审查合规性(签章、日期、关键条款) - 风险提示(不利条款、模糊表述) - 生成审计报告 + 批注文档. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 166 次。

如何安装 Contract Auditor?

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

Contract Auditor 是免费的吗?

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

Contract Auditor 支持哪些平台?

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

谁开发了 Contract Auditor?

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

💬 留言讨论