Formal Legal Consequence logo

Formal Legal Consequence

Community
vivy-yi
formal-legal-consequence

形式化推导法律后果——根据已确认的事实+法律规范,推导具体法律后果(责任类型/赔偿金额/刑期/处罚幅度)。 适用情形:用户询问"能获得多少赔偿"/"对方承担什么责任"/"会判几年"/"罚款多少"。 核心:四层推导模型(基础后果→调整因素→竞合聚合→量化计算),大前提+小前提→结论。 注意:本skill是法律推理终端环节,输出仅供参考,实际结果由司法机关确定。

Overview

Publishervivy-yi
RepositoryGreater-China-Legal
Skill nameformal-legal-consequence
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 Formal Legal Consequence 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/formal-legal-consequence
  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/formal-legal-consequence .claude/skills/formal-legal-consequence
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Formal Legal Consequence 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 Formal Legal Consequence 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 Formal Legal Consequence 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.

/formal-legal-consequence — 形式化推导法律后果

四层推导模型

第一层:基础后果确定
  R(规范) + F(事实) → E₀(基础法律后果)

第二层:调整因素适用
  E₀ + A₊(加重因素) + A₋(减轻因素) + A₀(免除因素) → E₁(调整后)

第三层:竞合与聚合处理
  E₁ + 竞合规则/聚合规则 → E₂(最终后果)

第四层:量化计算
  E₂ + 计算标准/裁量基准 → E_final(具体量化结果)

法律后果分类

民事法律后果

类型具体后果
合同效力有效/无效/可撤销/效力待定
违约责任继续履行/赔偿损失/违约金/定金罚则
侵权责任停止侵害/赔偿损失/赔礼道歉/精神损害赔偿
物权变动所有权转移/抵押权设立/善意取得
不当得利/无因管理返还/补偿

刑事法律后果

类型具体内容
主刑管制/拘役/有期徒刑/无期徒刑/死刑
附加刑罚金/剥夺政治权利/没收财产/驱逐出境
量刑调整从重/从轻/减轻/免除处罚
非刑罚免予刑事处罚/缓刑/假释

行政法律后果

类型具体内容
行政处罚警告/罚款/没收/吊销许可证/行政拘留
行政强制查封/扣押/冻结/强制执行
行政许可准予/不予/撤销/注销

程序性后果

类型说明
诉讼时效丧失胜诉权
举证责任承担不利后果
管辖权移送/驳回

工作流程

步骤1:确认输入要素
  - 已认定的事实
  - 已匹配的法律规范
  - 构成要件满足情况
  - 调整因素(加重/减轻/免除)

步骤2:第一层推导(基础后果)
  将事实涵摄于法律规范

步骤3:第二层推导(调整因素)
  叠加量刑/责任调整因素

步骤4:第三层推导(竞合聚合)
  处理罪名竞合/责任聚合

步骤5:第四层推导(量化计算)
  计算具体金额/刑期区间/罚款幅度

步骤6:标注置信度
  高/中/低,说明不确定性因素

赔偿金额计算

损害赔偿 = 直接损失 + 间接损失(预期利益)+ 精神损害(符合条件的)

违约金:
- 约定违约金 > 实际损失30% → 可申请法院酌减
- 约定的定金 > 标的额20% → 超过部分无效

刑期计算:
- 从轻:基准刑 × (1 - 减刑比例)
- 减轻:降档处理
- 数罪并罚:总和刑期以下,最高刑期以上

输出格式

## 法律后果推导报告

### 输入确认
- 已认定事实:
- 已匹配法条:
- 构成要件满足情况:
- 调整因素:

### 第一层:基础法律后果
- 推导过程:
- 基础后果(E₀):

### 第二层:调整后后果
- 加重因素(A₊):
- 减轻因素(A₋):
- 免除因素(A₀):
- 调整后后果(E₁):

### 第三层:竞合聚合处理
- 是否存在竞合/聚合:
- 处理结果(E₂):

### 第四层:量化结果
- 具体金额/刑期区间/处罚幅度(E_final):
- 计算依据:

### 置信度评估
| 维度 | 评级 |
|------|------|
| 事实认定确定性 | 高/中/低 |
| 法律适用确定性 | 高/中/低 |
| 裁量空间 | 窄/中/宽 |
| **综合置信度** | 🟢高/🟡中/🔴低 |

### 主要不确定性因素
[可能导致推导结论偏差的因素]

### 法律声明
本推导结果仅供参考,不构成正式法律意见。

引用说明

本skill方法论来自 THUYRan/Legal-Skills-Chinese/formal-legal-consequence, THUYRan原版21434字,GCL精简至约260行。

Frequently asked questions

What does the Formal Legal Consequence AI skill do?

形式化推导法律后果——根据已确认的事实+法律规范,推导具体法律后果(责任类型/赔偿金额/刑期/处罚幅度)。 适用情形:用户询问"能获得多少赔偿"/"对方承担什么责任"/"会判几年"/"罚款多少"。 核心:四层推导模型(基础后果→调整因素→竞合聚合→量化计算),大前提+小前提→结论。 注意:本skill是法律推理终端环节,输出仅供参考,实际结果由司法机关确定。

Why use Formal Legal Consequence on TypingMind?

Because you install it once and use it with any model. Formal Legal Consequence 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 Formal Legal Consequence 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/formal-legal-consequence. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Formal Legal Consequence?

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 Formal Legal Consequence?

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

Is the Formal Legal Consequence 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 👇