Legal Norm Validity Check logo

Legal Norm Validity Check

Community
vivy-yi
legal-norm-validity-check

法律规范效力核查——在引用法条前验证其是否现行有效、层级是否正确、是否与上位法冲突。 触发条件:Agent引用任何法条作为推理依据前,或用户提供的法条适用性存疑时,或多个法条可能冲突时。 适用场景:劳动仲裁(劳动合同法/劳动争议调解仲裁法)、合同审查(民法典)、数据合规(PIPL/CAC法规)、 公司治理(公司法2023修订)、税务(增值税暂行条例/所得税法)、跨境并购(FDI/ODI规则)。 核心价值:防止引用失效法条(如《合同法》已废止、《民法典》2021年施行后需更新引用)。 本skill是所有场景的"法条质检门"——任何引用法条的skill都应先通过本门。

Overview

Publishervivy-yi
RepositoryGreater-China-Legal
Skill namelegal-norm-validity-check
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 Norm Validity Check 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-norm-validity-check
  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-norm-validity-check .claude/skills/legal-norm-validity-check
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Legal Norm Validity Check 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 Norm Validity Check 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 Norm Validity Check 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.

法律规范效力核查

定位

本skill是所有场景的"法条质检门"。

任何GCL场景skill在输出法条引用前,必须先通过本门。

引用法条 → [legal-norm-validity-check] → ✅有效/⚠️部分有效/❌失效 → 场景skill继续处理

效力状态速查表

状态标记含义
现行有效✅ VALID已生效且未被修改或废止
已修正/修订🔄 AMENDED原文本已被替代,必须引用最新版本
部分失效⚠️ PARTIAL整体有效,但特定条款已被修改或废止
已废止❌ REPEALED已被明确废止,不再具有法律效力
已失效❌ EXPIRED因期限届满或对象消失而自然失效
尚未生效⏳ PENDING已公布但未到达施行日期
效力存疑❓ UNCERTAIN无法确定,需进一步核实

三维度核查框架

维度1:时间效力    → 是否现行有效?有无修订/废止?
维度2:层级效力    → 制定主体是否有权?层级是否正确?
维度3:冲突检查    → 与上位法/同位法是否矛盾?

维度1:时间效力检查(优先级最高,阻断性)

2.1 检查施行日期
    ├── 尚未到达施行日期 → ⏳ PENDING,终止
    └── 已到达 → 继续

2.2 检查有无有效期限
    ├── 期限已届满 → ❌ EXPIRED,终止
    └── 未届满/无期限 → 继续

2.3 检查是否被修正/修订
    ├── 已修正(个别条款)→ 🔄 AMENDED,确认引用条款是否在修改范围内
    ├── 已修订(全面修改)→ 🔄 AMENDED,必须用新版本
    └── 未修改 → 继续

2.4 检查是否被废止
    ├── 明示废止(新法列清单)→ ❌ REPEALED
    ├── 默示废止(新法与旧法矛盾)→ ⚠️ PARTIAL,需分析
    └── 未废止 → ✅ VALID

高频废止清单(必须立即更新引用):

已废止废止日期替代
《合同法》2021-01-01《民法典》合同编
《民法通则》2021-01-01《民法典》总则编
《物权法》2021-01-01《民法典》物权编
《担保法》2021-01-01《民法典》合同编
《婚姻法》《继承法》《收养法》2021-01-01《民法典》婚姻家庭编/继承编
《侵权责任法》2021-01-01《民法典》侵权责任编
《公司法》旧版(2018修正)2024-07-01《公司法》2023修订

维度2:层级效力检查

层级体系:
第一层:宪法
第二层:法律(全国人大/全国人大常委会)
第三层:行政法规(国务院)
第四层:地方性法规 ←→ 部门规章(同层级)
第五层:地方政府规章
其他:司法解释、规范性文件、指导性案例

立法权限红线:

  • 犯罪与刑罚、限制人身自由、税种设立 → 只能制定法律(绝对保留)
  • 部门规章不得超越执行性立法范围,不得增设行政许可

维度3:冲突检查

冲突类型适用规则依据
下位法 vs 上位法上位法优先《立法法》第99条
特别法 vs 一般法特别法优先《立法法》第103条
新法 vs 旧法(同机关)新法优先《立法法》第103条
地方性法规 vs 部门规章国务院提出意见《立法法》第104条

置信度体系

置信度触发条件
🟢 HIGH权威来源(A级)+ 效力明确 + 无矛盾信号
🟡 MEDIUMB级来源 / 近期有修正 / 冲突有明确解决规则
🔴 LOW无法确认修正情况 / 冲突无法通过规则解决 / 规范性文件约束力不明

置信度对后续操作的影响:

  • HIGH → 可直接用于法律推理
  • MEDIUM → 可用于推理,但应注明保留意见
  • LOW → 不得作为确定性结论依据,必须建议用户进一步核实

各场景法条核查要点

劳动仲裁场景

重点法条:劳动合同法、劳动争议调解仲裁法、最高人民法院劳动争议司法解释
核查重点:
  - 劳动合同法修正版(2012)vs 2008旧版:经济补偿金计算规则有调整
  - 劳动仲裁时效:60日(特殊)vs 民事诉讼时效3年,注意衔接
  - 地方劳动仲裁规则差异(北上广深各有细则)

合同审查场景

重点法条:民法典合同编、最高人民法院合同编司法解释
核查重点:
  - 《合同法》已废止:引用必须更新为《民法典》第577条(原107条)
  - 合同编司法解释(一)(二):2023年发布,部分条款替代旧司法解释
  - 民间借贷利率:2020年8月20日LPR4倍上限替代旧固定利率

数据合规场景

