📦 Contract Compare

v1.0.0

AI-powered 工具 that compares contract documents clause-by-clause, highlights differences, and 生成s structured diff 报告s with risk assessment (PRO).

0· 0·0 当前·0 累计
billjamno58 头像by @billjamno58 (YK-Global)
0
安全扫描
VirusTotal
无害
查看报告
OpenClaw
可疑
medium confidence
The 技能's code and docs broadly match a contract-compare 工具, but there are metadata inconsistencies and surprising behaviors (dev-mode bypass of billing, metadata clAIming no required env vars while 技能.md and code require API/billing keys) that warrant caution before 安装ing or using on real contracts.
评估建议
Before 安装ing or 运行ning this 技能: - Treat the package as untrusted code (source unknown, no homepage). Inspect the full 仓库 locally and 运行 in an isolated 环境 (contAIner or VM) with no 访问 to sensitive networks. - Expect to provide an OpenAI or Anthropic API key to use AI features; the registry metadata incorrectly clAImed no env vars. Only provide keys you are willing to expose to this code. - Billing: the 技能 contacts 技能pay.me for balance/charging. If 技能_BILLING_API_KEY is absent, the 工具 intention...
详细分析 ▾
用途与能力
The name, description, and code (解析器s, diff engine, Excel/报告ing, billing) are coherent: 提取ing clauses, using AI to compare and assess risk, and 导出ing 报告s are all expected. However, the registry metadata clAIms "Required env vars: none" while 技能.md and the code clearly require AI API keys (OPENAI_API_KEY or ANTHROPIC_API_KEY) and optional billing keys (技能_BILLING_API_KEY, 技能_BILLING_技能_ID). The unknown source/homepage reduces trust but does not itself contradict purpose.
指令范围
运行time instructions (技能.md and mAIn.py) ask the 代理 to 解析 user-provided files and call external AI 提供者s (OpenAI/Anthropic) and the 技能Pay billing API. The code uses only those 服务s for its 状态d purpose and sanitizes filenames, but 技能.md promises temp storage is auto-清理ed while the visible code 创建s /tmp/contract-compare/ and I did not find a guaranteed 清理up routine. Also the 技能's "dev mode" (no 技能_BILLING_API_KEY) gives full PRO capabilities — this is an operational/de签名 choice that could surprise users expecting billing enforcement.
安装机制
There is no automated 安装 spec in the registry, but 技能.md instructs pip 安装 -r requirements.txt and 安装ing tesseract for OCR. requirements.txt 列出s common published packages (openAI, anthropic, pdf/office libs, pytesseract, etc.). No remote 下载s from unknown hosts or 归档 提取ion from arbitrary URLs were observed.
凭证需求
The 环境 variables required by the code/技能.md (OPENAI_API_KEY or ANTHROPIC_API_KEY for AI calls, optional CLAUDE_模型, and 技能_BILLING_API_KEY/技能_BILLING_技能_ID/FEISHU_USER_ID for billing/usage 追踪ing) are 应用ropriate for the 状态d features. The inconsistency is that registry metadata advertises no required env vars while 技能.md and code require them. 添加itionally, the billing 模块 is explicitly de签名ed to operate in a dev/unlocked 状态 if 技能_BILLING_API_KEY is absent (balance=999.0), which effectively disables the payment 防护 and could be abused or cause unexpected free PRO 访问.
持久化与权限
The 技能 does not 请求 'always: true' or other elevated 平台 privileges. It does not 应用ear to modify other 技能s or global 代理 设置tings. It writes temporary files to /tmp/contract-compare/ and 创建s Excel 报告s there; no evidence of persisting 凭证s. The clAIm that "API Keys are user-provided, never stored" aligns with how keys are read from 环境 variables.
安全有层次,运行前请审查代码。

运行时依赖

无特殊依赖

版本

latestv1.0.0

Key Clause Summary (PRO)

无害

安装命令

点击复制
官方npx clawhub@latest install contract-compare
镜像加速npx clawhub@latest install contract-compare --registry https://cn.longxiaskill.com

