Evidence Binder logo

Evidence Binder

Community
Youchu-lawhub
evidence-binder

物理层面的证据册装配——将证据文件按证据目录排序、重命名、转PDF、编连续页码、按分组归档,形成可提交法院的完整证据册。与「证据目录」技能互补:证据目录负责逻辑层(分组+证明对象),证据装册负责物理层(文件操作+页码编排)。触发词:证据册、整理证据文件、编页码、证据装册、装订证据、证据归档。

Overview

PublisherYouchu-lawhub
Repositorycn-litigation-toolkit
Skill nameevidence-binder
Stars
31
Forks
4
Bundled files
Instructions only
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by Youchu-lawhub on GitHub. Read the source before you install it.

Installation

Install the Evidence Binder AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/Youchu-lawhub/cn-litigation-toolkit/tree/main/skills/evidence-binder
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Youchu-lawhub/cn-litigation-toolkit.git /tmp/cn-litigation-toolkit
mkdir -p .claude/skills
cp -r /tmp/cn-litigation-toolkit/skills/evidence-binder .claude/skills/evidence-binder
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Evidence Binder in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Evidence Binder on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Evidence Binder is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

证据装册(evidence-binder)

物理层面的证据册装配技能——将证据文件按照 /evidence-index 的逻辑分组进行排序、重命名、格式转换、编页码、归档,最终形成可提交法院的完整证据册。

职责边界:本技能负责文件的物理操作(重命名/转PDF/文件夹组织/页码编排),不负责证据的逻辑分组和证明对象撰写(那是 /evidence-index 的工作)。


前置条件

材料说明
证据材料文件用户提供的原始证据文件(PDF/图片/Word等)
证据目录已通过 /evidence-index 生成的证据目录(含分组结构和编号)

两项缺一不可。如证据目录尚未生成,提示用户先调用 /evidence-index。


工作流程

Step 1: 解析证据目录

解析证据目录文本,提取:分组结构(组号、组名)、每份证据的编号(组号-序号)与名称、证据总份数。

Step 2: 匹配原始证据文件

  1. 列出用户提供的所有原始证据文件
  2. 自动匹配文件与证据目录条目(基于文件名关键词/序号)
  3. 输出匹配结果表格,必须等用户确认所有对应关系后再继续
| 证据编号 | 证据名称 | 匹配文件 | 状态 |
|----------|----------|----------|------|
| 1-1 | 营业执照 | yyzz.pdf | ✓ 已匹配 |
| 1-2 | 法定代表人身份证明 | ? | ❌ 待确认 |

Step 3: 备份 → 重命名

  1. 备份原始文件到工作目录(证据册_原始备份_{时间戳}/)
  2. 按格式重命名:{编号}{证据名称}.{扩展名}(如 1-1营业执照.pdf)

Step 4: 按分组创建文件夹

证据册/
├── 第一组-主体资格证据/
│   ├── 1-1营业执照.pdf
│   └── 1-2法定代表人身份证明.pdf
├── 第二组-合同成立证据/
│   └── ...
└── evidence-index.docx

Step 5: 格式转换为PDF

源格式转换方案
图片(JPG/PNG/TIFF)img2pdf(保持原分辨率)→ 备选 Pillow
Word(.docx)LibreOffice headless → 备选 pandoc
Word(.doc, macOS)textutil 转 docx → LibreOffice
已是PDF保持原样
多张图片同一证据合并为一个PDF

转换失败时:保留原始文件,标注"待手动处理",不阻塞其他文件。

Step 6: 编连续页码

  1. 用 pypdf 统计每份证据PDF页数
  2. 从第1页起连续编号,按证据目录顺序累加
  3. 计算每份证据的"起始页-结束页"范围
  4. 将页码范围回填到证据目录

输出示例:

| 编号 | 证据名称 | 页数 | 页码范围 |
|------|----------|------|----------|
| 1-1 | 营业执照 | 2 | 第1-2页 |
| 1-2 | 法定代表人身份证明 | 1 | 第3页 |
| 2-1 | 技术开发合同 | 15 | 第4-18页 |

输出成果

  1. 证据册文件夹:按分组+编号命名的PDF文件
  2. 更新后的证据目录:包含页码范围列,md 输出后询问是否转 Word(见 profile.md「文书 Word 排版规范」)
  3. 整理报告:总份数、总页数、格式转换记录、异常项

安全规则

  1. 备份在前 —— 所有文件操作前必须先完整备份原始文件
  2. 用户确认 —— 匹配关系未经确认不执行文件操作
  3. 不删除原文件 —— 所有操作基于复制,原始文件保留在备份目录
  4. 异常中断 —— 任何步骤失败时停止后续操作并报告,不做半成品输出
  5. 幂等性 —— 重复调用时检测已有结果,询问覆盖/增量/取消

技术依赖

工具用途检查方式
Python 3脚本环境python3 --version
pypdfPDF页数读取pip install pypdf
img2pdf图片转PDFpip install img2pdf
LibreOfficeWord转PDFsoffice --version

运行前检查依赖,缺失则提示用户安装或使用备选方案。


下一步建议

  • 证据册装配完成 → 提交法院 / 发送律师
  • 需补充证据 → /evidence-index(更新分组后重新整理)
  • 准备开庭 → /trial-outline(引用证据册页码)

案件管家联动(强制)

本 skill 完成产出后,必须在输出文档之前调用「案件管家」的台账回写协议,六步流程 / 降级 / 不阻塞规则统一由套件 Hub 维护:

协议单一权威源:skills/case-manager/references/downstream-writeback-protocol.md 入口条款:/case-manager SKILL.md §0.7

本 skill 的产出:证据册 PDF / Zip

差异化字段回写:下一步动作 → 递交法院

Frequently asked questions

What does the Evidence Binder AI skill do?

物理层面的证据册装配——将证据文件按证据目录排序、重命名、转PDF、编连续页码、按分组归档,形成可提交法院的完整证据册。与「证据目录」技能互补:证据目录负责逻辑层(分组+证明对象),证据装册负责物理层(文件操作+页码编排)。触发词:证据册、整理证据文件、编页码、证据装册、装订证据、证据归档。

Why use Evidence Binder on TypingMind?

Because you install it once and use it with any model. Evidence Binder is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Evidence Binder in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/Youchu-lawhub/cn-litigation-toolkit/tree/main/skills/evidence-binder. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Evidence Binder?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Evidence Binder?

As many as you like. As long as a model supports skills, you can use Evidence Binder with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Evidence Binder AI skill free?

It is published on GitHub by Youchu-lawhub. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