Skill flagged — suspicious patterns detected

ClawHub Security flagged this skill as suspicious. Review the scan results before using.

Lawyer Case Archive Helper - 律师案件归档助手

v1.0.0

自动识别律师案件图片或PDF,生成民事归档卷宗和办案小结文档,并支持PDF转换与备份功能。

0· 85·0 current·0 all-time

Install

OpenClaw Prompt Flow

Install with OpenClaw

Best for remote or guided setup. Copy the exact prompt, then paste it into OpenClaw for fong12368/fanglawerguidangzhushou.

Previewing Install & Setup.
Prompt PreviewInstall & Setup
Install the skill "Lawyer Case Archive Helper - 律师案件归档助手" (fong12368/fanglawerguidangzhushou) from ClawHub.
Skill page: https://clawhub.ai/fong12368/fanglawerguidangzhushou
Keep the work scoped to this skill only.
After install, inspect the skill metadata and help me finish setup.
Use only the metadata you can verify from ClawHub; do not invent missing requirements.
Ask before making any broader environment changes.

Command Line

CLI Commands

Use the direct CLI path if you want to install manually and keep every step visible.

OpenClaw CLI

Bare skill slug

openclaw skills install fanglawerguidangzhushou

ClawHub CLI

Package manager switcher

npx clawhub@latest install fanglawerguidangzhushou
Security Scan
VirusTotalVirusTotal
Suspicious
View report →
OpenClawOpenClaw
Benign
medium confidence
Purpose & Capability
The name/description (lawyer case archive, OCR, generate docs, PDF conversion, backup) matches the included Python modules (OCR routines, PDF extraction, document generation, backup). No unrelated credentials or cloud services are required.
Instruction Scope
SKILL.md instructs local processing of images/PDFs and running the provided scripts only. It does not direct the agent to read unrelated system files or transmit data externally. Note: SKILL.md lists some filenames (e.g., generate_juansong.py, generate_xiaojie.py, ocr_engine.py) that are not separate files in the manifest—their functionality appears implemented as functions inside archive_case.py or in ocr_tool.py, which is a documentation / naming inconsistency to be aware of.
Install Mechanism
No install spec is provided (instruction-only install). Dependencies are standard Python packages (rapidocr-onnxruntime, python-docx, pdfplumber, openpyxl). No network downloads or extracted archives are embedded in the skill itself.
Credentials
The skill requests no environment variables or credentials. config.py contains example EMAIL_CONFIG and WECHAT_CONFIG entries (placeholders and disabled flags) — these are not required to run but could tempt users to paste real credentials into the file; exercise caution before adding secrets.
Persistence & Privilege
The skill does not request always:true and is user-invocable only. The backup.py script will copy skill files to a hard-coded absolute path (BACKUP_DIR = 'D:\\backup-fanglawerguidangzhushou'), which is a local write to disk and platform-specific (Windows). This is not inherently malicious but is surprising and should be reviewed/modified before running.
Assessment
What to check before installing/running: (1) Confirm TEMPLATE_PATH in config.py points to your template file — the tool will look for that DOCX and will fail if missing. (2) Inspect and edit backup.py: it uses a hard-coded Windows backup path (D:\backup-fanglawerguidangzhushou); change it to a location you control or remove the script if you don't want automatic backups. (3) The repo contains example EMAIL_CONFIG and WECHAT_CONFIG entries; do not populate these with real credentials unless you understand how/when the code would send emails or messages. (4) Install the listed Python packages in a virtual environment, and run the tools on non-sensitive test data first to verify outputs. (5) Be aware SKILL.md filenames don't exactly match the manifest (documentation sloppiness) — review archive_case.py and ocr_tool.py to confirm behavior before bulk-processing confidential case files.

Like a lobster shell, security has layers — review code before you run it.

archivevk970475aaggkfbqfx52cf2wqdn84w6m8docxvk970475aaggkfbqfx52cf2wqdn84w6m8latestvk970475aaggkfbqfx52cf2wqdn84w6m8lawyervk970475aaggkfbqfx52cf2wqdn84w6m8legalvk970475aaggkfbqfx52cf2wqdn84w6m8ocrvk970475aaggkfbqfx52cf2wqdn84w6m8
85downloads
0stars
1versions
Updated 1w ago
v1.0.0
MIT-0

fanglawerguidangzhushou(律师案件归档助手)

概述

通用律师案件归档自动化工具,支持OCR识别 + 归档卷宗生成 + 办案小结生成 + PDF转换全流程。

