encode-policy-v2

encode-policy-v2 is a skill for Claude Code from PolicyEngine/policyengine-claude. It costs 75 tokens per session (882 once invoked), scanned A, original, MIT.

Instructions for adding a new state benefit program or structural program component to PolicyEngine-US, based on official rules. They define how to route the work, collect and render source PDFs, get approval, implement changes, test them, and complete reviews.

In plain words
What is it for?
Use them when implementing a new US state benefit program or structural component. They also cover existing-program routing, research-only work, resuming a workflow, validation, pull-request review, and final reporting.
Why use it?
They provide required checkpoints for work that can affect benefit calculations. This helps prevent skipped research, unapproved scope, incomplete PDF inspection, failing tests, or unsafe code pushes.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions subagents; mentions Claude Code; mentions Codex.

Part of the country-models plugin — 11 skills shipped together , and of complete

Good fit Use them when implementing a new US state benefit program or structural component. They also cover existing-program routing, research-only work, resuming a workflow, validation, pull-request review, and final reporting.

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

Made for: Claude Code.

Or install country-models, the plugin that ships this one along with the rest of its 11 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 encode-policy-v2

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/policyengine/policyengine-claude/encode-policy-v2"><img src="https://agentmods.dev/badge/skills/policyengine/policyengine-claude/encode-policy-v2.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 75 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 882 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.00075 $0.00882
Opus 5.5 $0.00030 $0.00353
Sonnet 5.5 $0.00015 $0.00176
Haiku 4.5 $0.00007 $0.00088

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

Security

Grade A, and why

encode-policy-v2 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/encode-policy-v2/SKILL.md · 70 lines

What it actually says

encode-policy-v2

Thin launcher. The canonical workflow—routing, arguments, phases, roles, checkpoints, artifact contracts, retry budgets, and completion gates—lives in references/workflow.md. Read it completely before acting and follow it exactly; do not redefine or compress its behavior here.

Treat the text after $encode-policy-v2 as raw workflow arguments:

$encode-policy-v2 STATE PROGRAM [--skip-review] [--research-only] [--600dpi]
  [--resume] [--from-phase N] [--full-validation] [--local]
  [--sources MANIFEST] [--source-budget MINUTES]

Mandatory gates that no surface may skip:

  • Load model-development in each model worker's own context and verify its load evidence under the canonical loading contract before accepting work; missing skills block it.
  • Route purely parametric changes to encode-reform unless the user chooses to continue.
  • Make no GitHub write before the user-approved scope decision exists.
  • Read all relevant rules and visually inspect tables, scans or ambiguous PDF evidence; share validated originals and extracts with the independent review.
  • Do not push through a red structural or quick-audit gate, or silently push failing tests.
  • Workers never delegate; brief both owners from one shared contract block, and treat the coordinator's single bounded test invocation as the run of record.
  • In local mode, make no GitHub writes or pushes; preserve the implementation worktree.
  • Keep new PRs draft and complete follow-up review after any review-fix round.
  • Maximum two reviews: a second, incremental review follows repairs to confirmed criticals from the first. Stop after round 2 with any remaining blockers reported.
  • Do not finish before the Phase 7 summary and canonical completion contract are satisfied.

Surface adapters:

  • Claude Code: also read references/claude-launcher.md, which maps canonical roles and abstract operations to Claude Code mechanics.
  • Codex: use the delegation mapping below.

Codex delegation mapping, when subagent use is available and authorized:

  • The coordinator handles research, requirements, coverage/validation, Git and reporting; it may read code and full evidence directly. No summary-only read restriction.
  • Use persistent workers for the two substantive roles: implementer (parameters and variables together) and test-author. Pass exact owned paths, concrete worktree/run values, approved scope, artifact contracts and the needed skill references.
  • Each Codex worker resolves policyengine-model-development from its own available skills catalog and reads that entrypoint using its catalog-specified access mechanism, then its task references. Include the canonical loading contract in the prompt; a repository path alone does not demonstrate runtime skill availability. Do not assume the parent session's skill load supplies the worker's context.
  • Test-source analysis can overlap implementation; final tests use the published variable contract. Reuse owners for repairs. Workers never stage, commit, push or independently sync/format the shared environment. They do their own work without helper or nested agents, run at most one bounded self-check of their owned tests, and report a CONTRACT MISMATCH instead of relocating cases; the coordinator runs the tests of record.
  • Run review-program in a fresh review coordinator context with its canonical local or published arguments, raw source manifest, captured head and scope. Require that coordinator's own model-development load. Leave capacity for its reviewers and consume its completed decision directly for repair routing, without a second review by the encoder.
  • Use only supported runtime capabilities. When delegation is unavailable, perform the implementation roles directly while preserving independent review context and gates.
Files

What ships with it

2 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 · +17 lines 95b069f3da8a
  2. 2mo ago First seen · 53 lines · 75 tokens per session scan A 6bbec595ff85

Subscribe to this mod's changes

encode-policy-v2 is a skill published in the GitHub repository PolicyEngine/policyengine-claude (31 stars, last pushed yesterday), licensed MIT. It adds 75 tokens to every session and 882 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-08-30.

Related

encode-policy-v2 compared with skills from other repositories

encode-policy-v2 next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
encode-policy-v2PolicyEngine/policyengine-claudeSkill31yesterdayMITA75Claude 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