Legal Judgment Prediction logo

Legal Judgment Prediction

Community
vivy-yi
legal-judgment-prediction

法律判决预测——综合调用8个原子能力,预测刑事案件罪名/适用法条/刑期/量刑情节,输出结构化预测报告及置信度评估。 适用情形:用户询问"这个案件会怎么判"/"能判多少年"/"构成什么罪"。 核心:8步流程(S1要素提取→S2概念理解→S3争议焦点→S4法条检索→S5案例检索→S6演绎推理→S7格式适用→S8术语规范),三阶段质控。 注意:本skill输出为参考性预测,不构成法律意见,实际判决由司法机关确定。

Overview

Publishervivy-yi
RepositoryGreater-China-Legal
Skill namelegal-judgment-prediction
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 Judgment Prediction 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-atomic/legal-judgment-prediction
  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-atomic/legal-judgment-prediction .claude/skills/legal-judgment-prediction
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Legal Judgment Prediction 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 Judgment Prediction 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 Judgment Prediction 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-judgment-prediction — 法律判决预测

8步流程

输入:案件事实描述
  │
  ▼ S1: 要素提取(structured-element-extraction)
  │
  ▼ S2: 概念理解(legal-concept-comprehension)
  │
  ▼ S3: 争议焦点识别(dispute-issue-identification)
  │    └── QC-1: 要素完整性与定性一致性
  ▼ S4: 法条检索(legal-article-retrieval)
  │    └── QC-2: 法条适配性与案例相关性
  ▼ S5: 案例检索(case-retrieval)
  │    └── QC-3: 推理逻辑自洽性
  ▼ S6: 演绎推理(deductive-reasoning)
  ▼ S7: 格式适用(legal-document-formatting)
  ▼ S8: 术语规范(legal-terminology)
  │
  ▼
输出:结构化判决预测报告(含置信度)

QC质量检查点

QC-1: 要素完整性
  - 主体/行为/客体/结果/因果/情节是否完整?
  - 如不完整 → 回溯S1/S2

QC-2: 法条适配性
  - 所引法条是否适用于本案事实?
  - 如不适配 → 回溯S3重新识别

QC-3: 推理自洽性
  - 演绎推理逻辑是否自洽?
  - 如不自洽 → 回溯S4补充法条

核心法条体系(刑法)

罪类常见罪名法定刑幅度
危害公共安全危险驾驶罪6月以下拘役
侵犯财产盗窃罪3年以下/3-10年/10年以上
侵犯人身故意伤害罪3年以下/3-10年/10年以上/死刑
破坏市场经济合同诈骗罪3年以下/3-10年/10年以上

量刑情节

法定情节从轻/从重/减轻/免除
自首可以从轻或减轻
坦白可以从轻
立功可以从轻或减轻
累犯应当从重
未遂可以从轻或减轻
中止应当免除/减轻
共同犯罪主犯/从犯区分

输出格式

## 刑事判决预测报告

### 案件基本信息
[案件类型/时间/地点/当事人]

### 事实要素提取
| 要素 | 内容 |
|------|------|
| 犯罪主体 | |
| 犯罪行为 | |
| 犯罪客体 | |
| 犯罪结果 | |
| 主观方面 | |
| 因果关系 | |

### 罪名预测
| 预测罪名 | 置信度 | 主要依据 |
|---------|--------|---------|
| | | |

### 适用法条
- 《刑法》第X条第X款
- [司法解释]

### 量刑预测
- 法定刑幅度:
- 基准刑:
- 预测刑期区间:
- 置信度:

### 量刑情节分析
| 情节类型 | 认定依据 | 对量刑的影响 |
|---------|---------|------------|
| | | |

### 类案参照
[检索到的同类案件判决结果]

### 综合评估
- 预测结论:
- 置信度等级:🟢高 / 🟡中 / 🔴低
- 主要不确定性因素:

引用说明

本skill方法论来自 THUYRan/Legal-Skills-Chinese/legal-judgment-prediction, THUYRan原版15142字,GCL精简至约220行。

Frequently asked questions

What does the Legal Judgment Prediction AI skill do?

法律判决预测——综合调用8个原子能力,预测刑事案件罪名/适用法条/刑期/量刑情节,输出结构化预测报告及置信度评估。 适用情形:用户询问"这个案件会怎么判"/"能判多少年"/"构成什么罪"。 核心:8步流程(S1要素提取→S2概念理解→S3争议焦点→S4法条检索→S5案例检索→S6演绎推理→S7格式适用→S8术语规范),三阶段质控。 注意:本skill输出为参考性预测,不构成法律意见,实际判决由司法机关确定。

Why use Legal Judgment Prediction on TypingMind?

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

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

Which AI models can use Legal Judgment Prediction?

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 Judgment Prediction?

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

Is the Legal Judgment Prediction 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 👇