Best for
- Quarterly or annual cost review
- Finance flags rising spend
- Vendor contract renewal coming up
rampstackco/claude-skills/skills/cost-optimization/SKILL.md
Audit and reduce infrastructure and tooling costs without sacrificing reliability or velocity. Use this skill when reviewing monthly cloud or SaaS spend, finding unused resources, rightsizing infrastructure, negotiating vendor contracts, deciding what to consolidate, or planning for budget cuts. Triggers on cost optimization, cloud spend, SaaS spend, rightsizing, unused resources, FinOps, infrastructure audit, vendor consolidation, budget cut, cost review. Also triggers when finance flags rising
Decision brief
Audit cloud, SaaS, and infrastructure spend. Cut what's not earning its keep. Rightsize what's oversized. Negotiate what's negotiable. Without breaking what works.
Compatibility matrix
| Platform | Status | Evidence | What to check |
|---|---|---|---|
| Codex | Not declared | No explicit evidence | Portability before use |
| Claude Code | Not declared | No explicit evidence | Portability before use |
| Cursor | Not declared | No explicit evidence | Portability before use |
| Gemini CLI | Not declared | No explicit evidence | Portability before use |
Installation
The source command is displayed only when detected. A safe inspection prompt is always available so your agent can explain every action before execution.
npx skills add https://github.com/rampstackco/claude-skills --skill "skills/cost-optimization"Inspect the Agent Skill "cost-optimization" from https://github.com/rampstackco/claude-skills/blob/0479242522549dfdb389bb9b7807ad4d6016ffb7/skills/cost-optimization/SKILL.md at commit 0479242522549dfdb389bb9b7807ad4d6016ffb7. List every install step, command, network request, credential, file read/write, external action, and rollback step. Explain whether it fits my task. Do not install or execute anything until I approve.
Workflow
Get monthly costs by service, vendor, and (where possible) team or project.
Get monthly costs by service, vendor, and (where possible) team or project.
Organize spend into categories:
80/20 rule. Usually 20% of vendors account for 80% of spend.
For each major line item, walk the levers:
Permission review
No configured static risk pattern was detected
This is not proof of safety. Runtime behavior, indirect dependencies, and hidden external systems are outside the static scan.
Evidence record
| Signal | Value | Evidence type | Meaning |
|---|---|---|---|
| Quality score | 93/100 | Computed | Documentation, specificity, maintenance, and trust rules |
| Repository stars | 757 | Source | Repository attention, not individual Skill quality |
| Compatibility | 0 platforms | Source | Declared in the catalog source record |
| Usage guide | automated source guide | Editorial | Generated or reviewed according to the visible evidence level |
Pinned source
Audit cloud, SaaS, and infrastructure spend. Cut what's not earning its keep. Rightsize what's oversized. Negotiate what's negotiable. Without breaking what works.
incident-response)performance-optimization)vendor-evaluation)Every cost optimization opportunity falls into one of these levers.
Stop paying for things that aren't used.
This is usually the largest opportunity in the first audit. Often 10-30% of spend.
Pay for what you actually use, not what you provisioned for the worst case three years ago.
Rightsizing requires real usage data, not theoretical needs.
Use cheaper structures for the same workload.
The right structure depends on the access pattern. Mismatch costs money.
Pay less for the same thing.
Most enterprise vendors negotiate. Most SaaS vendors don't, except at higher tiers. Consumer-tier services usually don't.
Change the question.
Reframe is the longest-lead lever. Worth thinking about even if not actionable now.
Get monthly costs by service, vendor, and (where possible) team or project.
For cloud (AWS, GCP, Azure): the billing console and cost-explorer tools. For SaaS: each vendor's billing portal, plus an SaaS-management tool if available. For everything else: bank statements and accounting export.
12 months minimum. Trends matter as much as absolute numbers.
Organize spend into categories:
The categories vary by business. The point is: similar costs grouped, easy to compare.
80/20 rule. Usually 20% of vendors account for 80% of spend.
Focus the audit on the top 80%. The long tail can be cleaned up but rarely yields big savings per item.
For each major line item, walk the levers:
| Lever | Question |
|---|---|
| Eliminate | Is it used? Could we stop using it? |
| Rightsize | Are we paying for capacity we don't use? |
| Restructure | Is there a cheaper pricing model or service tier? |
| Negotiate | When was the last renewal? Did we negotiate? |
| Reframe | Is this even the right approach? |
Document the opportunity, the effort, the risk, and the savings estimate.
Plot opportunities on a 2x2:
Quadrants:
Also consider risk:
For each easy-win opportunity:
Easy wins typically include:
For higher-effort opportunities:
pm-spec-writing for the plan)Examples:
Optimization isn't one-time. Costs creep back up.
For vendor contracts up for renewal:
Pre-pandemic, many vendors auto-renewed at increases. Post-pandemic, many are hungry for retention. Ask.
Going forward:
Without policy, costs creep.
Cost-cutting that breaks something. Aggressive rightsizing without testing causes outages. The cost of an outage is usually larger than the savings.
Optimization that takes more time than it saves. A team spends a quarter saving $5K/year. Math doesn't work. Focus on opportunities where savings exceed effort.
Renewal autopilot. Annual renewals go through without review. Calendar them.
No tagging. Cloud spend grows; no one knows whose. Tag everything from day one.
Free tier overruns. "It's on the free tier." Then it's not, and bills surprise. Set alerts on free-tier services.
No environment differentiation. Production-grade staging "to match prod." Costs as much as prod. Often unnecessary.
Untouched legacy. "The old project still runs." Why? Often: nothing actually uses it. Audit and shut down.
Premium tiers for non-premium needs. Enterprise plan because someone wanted a feature that's been since added to lower tiers. Recheck.
Vendor lock-in justifying cost. "We can't switch." That's not a reason to overpay; it's a strategic problem to plan around.
Optimizing the small stuff while ignoring the big stuff. Saving $50/month on tools while $5K/month sits in oversized infrastructure. Top-down first.
Penny-wise, pound-foolish. Cutting a useful tool to save $20/month, then losing hours to manual work. Tools that pay for themselves shouldn't be cut.
No reinvestment. Every dollar saved goes to bottom line; nothing reinvested in upgrades or capacity. Saved costs and improved capability aren't either/or.
A cost optimization document includes:
This skill's output depends on data, measurements, or tool results it cannot generate on its own. When a required input, tool, or data source is unavailable or unverifiable, the sanctioned output is the deliverable with the gap stated: what was needed, what was actually obtained or verified, and which parts of the output are affected. Fabricating, estimating, or interpolating a required number to complete the deliverable is never sanctioned. A stated gap is a complete answer.
references/cloud-audit-checklist.md: A practical walkthrough for auditing a cloud account (compute, storage, database, network, monitoring) for waste and rightsizing opportunities.Frequently asked questions
Audit cloud, SaaS, and infrastructure spend. Cut what's not earning its keep. Rightsize what's oversized. Negotiate what's negotiable. Without breaking what works.
The source record exposes this install command: npx skills add https://github.com/rampstackco/claude-skills --skill "skills/cost-optimization". Inspect the command and pinned source before running it.
Alternatives
wshobson/agents
Optimize cloud costs across AWS, Azure, GCP, and OCI through resource rightsizing, tagging strategies, reserved instances, and spending analysis. Use when reducing cloud expenses, analyzing infrastructure costs, or implementing cost governance policies.
garrytan/gbrain
End-to-end discipline for turning any large data source (audio libraries, email takeouts, document corpora, chat exports, API dumps) into brain pages at scale. The lifecycle spine: SCHEMA → ACCESS → TRIAL → EVALUATE → IMPROVE → CODIFY → TEST → SKILLIFY → BULK → MONITOR. State is tracked in a durable JSON manifest (see MANIFEST-PATTERN.md) so any crash, session boundary, or subagent fan-out resumes from ground truth instead of memory.
alirezarezvani/claude-skills
App Store Optimization (ASO) toolkit for researching keywords, analyzing competitor rankings, generating metadata suggestions, and improving app visibility on Apple App Store and Google Play Store. Use when the user asks about ASO, app store rankings, app metadata, app titles and descriptions, app store listings, app visibility, or mobile app marketing on iOS or Android. Supports keyword research and scoring, competitor keyword analysis, metadata optimization, A/B test planning, launch checklist
wanshuiyin/Auto-claude-code-research-in-sleep
Use it for operations and research tasks; the detail page covers purpose, installation, and practical steps.