policyengine-model-development

policyengine-model-development is a skill for Claude Code from PolicyEngine/policyengine-claude. It costs 215 tokens per session (1,520 once invoked), scanned A, original, MIT.

Engineering instructions for changing PolicyEngine country models, which encode tax and benefit laws as formulas, settings, and tests.

In plain words
What is it for?
Use them when adding or modifying tax or benefit variables, policy parameters, tests, or contributed reforms in the supported country repositories.
Why use it?
They explain how model variables, YAML parameters, and tests fit together so policy changes are represented and checked consistently.

Skill for Claude Code

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

Part of the api-development plugin — 9 skills shipped together , and of app-development, country-models, complete

Good fit Use them when adding or modifying tax or benefit variables, policy parameters, tests, or contributed reforms in the supported country repositories.

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

Made for: Claude Code.

Or install api-development, the plugin that ships this one along with the rest of its 9 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-model-development

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/policyengine/policyengine-claude/policyengine-model-development"><img src="https://agentmods.dev/badge/skills/policyengine/policyengine-claude/policyengine-model-development.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 215 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,520 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.00215 $0.01520
Opus 5.5 $0.00086 $0.00608
Sonnet 5.5 $0.00043 $0.00304
Haiku 4.5 $0.00021 $0.00152

Measured 2mo ago against content hash 76dd8ae92b5a, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

policyengine-model-development 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.

skills/policyengine-model-development/SKILL.md · 96 lines

How it starts

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

PolicyEngine model development

Engineering patterns for the country-model repos — policyengine-us, policyengine-uk, policyengine-canada. These packages encode enacted law (and proposed reforms) as variables (Python formulas) driven by parameters (YAML), validated by YAML tests, all running on the vectorized policyengine-core engine.

This skill is the how-to-write-it layer. To run calculations or score reforms, use the policyengine skill instead. Verified against policyengine-us 1.764.x / policyengine-core 3.30.x (2026-07).

For delegated implementation, test authoring or review, follow agent-loading.md: every worker loads this entrypoint in its own context, reads its task references and reports evidence of the load before work.

Mental model

  • Parameters are a YAML tree under parameters/gov/.... Each leaf is a dated value (or a bracket/breakdown table) with required metadata. Accessed in formulas as parameters(period).gov.agency.program.thing. Federal under gov/{agency}/, state under gov/states/{st}/, contributed reforms under gov/contrib/.
  • Variables live one-per-file under variables/gov/..., each a Variable subclass with value_type / entity / definition_period / metadata and either a formula or an adds/subtracts list (never both). Formulas run vectorized over the whole population.
  • Entities nest: Person → TaxUnit / SPMUnit / Family / MaritalUnit / Household (US); Person → BenUnit / Household (UK). Aggregation across entity levels is automatic via adds/add().
  • Tests are YAML files mirroring the variable path under tests/policy/baseline/..., asserting outputs for a described household at a period.

The absolute musts

  1. Never hardcode a numeric policy value in a formula. Every threshold, rate, and amount comes from a parameter (p.income_limit, not 2000). Bare 0/1/-1 and MONTHS_IN_YEAR are the only acceptable literals. See references/variables.md.
  2. Vectorize everything. No if/elif/else or and/or/not on entity arrays — use where / select / & / | / ~. Python if is allowed only on scalar parameters (if p.flat_applies:). See references/vectorization.md.
  3. adds/subtracts XOR formula — never both in one variable. A pure sum uses the adds attribute with no formula; anything else uses a formula (with add() inside). See references/periods-and-aggregation.md.
  4. Get the period right. From a MONTH formula, YEAR flow variables (income) use period (auto ÷12); YEAR stocks/counts/ages/booleans use period.this_year (no division). See references/periods-and-aggregation.md.
  5. uv run for everything. uv run pytest ..., uv run policyengine-core test .... Never bare pytest. Format with uv run ruff (line length 88, the default — not 79). There is no black in this toolchain.
  6. Changelog = a towncrier fragment, never an edit to CHANGELOG.md. Write changelog.d/{branch-name}.{added|fixed|changed}.md with one line.
  7. Branch from the PolicyEngine upstream repo, not a fork. Encoding work targets origin/main of PolicyEngine/policyengine-us (etc.).

Read the full file on GitHub · 96 lines

Files

What ships with it

8 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 2mo ago Changed · +4 lines 76dd8ae92b5a
  2. 2mo ago Changed · +13 tokens per session a6bb35a229f3
  3. 2mo ago First seen · 92 lines · 202 tokens per session scan A 849a68b935c4

Subscribe to this mod's changes

policyengine-model-development is a skill published in the GitHub repository PolicyEngine/policyengine-claude (31 stars, last pushed yesterday), licensed MIT. It adds 215 tokens to every session and 1,520 once invoked, about $0.0009 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-model-development compared with skills from other repositories

policyengine-model-development next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
policyengine-model-developmentPolicyEngine/policyengine-claudeSkill31yesterdayMITA215Claude Code
fto-triageanthropics/claude-for-legalSkill10.0kyesterdayApache-2.0A81Claude Code
legal-holdanthropics/claude-for-legalSkill10.0kyesterdayApache-2.0A68Claude Code
specification-writingwanshuiyin/Auto-claude-code-research-in-sleepSkill19kyesterdayMITA49Claude Code
regulatory-research-fallbackHKUDS/OpenSpaceSkill7.9k3d agoMITA20Claude Code, Codex
terms-of-servicegenspark-ai/genofficeSkill12ktodayApache-2.0A32Claude Code, Codex
x-scorecardx-cmd/x-cmdSkill4.7k9d agoApache-2.0A57Claude Code, Codex