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 agentmods add skills/policyengine/policyengine-claude/policyengine-datanpx skills add PolicyEngine/policyengine-claude --skill policyengine-datagit clone --depth 1 https://github.com/PolicyEngine/policyengine-claudeWhat 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 | $0.00253 | $0.03516 |
| Opus 5 | $0.00127 | $0.01758 |
| Sonnet 5 | $0.00051 | $0.00703 |
| Haiku 4.5 | $0.00025 | $0.00352 |
Grade A, and why
policyengine-data 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 2d 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 — 223 lines — stays where its author put it; the contents beside it link to each section on GitHub.
PolicyEngine data
How the microdata behind PolicyEngine population runs is built, calibrated, versioned, and
named. For using datasets in a simulation, see the policyengine skill (this skill is about
where the data comes from). For diagnosing why one score disagrees with a benchmark, see
policyengine-calibration-diagnostics.
The current data stack is Microcosm (repo PolicyEngine/microcosm, local mirror
~/PolicyEngine/microcosm; read its README.md + DESIGN.md). It replaced the technique-named
packages of the previous stack (microdf / microimpute / microcalibrate / L0 /
policyengine-us-data), which shared no datatype and had their worst bugs at the seams between
flat DataFrames.
The Microcosm architecture
Microcosm is one kernel datatype — the Frame — with packages as operators on it. It is a
PEP 420 namespace (microcosm.*) shipped as independently-installable shard distributions, so an
analyst doing imputation never has to install torch and vice versa. Microcosm releases pin the
shards as a constellation.
| Package | Import | Role | Succeeds |
|---|---|---|---|
microcosm-frame |
microcosm.frame |
the kernel: Frame, typed weights, strata, links, weighted accounting, unit structure, the RulesEngine protocol |
microdf, microunit |
microcosm-fit |
microcosm.fit |
conditional models (weight-aware by construction) | ad-hoc imputation scripts |
microcosm-calibrate |
microcosm.calibrate |
targets → calibrated weights (APG / L0) | microcalibrate |
microcosm-build |
microcosm.build |
build plans, donor graphs, release gates, country build stages | one-off build drivers |
microcosm-data |
microcosm.data |
published population registry + lazy engine loaders | country-specific data packages |
Key design facts (from DESIGN.md) that change how you reason about the data:
- The
Frameis a weighted sampling frame of entity tables. Person + group-entity tables with explicitperson_<group>_idlinkage established once at assembly — no operator re-derives person↔unit attachment from a flat frame. It carries typed weights (design | importance | calibrated, one vector per weighted entity) with conservation invariants the kernel enforces (strata mass sums; no silent zeroing; no NaN/negative), and strata giving every record explicit provenance (cps_passthrough,synthetic_conditional,tail_verbatim, ...). Generation owns support (oversample where it is scarce); calibration owns representation. - The rules engine is an adapter, not a dependency.
microcosm.frame.rules.RulesEngineis a Protocol (variable_entity,variable_dtype,entity_schema,materialize,export_contract,write_dataset). Today's adapter ispolicyengine_us; the Axiomrulespec-usadapter is written against the same protocol so the swap is a new adapter, not a migration. microcosm-fitis weight-aware by construction — fits read the frame's typed weights; there is no unweighted default. Canonical model: regime-gated, chained quantile forests with weights materialized by weighted bootstrap.microcosm-calibrateis the only place calibrated weights are produced. Sparse target-matrix compilation + APG / L0 pruning is the core, not an option — "generate big then prune" is the intended design (300k → 3M → 30M candidate pools pruned to a compact frame). Its longitudinal rule: one weight per trajectory (multi-period targets stack as(target, period)constraint rows over one weight vector).- Process rules are as binding as the architecture: behavioral contract tests in CI from day one (weighted fits shift draws toward the weighted truth; calibration conserves declared mass; unit assignment partitions exactly); constellation versioning (consumers pin the constellation, not git SHAs); artifacts embed a certificate of the rules-engine + package versions that produced them; stage manifests are versioned artifacts with invariant checks.
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.
- 2d ago First seen · 223 lines · 253 tokens per session scan A cda6ca658cac
policyengine-data is a skill published in the GitHub repository PolicyEngine/policyengine-claude (31 stars, last pushed 7d ago), licensed MIT. It adds 253 tokens to every session and 3,516 once invoked, about $0.0013 per session on Opus 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.
Other skills, from other repositories
systematic-debugging
Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.
brainstorming
You MUST use this before any creative work - creating features, building components, adding functionality, or modifying behavior. Explores user intent, requirements and design before implementation.
chat-pet-sprite-creation
Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.
cpu-profile-analysis
Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…
babysit-pr
Babysit a GitHub pull request after creation by continuously polling review comments, CI checks/workflow runs, and mergeability state until the PR is merged/closed or user help is required. Diagnose failures, retry likely flaky failures up to 3 times, auto-fix/push branch-related issues when appropriate, and keep…
imagegen
Generate or edit raster images when the task benefits from AI-created bitmap visuals such as photos, illustrations, textures, sprites, mockups, or transparent-background cutouts. Use when Codex should create a brand-new image, transform an existing image, or derive visual variants from references, and the output…