policyengine-api-access

policyengine-api-access is a skill for Claude Code from PolicyEngine/policyengine-claude. It costs 220 tokens per session (6,815 once invoked), scanned A, original, MIT.

A set of rules for safely calling the PolicyEngine Public API, a web service used to access PolicyEngine data and calculations, from servers and web applications.

In plain words
What is it for?
Use it when building or reviewing dashboards, backends, serverless functions, tools, or CI jobs that access api.policyengine.org.
Why use it?
It prevents browser code from exposing server credentials and explains when requests must go through a server instead of directly from a web page.

Skill for Claude Code

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

Part of the api-development plugin — 10 skills shipped together , and of dashboard-builder, app-development, analysis-tools, complete

Good fit Use it when building or reviewing dashboards, backends, serverless functions, tools, or CI jobs that access api.policyengine.org.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/policyengine/policyengine-claude/policyengine-api-access
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-api-access
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 10 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-api-access

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/policyengine/policyengine-claude/policyengine-api-access"><img src="https://agentmods.dev/badge/skills/policyengine/policyengine-claude/policyengine-api-access.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 220 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 6,815 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
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.00220 $0.06815
Opus 5.5 $0.00088 $0.02726
Sonnet 5.5 $0.00044 $0.01363
Haiku 4.5 $0.00022 $0.00681

Measured 18d ago against content hash bdc1947a999b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

policyengine-api-access scanned grade A with 1 finding 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 18d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (templates/public_api_token.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

response = requests.post(HOUSEHOLD_CALCULATION, json=body, timeout=900)
skills/policyengine-api-access/SKILL.md · 403 lines

How it starts

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

Reaching the Public API from dashboards and servers

The Public API (PolicyEngine/policyengine-api, https://api.policyengine.org) is becoming callable only by PolicyEngine's own servers. Once its credential requirement is switched on, it answers every request without a server credential with 401, except GET/HEAD /health, GET /v2/openapi.json and CORS preflights. Anything in browser code is public, so a page cannot hold that credential. Pages go through a server that does.

The rules

  1. Browser code never calls the Public API: not api.policyengine.org, and not its Cloud Run addresses (policyengine-api-….a.run.app, policyengine-api-staging-….a.run.app, or a tagged revision's …---policyengine-api-….a.run.app). Browser code is everything that runs in the page: components, hooks, client modules, static exports and anything a bundler puts in the page.
  2. No Public API credential or address goes in a NEXT_PUBLIC_* or VITE_* variable. Next.js and Vite copy those values into the page's JavaScript. That covers the Auth0 client ID and secret, tokens, and the Public API's URL.
  3. One Auth0 client per calling server, never shared between callers or copied into another repository. The client ID is how the Public API's records identify the caller.

Which route to use

Where the code runs How it reaches the Public API
A dashboard page (browser) www.policyengine.org's dashboard API, through @policyengine/api-client
A dashboard's precompute script (presets, fixed grids) The same place as the page's live calculations, so both use one model release: on Pattern B, the dashboard API, with plain HTTPS requests and no credential, within the budget below ("From a dashboard's precompute script"); on Pattern C, the backend's pinned policyengine release in its own process. A precomputed-only dashboard uses the dashboard API, or the pinned package when policyengine-tools' model-version check allows it
A dashboard's own backend (Modal, Cloud Run, a Vercel function) Runs policyengine in its own process and doesn't call the Public API (policyengine-tools, Pattern C). Only a backend that already has a client sends its token in Authorization: Bearer
Any other CI job or script Its own Auth0 client, one token per job run
Python analysis or a notebook The policyengine package (policyengine skill), not REST

Read the full file on GitHub · 403 lines

Files

What ships with it

1 file 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. 18d ago First seen · 403 lines · 220 tokens per session scan A bdc1947a999b

Subscribe to this mod's changes

policyengine-api-access is a skill published in the GitHub repository PolicyEngine/policyengine-claude (31 stars, last pushed yesterday), licensed MIT. It adds 220 tokens to every session and 6,815 once invoked, about $0.0009 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-14.

Related

policyengine-api-access compared with skills from other repositories

policyengine-api-access next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
policyengine-api-accessPolicyEngine/policyengine-claudeSkill31yesterdayMITA220Claude Code
mem0-oss-to-platformmem0ai/mem0Skill70k5d agoApache-2.0A217Claude Code, Codex
tao-run-inference-serviceNVIDIA/skillsSkill4.3ktodayApache-2.0A92Claude Code
azure-mgmt-botservice-dotnetmicrosoft/skillsSkill3.3kyesterdayMITA78Claude Code
fastapi-router-pymicrosoft/skillsSkill3.3kyesterdayMITA46Claude Code
dev-runtimelangwatch/langwatchSkill5.1ktodayApache-2.0A172Claude Code
api-designericrisco/rsc-harnessSkill695yesterdayMITA105Claude Code, Codex