Legal Document Summarization logo

Legal Document Summarization

Community
vivy-yi
legal-document-summarization

法律文书摘要——对判决书、裁定书、调解书、仲裁裁决书、行政处罚决定书进行结构化摘要。 适用情形:用户要求做摘要/提炼要点/生成裁判要旨/提取案件信息。 核心:六要素框架(案件信息+事实背景+争议焦点+法律依据+结论结果+说理过程),忠实原文,区分文书类型。 禁用:不得添加原文未载明的事实/观点/结论,不得出现主观评价性措辞。

Overview

Publishervivy-yi
RepositoryGreater-China-Legal
Skill namelegal-document-summarization
Stars
49
Forks
9
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 vivy-yi on GitHub. Read the source before you install it.

Installation

Install the Legal Document Summarization 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/vivy-yi/Greater-China-Legal/tree/main/plugins/legal-documents/legal-document-summarization
  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/vivy-yi/Greater-China-Legal.git /tmp/Greater-China-Legal
mkdir -p .claude/skills
cp -r /tmp/Greater-China-Legal/plugins/legal-documents/legal-document-summarization .claude/skills/legal-document-summarization
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Legal Document Summarization 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 Legal Document Summarization 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 Legal Document Summarization 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.

/legal-document-summarization — 法律文书摘要

文书类型与摘要重点

文书类型核心功能摘要重点
判决书解决实体争议事实认定、法律适用、裁判理由、判决结果
裁定书解决程序事项程序背景、申请/异议内容、裁定依据
调解书确认双方合意争议事项、调解协议内容、履行安排
仲裁裁决书仲裁庭终局裁决仲裁请求、事实认定、仲裁庭意见、裁决结果
行政处罚决定书行政制裁违法事实、处罚依据、处罚种类和幅度

六要素提取框架

┌─────────────────────────────────────────┐
│  1. 案件信息:谁、何时、何地、何机构      │
│  2. 事实背景:与结论相关的事实           │
│  3. 争议焦点:核心法律问题               │
│  4. 法律依据:援引了哪些规范              │
│  5. 结论结果:最终如何处理               │
│  6. 说理过程:如何从事实+规范推导结论     │
└─────────────────────────────────────────┘

工作流程

步骤1:识别文书类型

根据文书类型选择摘要模板

步骤2:提取六要素

逐一提取,忠实原文,不添加

步骤3:生成结构化摘要

按文书类型对应的模板输出

步骤4:质量检查

- 是否忠实于原文?
- 是否客观中立?
- 是否突出核心?
- 是否区分了文书类型?

输出格式(判决书示例)

## 案件摘要

### 案件信息
- 法院:[名称]
- 案号:[案号]
- 日期:[日期]
- 当事人:[原告] vs [被告]

### 事实背景
[与裁判结论相关的核心事实,2-3句]

### 争议焦点
1. [焦点一]
2. [焦点二]

### 法律依据
- 《[法典]》第X条第X款
- [司法解释]

### 裁判结论
[判决主文]

### 说理过程
[法院如何从事实+规范推导出结论,1-2段]

引用说明

本skill方法论来自 THUYRan/Legal-Skills-Chinese/legal-document-summarization, THUYRan原版11300字,GCL精简至约130行。

Frequently asked questions

What does the Legal Document Summarization AI skill do?

法律文书摘要——对判决书、裁定书、调解书、仲裁裁决书、行政处罚决定书进行结构化摘要。 适用情形:用户要求做摘要/提炼要点/生成裁判要旨/提取案件信息。 核心:六要素框架(案件信息+事实背景+争议焦点+法律依据+结论结果+说理过程),忠实原文,区分文书类型。 禁用:不得添加原文未载明的事实/观点/结论,不得出现主观评价性措辞。

Why use Legal Document Summarization on TypingMind?

Because you install it once and use it with any model. Legal Document Summarization 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 Legal Document Summarization in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/vivy-yi/Greater-China-Legal/tree/main/plugins/legal-documents/legal-document-summarization. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Legal Document Summarization?

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 Legal Document Summarization?

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

Is the Legal Document Summarization AI skill free?

It is published on GitHub by vivy-yi. 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 👇