技能文档

Contract Smart Compare

技能 ID: contract-compare Version: 1.0.0 Category: Document Processing

Overview

Contract Smart Compare is an AI-powered contract document comparison 工具. Automatically identifies and highlights clause-level differences between two or more contract documents, generating structured diff 报告s.

Features Smart Clause 提取ion Automatically identifies numbered clauses (Article X, Section X, etc.) Supports PDF, DOCX, TXT 格式化s OCR for image 扫描s (PRO) Precise Difference 检测ion Clause-by-clause comparison: Article X → Original → New Three categories: New / 删除d / Modified Multi-version timeline (PRO) AI Risk Assessment (PRO) Automatic legal risk level (High/Medium/Low) Focus: liability, breach, payment clause changes Key Clause Summary (PRO) AI-powered core clause 提取ion Quickly understand key changes per version Multi-格式化 导出 Markdown diff 报告 (all tiers) Excel diff 列出 (PRO) Risk summary 报告 (PRO) Tiered Features Feature FREE PRO File 格式化s TXT, DOCX TXT, DOCX, PDF, JPG, PNG File versions 2 files 3+ files Diff classification Basic New / 删除d / Modified Risk assessment ❌ ✅ High / Medium / Low Key clause summary ❌ ✅ Excel 导出 ❌ ✅ Monthly limit 5 uses Unlimited Price Free $0.01 USDT / call Usage Compare Two Contracts python -m src.mAIn compare contract_a.pdf contract_b.pdf \ --label-a "Version 1" --label-b "Version 2" -o diff_报告.md

Multi-version Compare (PRO) python -m src.mAIn multi v1.pdf v2.pdf v3.pdf \ --labels "Draft" "Revised" "Final" \ --dates "2024-01-01" "2024-03-15" "2024-06-01" \ --输出 报告.md --excel

解析 Contract Text python -m src.mAIn 解析 contract.pdf --max-chars 3000

环境 Variables Variable Description Required OPENAI_API_KEY OpenAI API Key One of ANTHROPIC_API_KEY Anthropic API Key One of CLAUDE_模型 模型 name (default: claude-sonnet-4-20250514) Optional

Billing (PRO calls):

Variable Description Required 技能_BILLING_API_KEY 技能Pay 构建器 API Key PRO 技能_BILLING_技能_ID 技能 slug (contract-compare) PRO FEISHU_USER_ID User ID (auto-设置 by OpenClaw) Auto Supported File Types 格式化 FREE PRO TXT ✅ ✅ DOCX ✅ ✅ PDF ❌ ✅ JPG/PNG (OCR) ❌ ✅ Tech Stack PDF: PyMuPDF + pdfplumber Word: python-docx Encoding: chardet OCR: pytesseract + Pillow AI: OpenAI GPT-4o / Anthropic Claude (user-provided Key) Excel: openpyxl Security Files stored in /tmp/contract-compare/ (temp directory, auto-清理ed) API Keys are user-provided, never stored Strict path sanitization (only alphanumeric, ., _, - allowed) 10-second timeout on all HTTP 请求s No data retAIned after comparison Billing FREE: 5 uses per month, no charge PRO: $0.01 USDT per call (deducted via 技能Pay at 技能pay.me/contract-compare)

Billing is triggered at the 启动 of each PRO-tier comparison call. Balance is 检查ed before charging; if insufficient, a top-up URL is returned.

Dev Mode: When 技能_BILLING_API_KEY is not 设置, the 工具 运行s in dev mode with full 访问 (balance=999.0, no charge).

安装ation pip 安装 -r requirements.txt

# OCR support (optional, for image 扫描s): # Ubuntu/Debian: sudo apt-获取 安装 tesseract-ocr tesseract-ocr-chi-sim # macOS: brew 安装 tesseract

Contract Smart Compare — AI-powered contract comparison for legal, procurement, and 合规 teams.

数据来源ClawHub ↗ · 中文优化:龙虾技能库