Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

cost-regression-check

БесплатноБез исполняемых скриптовНе проверен

This skill should be used when a company that pays its AWS bill from a fixed monthly ceiling, often funded by credits, asks what a pull request or other…

awsот aws★ 3 696 звёзд на 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.

Scope

Apply this skill when all of these hold:

  • The company pays its AWS bill from a fixed monthly ceiling of its own, whether cash or credits cover it today, and one person owns that ceiling and can state it.
  • Infrastructure is defined in Terraform, AWS CDK, or AWS CloudFormation, and changes reach production through pull requests, or the team is willing to make them do so.
  • The team can name a usage unit it already counts or can count from logs or metrics.

Do not apply it to spend that already happened (use Skill("aws-core:aws-billing-and-cost-management")), to resources the application creates at runtime outside the plan, to optimization advice on infrastructure code as it stands, or to choosing services without a floor. This skill detects that a change added a floor; it does not decide which services have one.

Workflow

  1. Read references/thresholds.md. Get the ceiling from the bill owner, derive the floor threshold and the per-unit threshold, and write the thresholds file with an owner.
  2. Read references/floor-and-unit.md. Choose the unit, class
Полный SKILL.md на GitHub

Установить cost-regression-check в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

references/ci-placement.mdreferences/estimators.mdreferences/floor-and-unit.mdreferences/thresholds.md

FAQ

Что делает скилл cost-regression-check?

This skill should be used when a company that pays its AWS bill from a fixed monthly ceiling, often funded by credits, asks what a pull request or other infrastructure-as-code change (Terraform, AWS CDK, or AWS CloudFormation) will add to that bill before apply, or wants that cost on every pull request, including through Infracost or another estimator in CI. It reports two numbers at list price before credits: the fixed monthly floor added at zero traffic, and the change in cost per unit of the team's own usage, against absolute thresholds derived from the ceiling and kept in the repository. It sets up a CI job and a repository-owned script so the author and the bill owner decide on each pull request. Not for spend that already happened (aws-core:aws-billing-and-cost-management), price lookups with no change under review, advice on infrastructure code as it stands, general release risk, or choosing services that avoid a floor.

Как установить скилл cost-regression-check?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл cost-regression-check запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить cost-regression-check с