VERIFIED ON 2.1.329FREE · SKILL

AI cost guardrails

Finds where your app could run up an AI bill: calls to an AI provider made from the browser with a key, AI features anyone can use with no sign-in check or rate limit, and loops, lists or retries with no cap. Gives a ranked list in plain language with the fix for each, plus the spending limits to set in the provider dashboard. Changes nothing.

VERSION 0.1.3MAINTAINER: Runs on AILICENCE: MITTESTED WITH 2.1.329
[PERMISSIONS IT NEEDS]
  • Read: reads files in your project
  • Grep: searches file contents
  • Glob: lists files by name

How to ask

Start Claude Code in your project and ask in your own words. This is the question we tested it with; the request doesn’t need to name the skill.

TERMINAL · TESTED ON 2.1.329
I'm worried about getting a huge AI bill once this is live. Can you check what could run up costs?

It only reads. It changes nothing in your project, and it ends with a list you can act on, worst problem first, followed by the spending limits to set with each AI provider your app uses.

How we tested it

A made-up note-taking app on Vite and Supabase Edge Functions that calls OpenAI and Anthropic, in two copies. The broken copy has four planted problems: the browser calls OpenAI directly with a key that ships in the page, a chat function anyone on the internet can call with no sign-in check and no rate limit, a summary function that retries forever when the provider returns an error, and a tagging function that makes one AI call per item in a list of any length. Correct look-alikes test for false alarms, among them a loop that only reads a streamed reply, a retry that stops after three attempts, and the browser calling the app’s own function with Supabase’s public key. The fixed copy closes all four.

Result on Claude Code 2.1.329, 20 November 2026: Both runs on the broken copy listed all four problems as numbered entries, with the headline count matching the list. No look-alike was reported. Both runs on the fixed copy reported 0 problems. No run gave a money figure, and every run listed the limits to set at OpenAI and Anthropic. In every run Claude Code picked the skill by itself from the plain question.

Why it was held, and what changed: on Claude Code 2.1.319 (8 November 2026) one of the two broken runs described the list with no cap, with the right fix, but under “Not checked” and outside the numbered problems, because the function already had a sign-in check and a rate limit. Version 0.1.2 says a loop, list or retry with no cap is a problem of its own even behind those, since a rate limit counts requests and not the AI calls one request makes. Run once more on the same broken copy, the old wording got it right this time too, so today’s runs don’t show that the new wording is what made the difference. Across our records the old wording missed once in five runs on a broken copy; the new one hasn’t missed in four.

One correction on the day: after the first four runs passed, we read Anthropic’s documentation again and found its spend limits had moved to a page of their own. Version 0.1.3 changes that one line. We ran all four again on 0.1.3, and it passed again; the file you download is the one those runs used.

What we didn’t test

  • The test apps are small and made up, every key in them is fake, and each was checked with one model (Sonnet) and one way of asking. Your app will be bigger and messier, so read what it finds before you act on it.
  • Every test app used Vite and Supabase Edge Functions with OpenAI and Anthropic. It wasn’t tested on Next.js or other API routes, on Gemini or other providers, or on agent loops, timers and AI libraries that run in the browser, although the skill looks for them. No test app had a call with no cap on the size of one request, a function with a sign-in check but no rate limit, or a retry that calls itself, so those checks were never put to the test.
  • It reads your code, not your live app or your provider accounts. It can’t see whether a spending limit is already set, what is deployed, or a rate limit that sits outside your project. It lists those under “Not checked”.
  • Where to set a spending limit: the Anthropic steps come from Anthropic’s documentation, read on 20 November 2026, not from the live Console. We could not open OpenAI’s or Google’s documentation from our test machine, so the skill tells you what to look for there and says it could not check the page names. In one of the four runs on the published file, the reply shortened the Anthropic steps so the workspace limit seemed to be on the Workspaces page; it is on the Spend limits page. Dashboards move; look for “limits”, “budget” or “usage”.
  • It never gives a price or an estimate of what a problem could cost. Provider prices aren’t in your code, and a guessed figure reads as a fact.
  • The fixes in its replies were read but not applied or run.
  • Four runs on the broken copy, two of them on the file you download, can’t show it never files a problem in the wrong place. Read “Not checked” as well as the numbered list.

Test status

STATUS
VERIFIED ON 2.1.329
TESTED WITH
2.1.329
LATEST CHANGE
20 NOV 2026

Changelog

[SKILL CHANGELOG]
  1. 0.1.3Anthropic's documentation now puts spend limits on a Spend limits page of their own, with workspace limits on the same page, and says a limit on the Default workspace might not count some of the usage there, where it used to say that workspace could not have one. The Anthropic line follows it. Retested again on Claude Code 2.1.329: both broken runs listed all four planted problems, both fixed runs reported 0 problems, and no run gave a money figure. Published as a download. 20 Nov.
  2. 0.1.2Held after the 8 November retest on Claude Code 2.1.319, where one of two broken runs described a planted problem (a list with no cap) under Not checked. The skill now says a loop, list or retry with no cap is a numbered problem even behind a sign-in check and a rate limit, and that Not checked is only for what the code cannot show. Retested on Claude Code 2.1.329 on rebuilt test apps: both broken runs listed all four planted problems as numbered entries and both fixed runs reported 0 problems. 20 Nov.
  3. 0.1.1No dollar figures or cost estimates, Anthropic's spend-limit paths corrected from its documentation and the OpenAI and Google paths marked as not checked. Retested on a rebuilt test app with Claude Code 2.1.292: all four planted faults found on both broken runs, no correct look-alike flagged, 0 problems on both fixed runs and no dollar figure. 7 Oct.
  4. 0.1.0First version. Tested on a Supabase Edge Functions test app: found all four planted faults, flagged none of the correct look-alikes, and reported 0 problems on the fixed copy. 6 Oct.