/ai-governance-legal:reg-gap-analysis [regulation name, or paste regulatory text, or attach a document]from ai-governance-legal
Diff a new AI regulation or guidance against your current governance posture — surfaces gaps, priorities, and a remediation plan with owners and deadlines. Use when an AI regulation moves (or you learn about one you missed), or when user says "new reg just dropped", "does [regulation] affect us", "gap analysis for EU AI Act", "compliance check against [AI law or guidance]", or pastes regulatory text.
Ships in ai-governance-legal. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
~/.claude/plugins/config/claude-for-legal/ai-governance-legal/CLAUDE.md. Confirm regulatory footprint and use case registry are populated.~/.claude/plugins/config/claude-for-legal/ai-governance-legal/CLAUDE.md./ai-governance-legal:reg-gap-analysis "EU AI Act high-risk provisions"
PL 2338/2023 gets a new substitutivo. ANPD issues a Resolução on AI and personal data. BCB/CMN updates rules for AI-driven credit scoring. The EU AI Act goes live and your company has EU exposure. Something moves — and now you need to know what, if anything, you have to change.
This skill diffs the new requirement against your current AI governance posture
(per ~/.claude/plugins/config/claude-for-legal/ai-governance-legal/CLAUDE.md — use case registry, vendor positions, impact assessment practices,
and AI policy commitments) and produces a gap list with a remediation plan.
The AI regulatory landscape is moving faster than any other area of law right now. When a regulation is genuinely ambiguous, say so. Don't paper over uncertainty — legal teams need to know when they're on solid ground versus when they're making a judgment call.
Read ~/.claude/plugins/config/claude-for-legal/ai-governance-legal/CLAUDE.md:
## Regulatory footprint — what already applies## Use case registry — what AI you're actually running, and under what conditions## AI policy commitments — what you've publicly or contractually committed to## Vendor AI governance — what vendor positions are in place## Impact assessment house style — what assessment practices existIf the regulation clearly doesn't apply (wrong jurisdiction, below threshold, wrong sector, builder/deployer distinction eliminates you from scope), say so directly: "Doesn't apply. Here's why: [reason]. No action needed."
Before running the gap analysis, research the currently operative AI regulatory regimes for the jurisdictions in the user's footprint. For each regime identify:
Cite the regulatory text with pinpoint references. Flag provisions subject to ongoing interpretation, delegated acts, or pending rulemaking. The AI regulatory landscape changes quickly — verify currency before advising.
Build the gap analysis from the researched requirements, not from hardcoded reference tables.
Before diffing, answer:
Does it apply? Jurisdiction, threshold, sector carve-outs, builder vs. deployer distinction. Research the specific scoping rules in the regulation — don't assume.
Builder/deployer matters a lot here. Many AI regimes impose different obligations on the entity that develops/provides the AI system versus the entity that deploys/uses it. Research which role the company occupies under each regime's definitions. Scope first; don't gap-analyze a law that doesn't apply.
When? Effective date. Enforcement date (often different). Phase-in periods for specific provisions. Verify currency.
What's actually new? Some "new" AI laws largely restate existing legal principles (consumer protection, anti-discrimination, sectoral risk management) applied to AI. Others are genuinely new obligations. Identify the delta from what you already do, not the full text of the law.
Read the regulation, guidance, or summary. List every substantive requirement:
| # | Requirement | Citation | Category |
|---|---|---|---|
| 1 | [requirement] | [section] | [see categories below] |
Categories:
For each requirement:
### [Requirement #N]: [short name]
**Regulation says:** [requirement, quoted or paraphrased]
**We currently:** [what `~/.claude/plugins/config/claude-for-legal/ai-governance-legal/CLAUDE.md` / AI policy / use case registry / assessment
practice shows]
**Gap:** [None | Partial | Full]
**If partial/full — what's missing:** [specific — not "more documentation" but
"no human review step is documented for [use case category]"]
**Effort to close:** [Policy update only | Process change | Product/system change |
New assessment required | Vendor renegotiation | Registration / filing]
**Risk of non-compliance:** [penalty range, enforcement likelihood, reputational]
Not every gap is equal. Sort by:
[WORK-PRODUCT HEADER — per plugin config ## Outputs — differs by role; see `## Who's using this`]
## Remediation Plan: [Regulation name]
**Effective date:** [date]
**Enforcement begins:** [date if different]
**Applies to us as:** [Builder / Deployer / Both]
### Must-do before enforcement
| Gap | Fix | Owner | Due | Status |
|---|---|---|---|---|
| [gap] | [specific fix] | [name] | [date] | [ ] |
### Should-do (important but not blocking enforcement)
[same table]
### Already compliant
[list of requirements where gap = None — useful context for the legal/executive
summary of where you actually stand]
### Accepted gaps (risk accepted, not fixing)
[if any — with documented rationale and who accepted the risk. Documenting accepted
risk is better governance than leaving it unaddressed silently.]
Do not rely on hardcoded reference tables for specific regimes. For each regulation in scope, research the currently operative text:
Cite primary sources with pinpoint references. Flag ambiguity for attorney judgment.
No silent supplement. If a research query to the configured legal research tool (JusBrasil, Escavador, PJe, regulator sites, or firm platform) returns few or no results for a regime's text, delegated act, or guidance, report what was found and stop. Do NOT fill the gap from web search or model knowledge without asking. Say: "The search returned [N] results from [tool]. Coverage appears thin for [regime / topic]. Options: (1) broaden the search query, (2) try a different research tool, (3) search the web — results will be tagged
[web search — verify]and should be checked against the issuing authority before relying, or (4) flag as unverified and stop. Which would you like?" A lawyer decides whether to accept lower-confidence sources.Source attribution tiering. Tag every citation in the gap analysis with its source. For model-knowledge citations, use one of three tiers rather than a single blanket "verify" tag:
[settled]— stable, well-known statutory and regulatory references unlikely to have changed (e.g., LGPD Art. 20 as the source of the automated-decision review right, ANPD as the enforcing authority; for comparison purposes, GDPR Art. 22 or the existence of Regulation (EU) 2024/1689 as the EU AI Act). Still verify before filing, but lower priority.[model knowledge — verify]— model-knowledge citations that are real but should be verified: specific ANPD Resoluções, sector-regulator guidance (BCB/CMN, Anvisa, CVM), standards, enforcement actions, court decisions, thresholds, effective dates, phase-in provisions, harmonized-standards references.[verify-pinpoint]— pinpoint citations (specific article numbers, annex references, subsection letters, paragraph numbers, standard-clause references) carry the highest fabrication risk and should ALWAYS be verified against a primary source. PL 2338/2023 article numbers in particular shift with every substitutivo; every pinpoint cite to it should be verified against the text currently tramitando in Congresso.Tool-retrieved citations keep their source tag (
[JusBrasil],[Escavador],[PJe],[statute / regulator site], or the MCP tool name); web-search citations remain[web search — verify]; user-supplied citations remain[user provided]. The tiering surfaces the real verification work — a reader who verifies everything verifies nothing. Never strip or collapse the tags.For non-lawyer users, uncertain dates, thresholds, and phase-in provisions go in a confirm-list, not inline. A
[verify]tag on "effective February 1, 2026" reads as "effective February 1, 2026" to a non-lawyer who doesn't know what the tag means. Read## Who's using thisin~/.claude/plugins/config/claude-for-legal/ai-governance-legal/CLAUDE.md. If Role is Non-lawyer and a date, deadline, phase-in, threshold, or effective-date assertion is uncertain (would carry[verify]or[verify-pinpoint]if inline), replace the inline assertion with "effective date: confirm with counsel" (or "threshold: confirm with counsel") and collect all uncertain items in a final gap-analysis section titled: "Things I'm not certain about — ask your attorney to confirm before relying on this:" with each item listed (what I said, what's uncertain, why it matters to the gap). Lawyer-role users keep the inline[verify]treatment.
From aia-generation: AIAs flag regulatory obligations for specific systems → those feed here when a regulation is new or coverage is uncertain.
From use case triage: Newly triaged use cases that hit regulatory triggers → gap analysis runs on the specific requirement for that use case type.
To regulatory-legal plugin, if the plugin is installed: This skill is the manual version. The monitor plugin watches feeds and triggers this analysis automatically when something relevant changes.
Save as a dated markdown doc. The remediation plan table becomes a tracker — update status as items close.
If the gap analysis concludes "no gaps, we're compliant," still write the doc. It's useful evidence that you looked, and useful baseline when the regulation is amended.
Cite check before relying on this. Citations here were generated by an AI model and have not been verified against primary sources. Before relying on any citation — statute, regulation, delegated act, guidance, or case — run a verification pass against a legal research tool (JusBrasil, Escavador, PJe, or your firm's platform) for accuracy, currency, and subsequent history. Fabricated or misquoted citations in filed materials have resulted in sanctions. Source tags on each citation (e.g., [statute / regulator site], [web search — verify]) show where it came from; verify tags carry higher fabrication risk and should be checked first.
End with the next-steps decision tree per CLAUDE.md ## Outputs. Customize the options to what this skill just produced — the five default branches (draft the X, escalate, get more facts, watch and wait, something else) are a starting point, not a lock-in. The tree is the output; the lawyer picks.
regulatory-legal plugin, if the plugin is installed.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
10 skills in this plugin
/aia-generationRoda uma avaliação de impacto de sistema de IA (AIA) — intake estruturado, análise de risco, classificação regulatória por regime aplicável (LGPD Art. 20, PL 2338/2023, regulação setorial BCB/Anvisa/CVM), diff de consistência com a política e recomendação com condições. Usa a estrutura house-style aprendida da avaliação-semente em `~/.claude/plugins/config/claude-for-legal/ai-governance-legal/CLAUDE.md`. Use quando o usuário disser "avaliação de impacto para", "avalia esse caso de uso de IA", "roda uma AIA", "gera uma AIA", "precisamos documentar esse sistema de IA", "avaliação de risco de IA para X", ou após um resultado condicional de triagem.
/ai-inventoryInventário de sistemas de IA por sistema (framework brasileiro) — rastreia o papel de cada sistema (fornecedor/desenvolvedor, operador/implementador, distribuidor) e o nível de risco (risco excessivo/proibido, alto risco, risco geral) sob o PL 2338/2023 e a sobreposição da LGPD (Art. 20 — decisão automatizada). Papel e nível são avaliados por sistema, não por empresa. Use quando o usuário disser "inventário de IA", "adicionar sistema de IA", "que sistemas temos", "classificar este sistema de IA", "registro do PL 2338" ou "registro de sistemas de IA".
npx claudepluginhub bossmann007/claude-legal-br --plugin ai-governance-legal