cloudflare-cost-guard
Cloudflare Cost Guard
Audit a codebase for execution paths that can generate uncontrolled billable usage on Cloudflare, especially on Workers Paid, where the monthly subscription is a minimum charge, not a spending limit. The audit works from source code alone and needs no Cloudflare credentials.
This skill reports. It does not fix.
Ground rules (apply for the whole audit)
You are in read-only mode from the first step to the last. You must not:
- Edit, create or delete files in the audited repository (including formatting, lockfiles or "quick fixes").
- Run
wranglercommands that deploy, publish, migrate, tail, or start dev servers; run project scripts, tests, builds, or package installs. - Call production or preview endpoints, trigger cron/alarms/queues/workflows, or make any request that could incur Cloudflare or third-party charges.
- Open
.dev.vars,.env*, or other secret files beyond noting that they exist. Never print secret values. - Run Git commands that use the network (
fetch,pull,clone,ls-remote) or that change the checkout (checkout,switch,stash,reset).
You may read source, configuration, dependency manifests and installed dependency source, use search tools, and run local read-only Git commands (status, log, show, blame, diff, branch --show-current, branch --list). If network access is available, you may read public documentation at developers.cloudflare.com to confirm current pricing and limits; nothing else.
If dynamic testing would help, list it under "Recommended follow-up" in the report as something the user can choose to do later in a non-production account. Do not do it.