cost-regression-check

cost-regression-check is a skill for Claude Code from awslabs/startups. It costs 195 tokens per session (2,215 once invoked), scanned A, a copy of cost-regression-check, Apache-2.0.

A pull-request check that estimates how much an infrastructure change will add to an AWS bill before it is applied. It supports Terraform, AWS CDK, and AWS CloudFormation changes.

In plain words
What is it for?
Use it to price infrastructure changes, compare them with a monthly spending ceiling, and report the result on each pull request.
Why use it?
It helps teams catch cloud-cost increases before they spend the money, especially when working within a fixed monthly budget or expiring credits.

Skill for Claude Code ✓ vendor

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

Part of the aws-startups-solution-architecture plugin — 5 skills shipped together

Good fit Use it to price infrastructure changes, compare them with a monthly spending ceiling, and report the result on each pull request.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/awslabs/startups/cost-regression-check
About the project

AWS Startups is an official AWS repository containing plugins, skills, tools, and other resources for people building startup products on Amazon Web Services. Its add-ons support startup-focused architecture, migration, and development work on AWS.

awslabs/startups · 31 stars · on GitHub

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 awslabs/startups --skill cost-regression-check
Clone the repo
git clone --depth 1 https://github.com/awslabs/startups

Made for: Claude Code.

Or install aws-startups-solution-architecture, the plugin that ships this one along with the rest of its 5 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 cost-regression-check

README.md
[![agentmods](https://agentmods.dev/badge/skills/awslabs/startups/cost-regression-check/github.svg)](https://agentmods.dev/skills/awslabs/startups/cost-regression-check)
Your own site
<a href="https://agentmods.dev/skills/awslabs/startups/cost-regression-check"><img src="https://agentmods.dev/badge/skills/awslabs/startups/cost-regression-check/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 cost-regression-check

Your own site · 80×15
<a href="https://agentmods.dev/skills/awslabs/startups/cost-regression-check"><img src="https://agentmods.dev/badge/skills/awslabs/startups/cost-regression-check.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 195 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,215 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 86% copy Near-identical to another mod 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.00195 $0.02215
Opus 5.5 $0.00078 $0.00886
Sonnet 5.5 $0.00039 $0.00443
Haiku 4.5 $0.00019 $0.00221

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

Security

Grade A, and why

cost-regression-check 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 1mo 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.

Origin

This is a copy

86% identical to cost-regression-check — 6 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

solution-architecture/plugins/aws-startups-solution-architecture/skills/cost-regression-check/SKILL.md · 88 lines

How it starts

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

Cost Regression Check

Report the cost a change adds on the pull request that adds it, before apply, measured against the fixed monthly ceiling the company pays from its own money. That ceiling is what changes the answer. In a large bill, a new NAT gateway, load balancer, or database minimum is noise, prices are negotiated, and last month is a stable baseline. Against a small ceiling, often funded by credits that end, the same charge can take a visible share before the product has users, and the bill shows it a month later, after the money is spent. A team inside a large company has the same tooling but not that ceiling, so it keeps its company's rates, baselines, and cost process.

Set this up once, in a working session: add a CI job and a cost script to the repository, which owns and reviews both like any other code. On each pull request the job runs the cost script, which reads the resource changes, prices them, computes both numbers, and comments. No model runs per pull request, so the check costs nothing to attend to until a threshold is crossed.

Decisions, and why the startup answer differs

Decision Large-company default This skill Reason
Report the floor apart One blended monthly delta at an assumed volume Two numbers: floor added, and change in cost per unit A fixed charge that is noise in a large bill can be a material share of a small ceiling. A blended number hides which of the two moved.
Per-unit threshold from unit earnings Unit cost reviewed on a dashboard after the bill A per-unit threshold, set from what one unit earns where known, checked on each pull request The ceiling stays fixed while usage grows, so a change that pushes cost per unit above what a unit earns turns growth into a bill the ceiling cannot hold. That number can double while every price stays flat, for example after a Lambda memory increase at unchanged duration.
Absolute thresholds A percentage of a stable baseline Two amounts derived from the ceiling, kept in the repository A small or credit-funded bill has no stable base for a percentage. A large percentage on a near-zero bill is noise; a new fixed floor that takes a visible share of the ceiling is not.
List price Negotiated or commitment-adjusted rates Public on-demand price, labelled as such on every comment Credits hide the bill that arrives when they run out, and the post-credit bill is the one the ceiling has to survive.

Read the full file on GitHub · 88 lines

Files

What ships with it

4 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. 1mo ago Changed · -1 lines · -21 tokens per session 5d4f44e8ac15
  2. 1mo ago First seen · 89 lines · 216 tokens per session scan A aac32e754589

Subscribe to this mod's changes

cost-regression-check is a skill published in the GitHub repository awslabs/startups (31 stars, last pushed 17d ago), licensed Apache-2.0. It adds 195 tokens to every session and 2,215 once invoked, about $0.0008 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 86% identical to cost-regression-check, differing in 6 lines, and is treated as a copy.

Related

cost-regression-check compared with skills from other repositories

cost-regression-check next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
cost-regression-checkawslabs/startupsSkill3117d agoApache-2.0A195Claude Code
cost-regression-checkaws/agent-toolkit-for-awsSkill3.6ktodayApache-2.0A195Claude Code
aws-cost-cleanupsickn33/agentic-awesome-skillsSkill51ktodayMITA15Claude Code
mirrord-prev-envmetalbear-co/mirrordSkill5.4ktodayMITA122Claude Code
azure-costmicrosoft/skillsSkill3.3k3d agoMITA94Claude Code
atmos-hookscloudposse/atmosSkill1.4ktodayApache-2.0A50Claude Code
atmos-modernizationcloudposse/atmosSkill1.4ktodayApache-2.0A36Claude Code