Judgment Document Generation logo

Judgment Document Generation

Community
vivy-yi
judgment-document-generation

刑事判决书生成——接收案件事实描述,调用8个原子能力,生成格式规范、论证严密的完整刑事判决书。 适用情形:用户要求"起草判决书"/"生成裁判文书"/"根据案卷写文书"。 核心流程:事实提取→概念理解→争议识别→法条检索→案例检索→演绎推理→格式适用→术语规范。 注意:本skill是刑事一审判决书专用模板,GCL不涉及实际司法文书输出,此skill仅作框架参考。

Overview

Publishervivy-yi
RepositoryGreater-China-Legal
Skill namejudgment-document-generation
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 Judgment Document Generation 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/judgment-document-generation
  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/judgment-document-generation .claude/skills/judgment-document-generation
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Judgment Document Generation 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 Judgment Document Generation 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 Judgment Document Generation 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.

/judgment-document-generation — 裁判文书生成

能力概述

本复合能力面向刑事一审案件,接收案件事实描述,输出结构完整、论证严密、格式规范的刑事判决书。

8步流程

S1: 法律核心要素提取(structured-element-extraction)
S2: 法律概念理解(legal-concept-comprehension)
S3: 争议焦点和法律关系识别(dispute-issue-identification)
S4: 法条检索(legal-article-retrieval)
S5: 案例检索(case-retrieval)
S6: 演绎推理(deductive-reasoning)
S7: 法律文书格式适用(legal-document-formatting)
S8: 法律术语规范表达(legal-terminology)

流程图

输入:案件事实描述
  │
  ▼ S1: 要素提取
  │
  ▼ S2: 概念理解
  │    └── QC1: 质量检查
  ▼ S3: 争议焦点识别
  ▼ S4: 法条检索
  │    └── QC2: 质量检查
  ▼ S5: 案例检索
  ▼ S6: 演绎推理
  │    └── QC3: 质量检查
  ▼ S7: 格式适用
  ▼ S8: 术语规范
  │    └── QC4: 质量检查
  ▼
输出:完整刑事判决书

S1: 要素提取

输入:原始案件事实描述(含公诉机关指控、证据列举、被告人态度)

提取要素:
① 犯罪主体(被告人身份、共犯信息)
② 犯罪行为(具体行为方式、手段)
③ 犯罪客体/对象(侵害的法益、具体财物)
④ 犯罪目的/动机
⑤ 犯罪结果(既遂/未遂、损失金额)
⑥ 时间线(案发时间、归案时间、退赔时间)
⑦ 因果关系
⑧ 量刑相关情节(自首、坦白、退赃、前科)
⑨ 证据概要

S2: 概念理解

对以下概念精准理解:
- 涉案罪名的法定构成要件
- 犯罪形态(既遂/未遂/中止)
- 共同犯罪
- 量刑情节(法定/酌定)

S3: 争议焦点识别

识别:
- 控辩双方争议焦点
- 法律关系性质
- 需法院认定的核心问题

S4: 法条检索

检索范围:
- 刑法条文
- 司法解释
- 量刑规范

S5: 案例检索

量刑参考:
- 同类案件的司法实践规律
- 确保判决结果在合理区间内

S6: 演绎推理

核心逻辑:
大前提(法律规范)
  → 小前提(案件事实)
    → 结论(裁判结果)

S7: 格式适用

刑事判决书格式:
① 首部(法院名称、案号、当事人信息)
② 事实部分(公诉机关指控、被告人辩称、证据认定、法院认定事实)
③ 理由部分("本院认为")
④ 判决主文
⑤ 尾部(审判人员、日期、上诉期限)

S8: 术语规范

要求:
- 准确、无歧义
- 符合法律文体
- 贯穿全文输出

引用说明

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

Frequently asked questions

What does the Judgment Document Generation AI skill do?

刑事判决书生成——接收案件事实描述,调用8个原子能力,生成格式规范、论证严密的完整刑事判决书。 适用情形:用户要求"起草判决书"/"生成裁判文书"/"根据案卷写文书"。 核心流程:事实提取→概念理解→争议识别→法条检索→案例检索→演绎推理→格式适用→术语规范。 注意:本skill是刑事一审判决书专用模板,GCL不涉及实际司法文书输出,此skill仅作框架参考。

Why use Judgment Document Generation on TypingMind?

Because you install it once and use it with any model. Judgment Document Generation 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 Judgment Document Generation 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/judgment-document-generation. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Judgment Document Generation?

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 Judgment Document Generation?

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

Is the Judgment Document Generation 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 👇