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 PolicyEngine/policyengine-claude --skill policyengine-model-developmentgit clone --depth 1 https://github.com/PolicyEngine/policyengine-claudeWrote 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/policyengine/policyengine-claude/policyengine-model-development)<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.
<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>- NVIDIA SkillSpector pass
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.00215 | $0.01520 |
| Opus 5.5 | $0.00086 | $0.00608 |
| Sonnet 5.5 | $0.00043 | $0.00304 |
| Haiku 4.5 | $0.00021 | $0.00152 |
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.
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 asparameters(period).gov.agency.program.thing. Federal undergov/{agency}/, state undergov/states/{st}/, contributed reforms undergov/contrib/. - Variables live one-per-file under
variables/gov/..., each aVariablesubclass withvalue_type/entity/definition_period/ metadata and either aformulaor anadds/subtractslist (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 viaadds/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
- Never hardcode a numeric policy value in a formula. Every threshold, rate, and amount
comes from a parameter (
p.income_limit, not2000). Bare0/1/-1andMONTHS_IN_YEARare the only acceptable literals. See references/variables.md. - Vectorize everything. No
if/elif/elseorand/or/noton entity arrays — usewhere/select/&/|/~. Pythonifis allowed only on scalar parameters (if p.flat_applies:). See references/vectorization.md. adds/subtractsXORformula— never both in one variable. A pure sum uses theaddsattribute with no formula; anything else uses a formula (withadd()inside). See references/periods-and-aggregation.md.- Get the period right. From a MONTH formula, YEAR flow variables (income) use
period(auto ÷12); YEAR stocks/counts/ages/booleans useperiod.this_year(no division). See references/periods-and-aggregation.md. uv runfor everything.uv run pytest ...,uv run policyengine-core test .... Never barepytest. Format withuv run ruff(line length 88, the default — not 79). There is noblackin this toolchain.- Changelog = a towncrier fragment, never an edit to
CHANGELOG.md. Writechangelog.d/{branch-name}.{added|fixed|changed}.mdwith one line. - Branch from the PolicyEngine upstream repo, not a fork. Encoding work targets
origin/mainofPolicyEngine/policyengine-us(etc.).
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.
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 Changed · +4 lines 76dd8ae92b5a
- 2mo ago Changed · +13 tokens per session a6bb35a229f3
- 2mo ago First seen · 92 lines · 202 tokens per session scan A 849a68b935c4
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.
policyengine-model-development compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| policyengine-model-developmentPolicyEngine/policyengine-claude | Skill | 31 | yesterday | MIT | A | 215 | Claude Code |
| fto-triageanthropics/claude-for-legal | Skill | 10.0k | yesterday | Apache-2.0 | A | 81 | Claude Code |
| legal-holdanthropics/claude-for-legal | Skill | 10.0k | yesterday | Apache-2.0 | A | 68 | Claude Code |
| specification-writingwanshuiyin/Auto-claude-code-research-in-sleep | Skill | 19k | yesterday | MIT | A | 49 | Claude Code |
| regulatory-research-fallbackHKUDS/OpenSpace | Skill | 7.9k | 3d ago | MIT | A | 20 | Claude Code, Codex |
| terms-of-servicegenspark-ai/genoffice | Skill | 12k | today | Apache-2.0 | A | 32 | Claude Code, Codex |
| x-scorecardx-cmd/x-cmd | Skill | 4.7k | 9d ago | Apache-2.0 | A | 57 | Claude Code, Codex |