cost-regression-check

cost-regression-check is a skill for Claude Code from aws/agent-toolkit-for-aws. It costs 195 tokens per session (2,260 once invoked), scanned A, original, Apache-2.0.

A pull-request check that estimates how an infrastructure change will affect an AWS bill before it is applied. It compares the added cost with a fixed monthly spending ceiling.

In plain words
What is it for?
Use it with Terraform, AWS CDK, or AWS CloudFormation changes to report expected cost additions in CI and flag changes that cross a chosen threshold.
Why use it?
Infrastructure costs can appear on the bill after the change has already been made. This check puts the estimate and comparison on the pull request so the team can review the cost in time.

Skill for Claude Code

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

Part of the aws-startup-advisor plugin — 18 skills, 1 command, 7 agents shipped together

Good fit Use it with Terraform, AWS CDK, or AWS CloudFormation changes to report expected cost additions in CI and flag changes that cross a chosen threshold.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/aws/agent-toolkit-for-aws/cost-regression-check
About the project

Agent Toolkit for AWS is a collection of AWS-supported MCP servers, skills, plugins, commands, and hooks that help AI coding agents build, deploy, and manage applications on AWS. It is used by developers working with AWS services through agents such as Claude Code, Codex, Cursor, and Kiro. The catalogue entries are the toolkit's own agent extensions for AWS development and operations.

aws/agent-toolkit-for-aws · 3,609 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 aws/agent-toolkit-for-aws --skill cost-regression-check
Clone the repo
git clone --depth 1 https://github.com/aws/agent-toolkit-for-aws

Made for: Claude Code.

Or install aws-startup-advisor, the plugin that ships this one along with the rest of its 18 skills, 1 command, 7 agents.

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/aws/agent-toolkit-for-aws/cost-regression-check/github.svg)](https://agentmods.dev/skills/aws/agent-toolkit-for-aws/cost-regression-check)
Your own site
<a href="https://agentmods.dev/skills/aws/agent-toolkit-for-aws/cost-regression-check"><img src="https://agentmods.dev/badge/skills/aws/agent-toolkit-for-aws/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/aws/agent-toolkit-for-aws/cost-regression-check"><img src="https://agentmods.dev/badge/skills/aws/agent-toolkit-for-aws/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,260 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 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.00195 $0.02260
Opus 5.5 $0.00078 $0.00904
Sonnet 5.5 $0.00039 $0.00452
Haiku 4.5 $0.00019 $0.00226

Measured 12d ago against content hash 4f7433058e56, 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 12d 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

Copies of this mod

1 near-identical copy found in the catalogue:

plugins/aws-startup-advisor/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. 12d ago Changed 4f7433058e56
  2. 13d ago First seen · 88 lines · 195 tokens per session scan A c96eb551e161

Subscribe to this mod's changes

cost-regression-check is a skill published in the GitHub repository aws/agent-toolkit-for-aws (3,609 stars, last pushed today), licensed Apache-2.0. It adds 195 tokens to every session and 2,260 once invoked, about $0.0008 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-17.

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-checkaws/agent-toolkit-for-awsSkill3.6ktodayApache-2.0A195Claude Code
cost-regression-checkawslabs/startupsSkill3117d agoApache-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