Skip to content

Guide · Agent skill

How to use the reg-gap-analysis agent skill for AI law gaps

Updated · written with AI from the project's own documentation and checked against our catalogue data

reg-gap-analysis is an agent skill, a packaged set of instructions that an AI agent such as Claude Code loads and follows for a specific task. When a new AI law or guidance appears, it has the agent check whether the rule applies to your organization, extract its requirements, and compare them with your existing AI governance records. This guide explains what the skill does, how to install it, how to trigger it, and what to check before relying on its output.

Regulatory Gap Analysisanthropics/claude-for-legal · Apache-2.0

Quick start

  1. 1Download and unzip. Download the skill ZIP from the directory page and unzip it into ~/.claude/skills/ for personal use or into .claude/skills/ in a project.
  2. 2Or upload in the Claude apps. In the Claude apps, go to Settings, then Capabilities, then Skills, and upload the ZIP.
  3. 3Populate your CLAUDE.md. Fill in the regulatory footprint, use case registry, AI policy commitments, vendor AI governance and impact assessment sections in ~/.claude/plugins/config/claude-for-legal/ai-governance-legal/CLAUDE.md.
  4. 4Run the skill on a regulation. Invoke /reg-gap-analysis with the regulation name, pasted text or an attached document.
  5. 5Review the scope decision. Check whether the agent finds the regulation applies to you and why. If it does not apply, the run ends with a one-line explanation.
  6. 6Review the ranked gaps. Check each must-do, should-do, already compliant and accepted item, and verify the cited requirements yourself.
  7. 7Save and verify with counsel. Keep the dated markdown document for your file and have a qualified lawyer review it before acting.

What does the reg-gap-analysis skill make the agent do?

The skill runs a fixed workflow. The agent first reads your governance file at ~/.claude/plugins/config/claude-for-legal/ai-governance-legal/CLAUDE.md to confirm that the regulatory footprint and use case registry are filled in. It then decides whether the regulation applies, looking at jurisdiction, thresholds, sector carve-outs and whether your company is a builder or a deployer. If the rule does not apply, the agent says so in one line and stops.

If it applies, the agent extracts each substantive requirement, compares it with your current state (use case registry, vendor positions, AI policy commitments and impact assessment practices), and rates each item as a gap. The output sorts items into must-do, should-do, already compliant, or accepted gaps, each with an effort estimate, and saves a dated markdown document for your file.

The skill is written to flag ambiguity. Where a regulation is unclear, the agent is instructed to say so instead of presenting an uncertain point as settled.

How do I install the reg-gap-analysis skill?

Download the skill ZIP from the directory page. Then install it in one of two ways. For a personal setup, unzip it into ~/.claude/skills/. For a single project, unzip it into the project's .claude/skills/ folder. In the Claude apps, you can instead upload the ZIP under Settings, then Capabilities, then Skills.

The skill package contains a single file, SKILL.md. Keep the folder structure from the ZIP intact so the agent can find that file.

  • Personal install: unzip into ~/.claude/skills/
  • Project install: unzip into .claude/skills/ inside the project folder
  • Claude apps: Settings → Capabilities → Skills, then upload the ZIP

Prepare your CLAUDE.md before the first run

The analysis compares a new rule against what you already do, so the agent needs that information in a file it can read. The skill reads ~/.claude/plugins/config/claude-for-legal/ai-governance-legal/CLAUDE.md. The sections it looks for are Regulatory footprint, Use case registry, AI policy commitments, Vendor AI governance and Impact assessment house style.

If those sections are empty, the skill cannot produce a meaningful current-state comparison. Fill them in before you run it.

  • Regulatory footprint: the jurisdictions and laws that already apply to you
  • Use case registry: the AI systems you run and the conditions under which you run them
  • AI policy commitments: what you have published or agreed to by contract
  • Vendor AI governance: vendor positions already in place
  • Impact assessment house style: your existing assessment practices
~/.claude/plugins/config/claude-for-legal/ai-governance-legal/CLAUDE.md

How do I trigger the skill with a natural request?

You can invoke the skill with its slash command, /reg-gap-analysis, and add the regulation name or pasted text as the argument. The skill's description also lists natural phrases that should load it, such as 'new reg just dropped', 'does [regulation] affect us', 'gap analysis for EU AI Act' and 'compliance check against [AI law or guidance]'. You can also paste regulatory text or attach a document.

