reg-gap-analysis

reg-gap-analysis is a skill for Claude Code from zhou210712/claude-for-legal-ZH. It costs 71 tokens per session (2,951 once invoked), scanned A, a copy of smart-search, Apache-2.0.

A skill that compares a new or revised AI regulation with your current AI policy and practices. It produces a list of gaps and a remediation plan with owners, dates, and priorities.

In plain words
What is it for?
Use it when a new rule is issued, when someone asks whether a regulation affects you, or when you provide regulation text for review.
Why use it?
It turns a long or changing regulation into specific actions your organisation may need to take.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: reads .claude/ paths; mentions CLAUDE.md.

Part of the ai-governance-legal plugin — 10 skills, 3 MCP servers shipped together

Good fit Use it when a new rule is issued, when someone asks whether a regulation affects you, or when you provide regulation text for review.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/zhou210712/claude-for-legal-zh/reg-gap-analysis
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add zhou210712/claude-for-legal-ZH --skill reg-gap-analysis
Clone the repo
git clone --depth 1 https://github.com/zhou210712/claude-for-legal-ZH

Made for: Claude Code.

Or install ai-governance-legal, the plugin that ships this one along with the rest of its 10 skills, 3 MCP servers.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for reg-gap-analysis

README.md
[![agentmods](https://agentmods.dev/badge/skills/zhou210712/claude-for-legal-zh/reg-gap-analysis/github.svg)](https://agentmods.dev/skills/zhou210712/claude-for-legal-zh/reg-gap-analysis)
Your own site
<a href="https://agentmods.dev/skills/zhou210712/claude-for-legal-zh/reg-gap-analysis"><img src="https://agentmods.dev/badge/skills/zhou210712/claude-for-legal-zh/reg-gap-analysis/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for reg-gap-analysis

Your own site · 80×15
<a href="https://agentmods.dev/skills/zhou210712/claude-for-legal-zh/reg-gap-analysis"><img src="https://agentmods.dev/badge/skills/zhou210712/claude-for-legal-zh/reg-gap-analysis.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 71 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,951 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 81% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00071 $0.02951
Opus 5 $0.00036 $0.01476
Sonnet 5 $0.00014 $0.00590
Haiku 4.5 $0.00007 $0.00295

Measured 12d ago against content hash 5e48972bd07c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

reg-gap-analysis scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

81% identical to smart-search — 239 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

ai-governance-legal/skills/reg-gap-analysis/SKILL.md · 190 lines

How it starts

The opening of the file, as written. The whole thing — 190 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/reg-gap-analysis

  1. 读取 ~/.claude/plugins/config/claude-for-legal/ai-governance-legal/CLAUDE.md → AI系统清单、监管注册表、AI政策承诺。
  2. 运行以下工作流。
  3. 范围:该法规是否适用?(管辖权、阈值、行业)
  4. 提取要求 → 与当前状态对比 → 差距清单。
  5. 整改计划附负责人、日期、优先级。
  6. 保存注明日期的文档。即使"无差距"也应记录。
/ai-governance-legal:reg-gap-analysis "生成式人工智能服务管理办法"

AI法规与政策差距分析

目的

网信办发布新的AI管理规定。科技部更新伦理审查标准。某省出台AI治理细则。法规有所变化——现在你需要知道哪些地方需要跟进。

此技能将新要求与你当前的AI实践(按照 ~/.claude/plugins/config/claude-for-legal/ai-governance-legal/CLAUDE.md → AI系统清单 + AI使用政策承诺 + 已完成的评估记录)进行对比,产出差距清单和整改计划。

加载当前状态

读取 ~/.claude/plugins/config/claude-for-legal/ai-governance-legal/CLAUDE.md

  • ## AI系统清单 — 已部署、在评估和已退役的系统
  • ## 监管注册表 — 已经适用的法规
  • ## AI使用政策 — 已对外公开的AI使用承诺或内部AI治理政策
  • ## 科技伦理审查配置 — 伦理审查委员会的设置和流程

如果该法规不适用于你(错误管辖权、低于阈值、不同行业),差距分析只有一行:"不适用。理由:[原因]。无需行动。"

工作流

第1步:法规范围界定

在对比之前,先回答:

  • 是否适用? 法规是否覆盖你的业务类型、系统类型或数据规模?
    • 是否向中国境内公众提供AI服务?(《生成式人工智能服务管理办法》第2条 [法条原文]
    • 是否使用算法推荐技术?(《互联网信息服务算法推荐管理规定》第2条 [法条原文]
    • 是否涉及深度合成?(《互联网信息服务深度合成管理规定》第2条 [法条原文]
    • 是否涉及需科技伦理审查的科技活动?(《科技伦理审查办法(试行)》[法条原文]
  • 何时生效? 生效日期、执法开始日期(通常晚于生效日期)、是否有过渡期
  • 真正的新内容是什么? 识别与已有合规义务的增量差异,而非全文重述

第2步:提取要求

阅读法规文本(或摘要/指南)。将每项实质性要求列为离散条目:

# 要求 法条引用 类别
1 [要求原文或摘要] [条款] [训练数据 / 透明度 / 安全 / 备案 / 伦理 / 其他]

类别:

  • 训练数据 — 训练数据的合法性、来源、知识产权、个人信息保护
  • 透明度 — 告知用户、标识AI生成内容、算法说明
  • 安全 — 安全评估、技术措施、内容安全管理
  • 备案 — 算法备案要求、备案变更义务
  • 伦理 — 科技伦理审查要求
  • 治理 — 个人信息保护负责人、投诉机制、审计日志留存
  • 责任 — 提供者/使用者责任分配

第3步:与当前状态对比

对每项要求:

### [要求 #N]:[简短名称]

**法规要求:** [要求原文或概述]

**我方现状:** [当前AI系统清单 / 政策 / 实践显示的现状]

**差距:** [无 / 部分 / 完全]

**如为部分/完全差距——缺什么:** [具体说明]

**弥补难度:** [仅政策更新 / 产品变更 / 供应商重新谈判 / 新流程建设]

**违规风险:** [行政处罚/责令整改/罚款幅度、执法可能性、声誉影响]

中国AI法规的行政处罚参考

  • 《生成式人工智能服务管理办法》第21条:警告、通报批评、责令限期改正;拒不改正或情节严重者,责令暂停服务,处一万元以上十万元以下罚款 [法条原文]
  • 《互联网信息服务算法推荐管理规定》第31条:警告、通报批评、责令限期改正;拒不改正或情节严重者,责令暂停信息更新,处一万元以上十万元以下罚款 [法条原文]
  • 《个人信息保护法》第66条:情节严重的,处五千万元以下或者上一年度营业额百分之五以下罚款 [法条原文]

Read the full file on GitHub · 190 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 190 lines · 71 tokens per session scan A 5e48972bd07c

Subscribe to this mod's changes

reg-gap-analysis is a skill published in the GitHub repository zhou210712/claude-for-legal-ZH (212 stars, last pushed 4mo ago), licensed Apache-2.0. It adds 71 tokens to every session and 2,951 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. It is 81% identical to smart-search, differing in 239 lines, and is treated as a copy.

Related

Other skills, from other repositories

specification-writing

A workflow for writing complete patent specifications from patent claims and an invention disclosure. It adapts the document to a chosen jurisdiction, such as the US, Europe, or China.

wanshuiyin/Auto-claude-code-research-in-sleep · 49 tokens

regulatory-research-fallback

Fallback workflow for regulatory research when web extraction tools fail on government PDFs.

HKUDS/OpenSpace · 20 tokens

x-scorecard

OpenSSF Scorecard for assessing open source project security. Check security best practices and compliance. Dependency: This is an x-cmd module. Install x-cmd first (see x-cmd skill for installation options). see x-cmd skill for installation.

x-cmd/x-cmd · 57 tokens

gesellschaftsrechtliche-satzungen-agb

Für Gesellschaftsrechtliche Satzungen AGB Abgrenzung: ordnet Norm, Beweislast und Gegenargument; Ergebnis: Prüfprodukt mit Risiko und nächstem Schritt. Fachgebiet: AGB-Recht-Prüfer. Route: gesellschaftsrechtliche-satzungen-agb.

Klotzkette/claude-fuer-deutsches-recht · 69 tokens

memstack-business-gdpr

Use this skill when the user says 'GDPR', 'data protection', 'privacy compliance', 'DPA', 'DSAR', 'data subject request', 'cookie consent', 'privacy audit', 'CCPA', or asks 'do I need GDPR for this repo'. Scans the repository to detect what personal data is collected, classifies sensitivity, determines whether GDPR…

cwinvestments/memstack · 121 tokens

nda-review

Use when the user uploads or pastes a non-disclosure agreement and asks for review, redline, risk assessment, or a recommendation on whether to sign. Identifies missing standard protections, one-sided or unusual provisions, and operational issues; produces a structured report with severity ratings and citations to…

LegalQuants/lq-ai · 79 tokens