Legal Article Retrieval logo

Legal Article Retrieval

Community
vivy-yi
legal-article-retrieval

法律条文检索——检索有效法律规范,生成标准化检索报告。 适用情形:确定诉讼请求法律基础/审查对方适用法律/复核裁决依据/分析司法实践倾向。 核心:五阶段流程(准备→思维→执行→复核→成果),法源位阶体系(宪法→司法解释→部门规章),请求权思维。 注意:必须在检索前确认争议类型/主体信息/核心事实/争议焦点/地域信息,禁止基于假设推断。

Overview

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

Use it in TypingMind

Enable Legal Article Retrieval 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 Article Retrieval 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 Article Retrieval 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-article-retrieval — 法律条文检索

五阶段检索流程

准备阶段 → 思维阶段 → 执行阶段 → 复核阶段 → 成果阶段
    ↓         ↓         ↓         ↓         ↓
明确目的   法源位阶   体系检索   交叉验证   报告呈现
工具配置   法律关系   关键词法   涵摄检验   结论形成
          请求权思维  案例倒查   检索循环   风险提示
          效力甄别
          冲突处理

检索前必须确认的信息

信息类别必须确认内容
争议类型劳动争议/合同纠纷/侵权责任/婚姻家庭/行政
主体信息我方 vs 对方
核心事实时间、地点、行为
争议焦点我方诉求是什么
地域信息涉及省份/城市
法律关系是否签订合同

严格禁止:

  • ❌ 用户未确认事实前调用检索工具
  • ❌ 基于假设进行推断式法律分析
  • ❌ 事实总结中出现法律结论

法源位阶体系

效力层级渊源说明
高宪法最高法律效力
↑法律(全国人大/常委会)基本法律/普通法律
行政法规(国务院)总理签署国务院令
地方性法规省级人大及其常委会
部门规章国务院各部委
低地方政府规章省级政府

非正式渊源(参考):

  • 司法解释(最高法/最高检)
  • 指导性案例
  • 会议纪要(九民纪要等)
  • 学术通说

请求权思维

步骤1:识别请求权基础
  用户想要什么?(赔偿/解除/确认/变更)

步骤2:定位请求权类型
  合同请求权 / 侵权请求权 / 不当得利请求权 / 无因管理请求权

步骤3:检索构成要件
  《民法典》第X条:
  ① 要件A:...
  ② 要件B:...
  ③ 要件C:...

步骤4:涵摄检验
  案件事实 → 是否满足全部要件?

关键词检索法

步骤1:确定核心术语
  法律概念的标准表达

步骤2:构建检索词组合
  AND:同时包含(概念+地域)
  OR:同义词扩展(甲方/发包方)

步骤3:交叉验证
  同一法条在不同数据库中交叉核对

复核阶段

QC1:法律是否现行有效?
  - 检查修订历史
  - 检查是否已被废止

QC2:适用范围是否匹配?
  - 主体:自然人/法人/特殊主体
  - 地域:全国/地方
  - 时间:生效/失效

QC3:冲突如何处理?
  - 上位法优于下位法
  - 新法优于旧法
  - 特别法优于一般法

输出格式

## 法律检索报告

### 检索目的
[简述检索目标]

### 事实总结
- 主体:[我方] vs [对方]
- 时间线:[发生了什么]
- 争议焦点:[我方诉求]
- 地域:[涉及地区]

### 核心法条

**《[法规名]》第X条第X款**
[条文内容]

| 项目 | 内容 |
|------|------|
| 效力层级 | [层级] |
| 生效日期 | [日期] |
| 构成要件 | ①...②...③... |

### 辅助规范
- [相关司法解释]
- [地方性规定]

### 司法实践
[裁判规则/指导性案例]

### 检索结论
[是否支持用户的请求/主张]

### 风险提示
[检索局限性/不确定性]

引用说明

本skill方法论来自 THUYRan/Legal-Skills-Chinese/legal-article-retrieval, THUYRan原版32253字,GCL精简至约250行。

Frequently asked questions

What does the Legal Article Retrieval AI skill do?

法律条文检索——检索有效法律规范,生成标准化检索报告。 适用情形:确定诉讼请求法律基础/审查对方适用法律/复核裁决依据/分析司法实践倾向。 核心:五阶段流程(准备→思维→执行→复核→成果),法源位阶体系(宪法→司法解释→部门规章),请求权思维。 注意:必须在检索前确认争议类型/主体信息/核心事实/争议焦点/地域信息,禁止基于假设推断。

Why use Legal Article Retrieval on TypingMind?

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

Which AI models can use Legal Article Retrieval?

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 Article Retrieval?

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

Is the Legal Article Retrieval 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 👇