policyengine-uk

policyengine-uk is a skill for Claude Code from PolicyEngine/policyengine-claude. It costs 242 tokens per session (4,385 once invoked), scanned A, original, MIT.

A reference guide for writing UK household tax and benefit calculations with PolicyEngine, a Python tool for modelling how policy affects people and households.

In plain words
What is it for?
Use it to model UK income tax, National Insurance, Universal Credit, poverty, and policy reforms, including differences between England, Scotland, and Wales.
Why use it?
It helps avoid mixing up UK-specific rules, household groupings, and tax or benefit concepts when building calculations.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the essential plugin — 5 skills shipped together , and of data-science, api-development, dashboard-builder, app-development, country-models, analysis-tools, complete

Good fit Use it to model UK income tax, National Insurance, Universal Credit, poverty, and policy reforms, including differences between England, Scotland, and Wales.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/policyengine/policyengine-claude/policyengine-uk
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 PolicyEngine/policyengine-claude --skill policyengine-uk
Clone the repo
git clone --depth 1 https://github.com/PolicyEngine/policyengine-claude

Made for: Claude Code.

Or install essential, the plugin that ships this one along with the rest of its 5 skills.

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 policyengine-uk

README.md
[![agentmods](https://agentmods.dev/badge/skills/policyengine/policyengine-claude/policyengine-uk/github.svg)](https://agentmods.dev/skills/policyengine/policyengine-claude/policyengine-uk)
Your own site
<a href="https://agentmods.dev/skills/policyengine/policyengine-claude/policyengine-uk"><img src="https://agentmods.dev/badge/skills/policyengine/policyengine-claude/policyengine-uk/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 policyengine-uk

Your own site · 80×15
<a href="https://agentmods.dev/skills/policyengine/policyengine-claude/policyengine-uk"><img src="https://agentmods.dev/badge/skills/policyengine/policyengine-claude/policyengine-uk.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 242 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,385 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found 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.00242 $0.04385
Opus 5.5 $0.00097 $0.01754
Sonnet 5.5 $0.00048 $0.00877
Haiku 4.5 $0.00024 $0.00439

Measured 20d ago against content hash 9412b38c6878, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

policyengine-uk 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 20d 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.

skills/policyengine-uk/SKILL.md · 357 lines

How it starts

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

PolicyEngine UK

UK-specific facts for the PolicyEngine Python stack. Read the policyengine skill first for the canonical import policyengine as pe interface, the population flow (ensure_datasets / Simulation / economic_impact_analysis), the MicroSeries discipline, and dataset handling — this skill only carries what is different about the UK.

Verified against policyengine 4.21.0 + policyengine-uk 2.89.2 + policyengine-core 3.30.0 (2026-07). UK examples are not in the [us]-only CI verify set, so they carry no fast <!-- verify --> marker; each was run manually in a policyengine[uk] environment. Population examples may carry <!-- verify: slow -->.

Setup

The UK model is an extra — bare policyengine installs no country model:

uv pip install "policyengine[uk]"   # UK model + certified UK data bundle metadata

Household calculations need no data download. Population runs need the UK dataset, which is a private Hugging Face repo — see "Population data" below.

Entity model — and the benunit trap

UK entities are person → benunit → household. There is no tax_unit and no spm_unit / marital_unit / family — those are US entities. The single most common UK mistake is reaching for result.tax_unit out of US habit; on a UK result it raises AttributeError (verified: a UK result has person, benunit, household and no tax_unit).

Concept US entity UK entity
Means-tested assessment unit tax_unit (+ spm_unit) benunit (benefit unit)
Statistical unit for poverty spm_unit / household household
Individual person person

A benefit unit is a single adult or a couple plus their dependent children — the DWP assessment unit for means-tested benefits (Universal Credit, Pension Credit, etc.). One household can contain several benunits (e.g. adult children living with parents). Read means-tested benefits at the benunit level, income tax and NI at the person level, and net income and poverty at the household level.

Read the full file on GitHub · 357 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. 20d ago Changed · +52 lines 9412b38c6878
  2. 25d ago Changed · +1 lines · +1 tokens per session 6228cb27671f
  3. 3mo ago First seen · 304 lines · 241 tokens per session scan A cfeb7c4b7d29

Subscribe to this mod's changes

policyengine-uk is a skill published in the GitHub repository PolicyEngine/policyengine-claude (31 stars, last pushed yesterday), licensed MIT. It adds 242 tokens to every session and 4,385 once invoked, about $0.0010 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-08-30.

Related

policyengine-uk compared with skills from other repositories

policyengine-uk next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
policyengine-ukPolicyEngine/policyengine-claudeSkill31yesterdayMITA242Claude Code
sector-rotationHKUDS/Vibe-TradingSkill39kyesterdayMITA39Claude Code, Codex
strategy-pivot-designertradermonty/claude-trading-skillsSkill9.4kyesterdayMITA28Claude Code, Codex
twitter-readerhimself65/finance-skillsSkill3.6k28d agoMITA110Claude Code
energy-procurementhashgraph-online/awesome-codex-pluginsSkill1.6kyesterdayApache-2.0A93Claude Code, Codex
airdrop-hunting-guidenirholas/three.wsSkill289todayApache-2.0A54Claude Code, Codex
multi-expert-analyzerdigoal/blogSkill8.6ktodayGPL-2.0A292Codex