policy-diff

Diff regulatory changes against an indexed policy library to identify required updates and compliance gaps.

Updated May 26, 2026
One-click install
npx skills add https://github.com/yachela/claude-for-legal-ar --skill policy-diff-yachela
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: policy-diff
Source: https://github.com/yachela/claude-for-legal-ar/tree/main/regulatory-legal/skills/policy-diff
Command: npx skills add https://github.com/yachela/claude-for-legal-ar --skill policy-diff-yachela

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It helps you determine which parts of your internal policy set must change after a regulation updates, by diffing the new regulatory requirements against your indexed policy library.

Core Features & Use Cases

  • Regulation requirement extraction: Breaks a regulatory change into discrete, attributable requirements (with due dates and source/citation tags).
  • Policy mapping and gap analysis: Matches extracted requirements to the closest indexed policies and produces per-requirement diffs showing whether each requirement is covered, partially covered, or missing.
  • Handoff-ready compliance outputs: Produces actionable summaries and flags scope limitations and rule-status uncertainty for downstream review and tracking.

Quick Start

Use policy-diff to diff a regulation against your indexed library by providing the regulation name or paste its text/summary as: policy-diff <reg name, or paste reg text/summary>.

Frequently Asked Questions about policy-diff

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I identify compliance gaps when a new regulation is published?

A regulatory diff compares new regulatory requirements against your indexed policy library to identify compliance gaps. It extracts discrete requirements with effective dates, maps each to the closest internal policy, and outputs per-requirement gap statuses showing what is covered, partially covered, or missing.

What is regulatory requirement extraction and how does it map to internal policies?

Regulatory requirement extraction breaks a regulatory change into discrete, attributable requirements with due dates and citation tags. Each extracted requirement is then mapped to the closest indexed policy to determine if your current documentation covers the new rule.

How do I check which internal policies need updates after a regulatory change?

You can check which policies need updates by diffing the regulation text against your indexed policy library. The gap analysis matches new regulatory requirements to your indexed policies and produces routing instructions flagging exactly which policy documents require revision.

Can I use a regulatory diff for policy gap analysis if I only have a regulation summary?

Yes, you can perform a policy gap analysis using either a regulation name or pasted regulation text and summaries. The diffing process extracts discrete requirements from the provided text and maps them to your indexed policy library to identify compliance gaps.

What limitations should I expect when diffing regulations against a policy library?

When diffing regulations against a policy library, expect scope limitations and rule-status uncertainty flagged for downstream review. The automated gap analysis produces actionable summaries but requires human tracking to validate compliance outputs and finalize policy updates.