重点法条:PIPL、数据安全法、个人信息保护合规审计办法
核查重点:
  - PIPL:2021年11月1日施行,境外处理规则需注意
  - CAC执法:2023年后的执法力度和标准变化快,引用时注意时效
  - 网信办指南:属于规范性文件,不是法规,需标注

公司治理场景

重点法条:公司法2023修订(2024年7月1日施行)
核查重点:
  - 2024年7月1日前适用旧版公司法(2018修正)
  - 过渡期规则:存量公司2年调整期
  - 司法解释(一)至(五):部分与新公司法不一致,需核查

税务合规场景

重点法条:增值税暂行条例、消费税法、所得税法、税务规范性文件管理办法
核查重点:
  - 部分税种仍以"暂行条例"形式存在,具有法律效力
  - 税务总局公告:属于规范性文件,不可作为裁判依据引用
  - 税收协定 vs 国内法:协定优先(但中国声明保留的条款除外)

跨境并购场景

重点法条:外商投资法及实施条例、ODI备案办法、证券法(VIE架构核查)
核查重点:
  - 外商投资法(2020)替代旧三资法:过渡期安排
  - VIE架构:证监会2021年限VIE境外上市规定,注意时效
  - 国家安全审查:外商投资安全审查办法(2021)

输出格式

单条法条效力报告

## 法条效力检查报告

### 基本信息
- **法条名称:** [完整名称]
- **制定机关:** [机关名称]
- **层级:** [法律/行政法规/地方性法规/部门规章/司法解释/规范性文件]
- **施行日期:** [YYYY-MM-DD]
- **引用条款:** 第X条第X款第X项
- **检查时间:** [YYYY-MM-DD]

### 三维度核查

| 维度 | 结果 | 说明 |
|---|---|---|
| 时间效力 | [✅/🔄/⚠️/❌/⏳/❓] | [具体说明] |
| 层级效力 | [✅/⚠️/❓] | [制定机关权限+层级是否正确] |
| 冲突检查 | [✅无冲突/⚠️存在冲突/❓待确认] | [与上位法/同位法关系] |

### 最终判定
- **效力状态:** [现行有效/已修正/部分失效/已废止/尚未生效/效力存疑]
- **置信度:** [🟢HIGH/🟡MEDIUM/🔴LOW]
- **建议:** [✅可直接引用/🔄需更新至最新版本/❌不可引用/❓需进一步核实]

批量检查汇总

| 序号 | 法条名称 | 引用条款 | 时间效力 | 层级效力 | 冲突 | 判定 | 置信度 | 建议 |
|---|---|---|---|---|---|---|---|---|
| 1 | [名称] | 第X条 | [状态] | [状态] | [状态] | [判定] | [H/M/L] | [建议] |

常见错误防范

错误后果防范
E01:引用已废止法条⭐⭐⭐⭐⭐致命引用前必须通过本门;建立废止清单
E02:引用旧版本⭐⭐⭐⭐⭐致命确认最新修正日期;对比新旧条文
E03:层级错误⭐⭐⭐⭐严重明确标注层级;冲突时严格适用上位法优先
E04:忽视冲突⭐⭐⭐⭐严重对核心依据执行冲突检查
E05:规范性文件误当法规⭐⭐⭐重大区分法规/规章/规范性文件

辅助工具

# 法条溯源工具(优先级)
1. 国家法律法规数据库 https://flk.npc.gov.cn  (A级的权威来源)
2. 北大法宝 https://www.pkulaw.com           (B级修订/废止历史)
3. 最高人民法院官网                          (司法解释清理公告)

核心原则:法条的现行效力状态必须来自真实溯源,严禁凭记忆判断某法条是否被修订或废止。


与场景的集成方式

当GCL场景skill需要引用法条时,在引用前插入效力核查步骤:

场景skill处理流程:
  1. [legal-element-extraction] 提取法律事实
  2. [legal-norm-validity-check] 核查引用法条 ← 必须插入
  3. [场景特定分析] 继续处理

对于GCL的9个场景,以下法条建议优先核查:

场景高风险法条(易引用错误)
labor-arbitration劳动合同法第39/46/47条;劳动争议调解仲裁法第27条
contract-review民法典第577条(原合同法第107条);民法典第584条(原合同法第113条)
data-compliancePIPL第13/38/55条;数据安全法第21条
company-governance公司法第26/74/142条(注册资本/股权回购/股份转让)
tax-compliance增值税暂行条例第1条;所得税法第1条
ip-infringement专利法第64条;商标法第56条;著作权法第52条
cross-border-ma外商投资法第22条;ODI备案办法第7条
internet-finance网络借贷信息中介机构业务活动管理暂行办法(2016,已废止)
litigation-support民事诉讼法第64-73条(举证责任);最高人民法院证据规定(2019)

Frequently asked questions

What does the Legal Norm Validity Check AI skill do?

法律规范效力核查——在引用法条前验证其是否现行有效、层级是否正确、是否与上位法冲突。 触发条件:Agent引用任何法条作为推理依据前,或用户提供的法条适用性存疑时,或多个法条可能冲突时。 适用场景:劳动仲裁(劳动合同法/劳动争议调解仲裁法)、合同审查(民法典)、数据合规(PIPL/CAC法规)、 公司治理(公司法2023修订)、税务(增值税暂行条例/所得税法)、跨境并购(FDI/ODI规则)。 核心价值:防止引用失效法条(如《合同法》已废止、《民法典》2021年施行后需更新引用)。 本skill是所有场景的"法条质检门"——任何引用法条的skill都应先通过本门。

Why use Legal Norm Validity Check on TypingMind?

Because you install it once and use it with any model. Legal Norm Validity Check 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 Norm Validity Check 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-norm-validity-check. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Legal Norm Validity Check?

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 Norm Validity Check?

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

Is the Legal Norm Validity Check 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 👇