The source shows the plugin-qualified form of the command as well, which is useful when several plugins are installed.

  • Slash command: /reg-gap-analysis "EU AI Act high-risk provisions"
  • Plugin-qualified form: /ai-governance-legal:reg-gap-analysis "EU AI Act high-risk provisions"
  • Natural request: 'Does the Colorado AI law affect us?' with the regulatory text pasted or attached
  • Natural request: 'Gap analysis for EU AI Act' against your CLAUDE.md
/ai-governance-legal:reg-gap-analysis "EU AI Act high-risk provisions"

What needs to be in place to run it?

The skill needs Claude Code or a compatible agent that can read the local CLAUDE.md file. It also needs internet access or current regulatory sources, because the skill has the agent research the current regimes and verify that the law is still in force before it advises. The skill does not run scripts. It does use the network.

Treat the output as a first draft. The skill relies on the agent's own research of current law, which may be out of date or wrong. A qualified lawyer should review the findings before anyone acts on them.

  • Claude Code or a compatible agent with access to the local CLAUDE.md file
  • A populated CLAUDE.md with regulatory footprint, use case registry and policy sections
  • Internet access or current regulatory sources for the research step
  • Runs scripts: no. Uses network: yes.

Tips for getting useful output

Give the skill the specific regulation or the exact passage you care about. A narrow argument such as 'EU AI Act high-risk provisions' produces a more focused gap list than a broad request. Keep your use case registry current, since each gap is checked against it. Read the scope decision first; if the agent says the law does not apply, check the reason it gives against your footprint.

Use the accepted gaps section deliberately. It records risks you have chosen not to fix, along with the rationale and who accepted the risk. Keeping that record is more useful than leaving the gap unaddressed.

  • Name a specific regulation or pasted passage rather than a general topic
  • Keep the use case registry and vendor records current before each run
  • Check the scoping decision against your builder or deployer role
  • Use the dated markdown file as the working document for your legal team

What people use it for

  • A compliance team checks whether a new state AI law applies to its hiring tools and lists the gaps in its impact assessments.
  • An in-house lawyer gets a first-pass gap list for the EU AI Act's high-risk provisions to review and then verify.
  • A legal operations team reviews a new federal agency guidance against its vendor AI governance records.
  • A team pastes a newly published regulatory text and asks whether it affects the organization, then reviews the ranked remediation plan.

Frequently asked questions

Is the reg-gap-analysis skill free?

The source does not state pricing or licence terms beyond the licence listed for the repository, which is Apache-2.0. Check the licence file in the repository for the terms that apply to you.

How do I install reg-gap-analysis in Claude Code?

Download the ZIP from the directory page and unzip it into ~/.claude/skills/ for personal use, or into .claude/skills/ inside a project. The package contains SKILL.md, which the agent loads.

Can I install reg-gap-analysis without Claude Code?

The source says you can upload the ZIP in the Claude apps under Settings, then Capabilities, then Skills. It also says the skill needs Claude Code or a compatible agent that can read the local CLAUDE.md file.

What do I need before the skill works?

You need an agent with access to ~/.claude/plugins/config/claude-for-legal/ai-governance-legal/CLAUDE.md, a populated file with regulatory footprint, use case registry and policy sections, and internet access or current regulatory sources for the research step.

Does reg-gap-analysis give legal advice?

No. The output is a draft that needs review by a qualified lawyer. It relies on the agent's own research of current law, which may be out of date or wrong, so verify its findings yourself.

Does the skill run scripts or access the network?

The source says it runs no scripts and does use the network, mainly for the research step where the agent checks regulatory sources and their currency.

New agent skills, repos and AI tools — every week

The best new skills and open-source projects, the fastest-growing repos, and one free prompt. Five minutes to read. Unsubscribe anytime.

Our verdict

This skill suits in-house legal and compliance staff who already keep a populated CLAUDE.md with a use case registry and policy records, and who want a structured first-pass gap list on a new AI regulation. It is a poor fit for anyone who needs a definitive answer on compliance, or for organizations without a governance file, since the current-state comparison depends on it. Pick a qualified lawyer's review or a dedicated compliance service when the answer carries legal exposure.

Download the skill