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 encode-policy-v2git 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/encode-policy-v2)<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.
<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>- 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.00075 | $0.00882 |
| Opus 5.5 | $0.00030 | $0.00353 |
| Sonnet 5.5 | $0.00015 | $0.00176 |
| Haiku 4.5 | $0.00007 | $0.00088 |
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.
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-reformunless 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-developmentfrom 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 MISMATCHinstead 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.
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.
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 · +17 lines 95b069f3da8a
- 2mo ago First seen · 53 lines · 75 tokens per session scan A 6bbec595ff85
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.
encode-policy-v2 compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| encode-policy-v2PolicyEngine/policyengine-claude | Skill | 31 | yesterday | MIT | A | 75 | 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 |