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.
npx skills add uk-agents/uk-legal-plugins --skill policy-diffgit clone --depth 1 https://github.com/uk-agents/uk-legal-pluginsWrote 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.
[](https://agentmods.dev/skills/uk-agents/uk-legal-plugins/policy-diff)<a href="https://agentmods.dev/skills/uk-agents/uk-legal-plugins/policy-diff"><img src="https://agentmods.dev/badge/skills/uk-agents/uk-legal-plugins/policy-diff/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.
<a href="https://agentmods.dev/skills/uk-agents/uk-legal-plugins/policy-diff"><img src="https://agentmods.dev/badge/skills/uk-agents/uk-legal-plugins/policy-diff.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00074 | $0.02864 |
| Opus 5.5 | $0.00030 | $0.01146 |
| Sonnet 5.5 | $0.00015 | $0.00573 |
| Haiku 4.5 | $0.00007 | $0.00286 |
Grade A, and why
policy-diff 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 2mo 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.
How it starts
The opening of the file, as written. The whole thing — 224 lines — stays where its author put it; the contents beside it link to each section on GitHub.
/policy-diff
- Load
~/.claude/plugins/config/uk-legal-plugins/regulatory-legal-uk/CLAUDE.md→ policy library index. - Use the workflow below.
- Extract requirements from the UK regulatory change. Match to indexed policies.
- Output: per-requirement gap analysis, which policy needs updating.
Matter context
Matter context. Check ## Matter workspaces in the practice-level CLAUDE.md. If Enabled is ✗ (the default for in-house users), skip the rest of this paragraph — skills use practice-level context and the matter machinery is invisible. If enabled and there is no active matter, ask: "Which matter is this for? Run /regulatory-legal-uk:matter-workspace switch <slug> or say practice-level." Load the active matter's matter.md for matter-specific context and overrides. Write outputs to the matter folder at ~/.claude/plugins/config/uk-legal-plugins/regulatory-legal-uk/matters/<matter-slug>/. Never read another matter's files unless Cross-matter context is on.
Purpose
A UK rule changed. You have policies. This skill finds which policies the change touches and what the gap is between "what the rule now requires" and "what the policy says."
Load context
~/.claude/plugins/config/uk-legal-plugins/regulatory-legal-uk/CLAUDE.md → policy library index (policies, locations, owners).
Scope integrity
If the user asks you to exclude a policy section, requirement, or category from the diff:
- Do it — the user owns the scope.
- But flag it, loudly and permanently: "⚠️ SCOPE LIMITATION: Section [X] excluded at user request. This diff does not reflect the full policy. Gaps in the excluded area are NOT identified." Above the header, carried to every downstream artifact.
- Hand the flag to
gap-surfacer: "This diff was scope-limited. Do not represent it as a complete compliance picture." - Note what the exclusion means in the UK regulatory context: "Excluding vendor management from an FCA SYSC diff means the diff will show 'no policy addresses SYSC third-party outsourcing' — which is worse than showing the gap, given FCA oversight of outsourcing arrangements."
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.
- 2mo ago First seen · 224 lines · 74 tokens per session scan A 49cffc0ce8a5
policy-diff is a skill published in the GitHub repository uk-agents/uk-legal-plugins (20 stars, last pushed 13d ago), licensed Apache-2.0. It adds 74 tokens to every session and 2,864 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.
policy-diff compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| policy-diffuk-agents/uk-legal-plugins | Skill | 20 | 13d ago | Apache-2.0 | A | 74 | Claude Code |
| brand-safety-compliancecrevideo/crevideo-reach | Skill | 11 | 28d ago | MIT | A | 139 | Claude Code |
| c2pa-metadataindranilbanerjee/neels-plugins | Skill | 7 | 22d ago | MIT | A | 30 | Claude Code, Codex |
| timescaledb-hyperfunctionstimescale/pg-aiguide | Skill | 1.9k | yesterday | Apache-2.0 | A | 298 | Cursor |
| employment-compliancecbrock84/headcount | Skill | 2.6k | today | MIT | A | 87 | Claude Code |
| revenue-recognitioncbrock84/headcount | Skill | 2.6k | today | MIT | A | 69 | Claude Code |
| privacy-and-data-protectioncbrock84/headcount | Skill | 2.6k | today | MIT | A | 86 | Claude Code |