policyengine-cloud-costs

policyengine-cloud-costs is a skill for Claude Code from PolicyEngine/policyengine-claude. It costs 246 tokens per session (5,209 once invoked), scanned C, original, MIT.

A set of rules for planning and controlling cloud running costs for a tool you deploy yourself. It covers backends, calculators, dashboards, data jobs, deployment settings, and launch preparation.

In plain words
What is it for?
Use it when building or deploying on Modal, Cloud Run, App Engine, or Supabase, and when changing deployment scripts or CI workflows.
Why use it?
It makes ongoing and maximum costs explicit before deployment, reducing the chance of an unexpected cloud bill.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: positional $N argument.

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

Good fit Use it when building or deploying on Modal, Cloud Run, App Engine, or Supabase, and when changing deployment scripts or CI workflows.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/policyengine/policyengine-claude/policyengine-cloud-costs
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-cloud-costs
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 9 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-cloud-costs

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/policyengine/policyengine-claude/policyengine-cloud-costs"><img src="https://agentmods.dev/badge/skills/policyengine/policyengine-claude/policyengine-cloud-costs.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 246 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,209 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 2 findings. 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.00246 $0.05209
Opus 5.5 $0.00098 $0.02084
Sonnet 5.5 $0.00049 $0.01042
Haiku 4.5 $0.00025 $0.00521

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

Security

Grade C, and why

policyengine-cloud-costs scanned grade C with 2 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.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/check_deploy_config.py, templates/warm_window.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.

Downloads and executes remote codehighSupply chain

curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.

curl -fsSL https://raw.githubusercontent.com/PolicyEngine/policyengine-skills/main/skills/policyengine-cloud-costs/scripts/check_deploy_config.py | python3 - .

Makes network callslowCapability

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

curl -fsSL https://raw.githubusercontent.com/PolicyEngine/policyengine-skills/main/skills/policyengine-cloud-costs/scripts/check_deploy_config.py | python3 - .
skills/policyengine-cloud-costs/SKILL.md · 353 lines

How it starts

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

Cloud costs for your own tool

For anyone building a standalone tool (a dashboard backend, a calculator API, a data job) and deploying it themselves. The defaults below cost nothing while nobody uses the tool. Each rule comes from a PolicyEngine bill; the incidents are listed at the end.

The defaults are not bans. Warm containers for a launch, a minimum instance for an endpoint that must answer quickly, or 20 GiB workers for a national run are all fine when you declare them where they are set (section 2). A declaration is how the reviewer, the checker and the next maintainer know the setting is deliberate and what it costs.

Load this when:

  • scaffolding a tool with a backend (the dashboard-builder agents and /new-tool link here);
  • a PR changes deploy scripts, Modal decorators, cloudbuild.yaml or GitHub workflows;
  • before the first deploy, before a launch or busy period, and when a tool is replaced or retired.

1. Write the cost plan before the first deploy

Copy templates/running-costs.md into the tool's README and answer five questions:

  1. What runs while nobody uses it? The default answer is "nothing".
  2. What is the most it can cost in an hour? Maximum containers or instances × the hourly rate (prices at the end). Where Modal CPU or memory is a (request, limit) pair, price the limit: Modal bills the higher of request and use, and a container can use up to its limit.
  3. What makes extra copies, and what ends each one? Traffic tags, versions, PR preview apps, test and drill deploys.
  4. Where do the secrets live? A secret store, never the repo.
  5. Who owns it, and when is it reviewed or retired?

2. Defaults, and how to declare something else

Setting Default Rule to declare
Modal min_containers, buffer_containers, keep_warm 0 or unset MO1
Cloud Run --min, --min-instances 0 CR3
Modal max_containers Set, from the expected peak MO2 (to leave it unset)
Cloud Run --max Set, from the observed peak CR2 (to leave it unset)
CPU and memory From a measured run; 4 or more cores, or 16 GiB or more, needs a reason RS1
A revision-level minimum together with a traffic tag per deploy Never CR1

Read the full file on GitHub · 353 lines

Files

What ships with it

6 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. 2d ago First seen · 353 lines · 246 tokens per session scan C 5a92713fe5c9

Subscribe to this mod's changes

policyengine-cloud-costs is a skill published in the GitHub repository PolicyEngine/policyengine-claude (31 stars, last pushed yesterday), licensed MIT. It adds 246 tokens to every session and 5,209 once invoked, about $0.0010 per session on Opus 5.5. A static security scan graded it C with 2 findings (downloads and executes remote code, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-07.

Related

policyengine-cloud-costs compared with skills from other repositories

policyengine-cloud-costs next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
policyengine-cloud-costsPolicyEngine/policyengine-claudeSkill31yesterdayMITC246Claude Code
gke-compute-classesgoogle/skillsSkill24ktodayApache-2.0A83Claude Code, Codex
gke-workload-securitygoogle/skillsSkill24ktodayApache-2.0A171Claude Code, Codex
gke-reliabilitygoogle/skillsSkill24ktodayApache-2.0A85Claude Code, Codex
cloud-architectJeffallan/claude-skillsSkill12k10d agoMITA71Claude Code
nemo-automodel-launcher-configNVIDIA/skillsSkill3.9ktodayApache-2.0A30Claude Code
azure-mgmt-botservice-dotnetmicrosoft/skillsSkill3.2ktodayMITA78Claude Code