Legal Abductive Reasoning logo

Legal Abductive Reasoning

Community
vivy-yi
legal-abductive-reasoning

溯因推理——在证据不完整、事实模糊时生成并评估最合理的解释性假设。 适用情形:提出可能的法律解释、生成辩护/起诉假设、评估证据的多种解读、基于不完整事实推断最佳解释。 核心工具:米尔五法(求同/求异/求同求异/剩余/共变)。 关键特征:可废止性(假设可被新证据推翻)、创造性、解释性。 与deductive-reasoning互补:演绎是大前提明确时的推理,溯因是大前提缺失时填补解释缺口。

Add to TypingMind

Overview

Publishervivy-yi
RepositoryGreater-China-Legal
Skill namelegal-abductive-reasoning
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 Abductive Reasoning 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-abductive-reasoning
  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-abductive-reasoning .claude/skills/legal-abductive-reasoning
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Legal Abductive Reasoning 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 Abductive Reasoning 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 Abductive Reasoning 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-abductive-reasoning — 法律溯因推理

核心概念

溯因推理:从结果推测原因
"观察到现象 → 提出最合理的解释(假设)"

关键特征:
- 可废止性:假设可被新证据推翻(非单调推理)
- 创造性:需要想象力和创造性思维
- 解释性:关注"为什么"而非"是什么"

溯因 vs 演绎 vs 归纳

类型方向结论确定性
演绎推理一般→特殊确定
归纳推理特殊→一般或然性
溯因推理结果→原因可废止性

米尔五法:假设生成与检验工具

求同法(Method of Agreement)— 找必要条件

案例1:因素A、B、C → 现象x发生
案例2:因素A、D、E → 现象x发生
─────────────────────────────
∴ A 是 x 的必要条件(无A则无x)

求异法(Method of Difference)— 找充分条件

案例1:因素A、B、C → 现象x发生
案例2:    B、C   → 现象x不发生
─────────────────────────────
∴ A 是 x 的充分条件(有A则有x)

求同求异并用法(Joint Method)— 必要+充分

同时应用求同法和求异法,强化因果推断。

剩余法(Method of Residues)— 解释剩余部分

已知:A+B+C → x+y+z
已知:B → y,C → z
────────────────────
∴ A → x(剩余部分由新原因解释)

共变法(Method of Concomitant Variation)— 变量关系

A增强 → x增强
A减弱 → x减弱
────────────────────
∴ A 与 x 存在因果或共同原因关系

工作流程:五步溯因分析法

Step 1: 事实梳理

目标:清晰列出已知事实,识别信息缺口

操作:
1. 区分已证实事实与待证事实
2. 标注有利事实与不利事实
3. 识别模糊之处和多种可能性

输出:
## 已知事实
- [事实1]:[描述](证据来源/强度)

## 信息缺口
- [缺口1]:[缺失的关键信息]

## 模糊之处
- [模糊点1]:[可多种解读的事实]

Step 2: 假设生成

目标:基于米尔五法,生成多个竞争性解释

强制要求:至少生成3个假设,涵盖不同角度

假设类型:
- 事实假设:事件经过的不同版本
- 意图假设:行为动机和目的的不同解释
- 法律假设:构成要件是否满足的不同判断

输出:
## 竞争性假设

### 假设1:[简要描述]
- 基于方法:[求同/求异/并用/剩余/共变]
- 核心主张:[一句话概括]
- 支持证据:[列出支持的事实]
- 潜在弱点:[列出不利的事实]
- 可废止条件:[什么证据会推翻此假设]

Step 3: 假设评估(PEIRCE标准)

标准含义评估问题
解释力覆盖度能否解释所有已知事实?
简洁性奥卡姆剃刀是否引入不必要实体?
可检验性实证可能能否被验证或证伪?
背景契合先例一致性与类似案例是否一致?
评估矩阵:
| 假设 | 解释力 | 简洁性 | 可检验性 | 背景契合 | 综合 |
|------|--------|--------|----------|----------|------|
| H1   | 高/中/低 | 高/中/低 | 高/中/低 | 高/中/低 | ⭐⭐⭐⭐⭐ |
| H2   | ...    | ...    | ...      | ...      | ...    |

Step 4: 最佳解释推断

决策:
- 首选假设:综合评分最高
- 备选假设:评分相近的保留选项
- 关键不确定性:影响判断的信息缺口

Step 5: 验证与修正

操作:
1. 列出可进一步收集的证据
2. 预测新证据对各假设的影响
3. 制定假设修正的触发条件

输出格式

## 溯因推理报告

### 已知事实
- [事实1]:[描述](证据来源/强度)

### 信息缺口
- [缺口1]:[缺失的关键信息]

### 竞争性假设

#### 假设1:[名称]
- 基于方法:[求同/求异/并用/剩余/共变]
- 核心主张:[一句话]
- 支持证据:[清单]
- 潜在弱点:[清单]
- 可废止条件:[条件]

#### 假设2:[名称]
[同上格式]

#### 假设3:[名称]
[同上格式]

### 评估矩阵
| 假设 | 解释力 | 简洁性 | 可检验性 | 背景契合 | 综合 |
|------|--------|--------|----------|----------|------|
| H1   |        |        |          |          | ⭐    |
| H2   |        |        |          |          | ⭐    |

### 最佳解释推断
- 首选假设:H1
- 备选假设:H2
- 关键不确定性:[缺口]

### 可验证路径
- 证据1:[收集什么证据]
- 预期影响:[对各假设的影响]

### 置信度:🟢高 / 🟡中 / 🔴低

引用说明

本skill方法论来自 THUYRan/Legal-Skills-Chinese/Legal-Abductive-Reasoning, THUYRan原版7000字,GCL精简至约180行,保留核心流程和PEIRCE评估框架。

Frequently asked questions

What does the Legal Abductive Reasoning AI skill do?

溯因推理——在证据不完整、事实模糊时生成并评估最合理的解释性假设。 适用情形:提出可能的法律解释、生成辩护/起诉假设、评估证据的多种解读、基于不完整事实推断最佳解释。 核心工具:米尔五法(求同/求异/求同求异/剩余/共变)。 关键特征:可废止性(假设可被新证据推翻)、创造性、解释性。 与deductive-reasoning互补:演绎是大前提明确时的推理,溯因是大前提缺失时填补解释缺口。

Why use Legal Abductive Reasoning on TypingMind?

Because you install it once and use it with any model. Legal Abductive Reasoning 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 Abductive Reasoning 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-abductive-reasoning. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Legal Abductive Reasoning?

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 Abductive Reasoning?

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

Is the Legal Abductive Reasoning 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 👇