脱敏说明:本技能已脱敏处理,不含任何个人案件信息、邮箱密码、微信密钥等敏感数据。

技能文件清单

文件功能说明
archive_case.py主程序:案件归档全流程支持OCR + PDF解析 + 生成归档
generate_juansong.py生成归档卷宗(民事)3页模板格式
generate_xiaojie.py生成办案小结4段式结构
ocr_engine.pyOCR识别模块RapidOCR-ONNX
config.py配置文件路径/模板/参数
backup.py备份脚本自动备份到指定目录
SKILL.md技能说明文档本文件

依赖

# Python环境(3.10+)
# 安装依赖
pip install rapidocr-onnxruntime python-docx pdfplumber openpyxl

配置(config.py)

# 模板文件路径
TEMPLATE_PATH = "模板目录/归档卷宗模板(民事).docx"

# 输出目录(默认与案件目录相同)
# 可在 archive_case.py 中通过参数指定

# 线程限制(防止CPU爆表)
OMP_NUM_THREADS = 2
OPENBLAS_NUM_THREADS = 2

# 图片预处理
MAX_SIDE = 1500  # 最大边长

使用方法

方式1:完整流程(推荐)

python archive_case.py <案件文件夹路径>

# 示例
python archive_case.py "D:\cases\张三案件"
python archive_case.py "G:\案件\李四"

方式2:分步执行

# 1. OCR识别
python ocr_engine.py <案件文件夹> -o ocr_result.txt

# 2. 生成归档卷宗
python generate_juansong.py <案件文件夹> --case-info <JSON>

# 3. 生成办案小结
python generate_xiaojie.py <案件文件夹> --case-info <JSON>

# 4. Word转PDF
python docx_to_pdf.py <docx文件>

方式3:Python调用

from archive_case import main

# 基本调用
main("案件文件夹路径")

# 传入案件信息(避免OCR)
case_info = {
    "contract_no": "(202X)XX民代字第X号",
    "case_no": "(202X)XX民初XXX号",
    "case_type": "民间借贷纠纷",
    "client": "张三",
    "client_role": "原告",
    "opponent": "李四",
    "opp_role": "被告",
    "lawyer": "您的姓名",
    "stage": "1审",
    "court": "XX市XX区人民法院",
    "sign_date": "202X年X月X日",
    "end_date": "202X年X月X日",
    "end_way": "调解",
    "fee": "10000元",
    "pages": "50",
}
main("案件文件夹", case_info)

输入要求

案件文件夹应包含以下之一:

  1. 案件相关图片(.jpg/.png/.bmp/.tiff)— 将进行OCR识别
  2. 现有PDF文件(如已有归档卷宗)— 将提取案件信息

输出文件

程序会在案件文件夹生成:

文件说明
XXX归档卷宗(民事).docx归档卷宗(3页模板格式)
XXX归档卷宗(民事).pdfPDF版
XXX办案小结.docx办案小结(4段式结构)
XXX办案小结.pdfPDF版
OCR识别结果.txtOCR识别文本(如果运行了OCR)

案件信息识别策略

  1. 优先从现有PDF提取 — 查找文件名含"归档卷宗"的PDF
  2. 次选OCR识别 — 对图片进行RapidOCR识别
  3. 手动传入 — 通过case_info参数直接提供

支持提取的字段

  • 合同编号、案号、案由
  • 委托方(原告/被告)
  • 对方当事人
  • 受理法院、承办律师、代理阶段
  • 接案日期、结案日期、结案方式
  • 律师费、页数

备份功能

# 运行备份
python backup.py

备份内容包括:

  • SKILL.md
  • archive_case.py
  • generate_juansong.py
  • generate_xiaojie.py
  • ocr_engine.py
  • config.py
  • ocr_tool.py(通用OCR工具)

性能参数(参考)

项目数值
RapidOCR初始化~1秒
单张图片识别~10秒(3024×4032)
CPU占用可控(线程限制)
内存占用~200MB

常见问题

Q: OCR识别很慢怎么办? A: 检查线程限制配置,确保设置了 OMP_NUM_THREADS=2

Q: 识别结果不准确? A: 尝试调整图片预处理参数(MAX_SIDE、CLAHE参数)

Q: 如何修改模板? A: 修改 config.py 中的 TEMPLATE_PATH,指向您的归档卷宗模板


版本:v1.0 创建:2026-04-06 脱敏:已移除所有个人案件信息、邮箱密码、微信密钥

Comments

Loading comments...