cost-optimization

cost-optimization is a skill for Claude Code from rampstackco/claude-skills. It costs 101 tokens per session (2,658 once invoked), scanned A, original, MIT.

A framework for reviewing and reducing cloud, infrastructure, and software subscription costs while considering reliability and delivery speed.

In plain words
What is it for?
Use it for regular cost reviews, budget cuts, vendor renewals, infrastructure rightsizing, or evaluating consolidation during a provider migration.
Why use it?
It helps identify unused resources, oversized services, duplicate tools, and contract opportunities before spending grows further.

Skill for Claude Code

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

Part of the rampstack-skills plugin — 107 skills shipped together

Good fit Use it for regular cost reviews, budget cuts, vendor renewals, infrastructure rightsizing, or evaluating consolidation during a provider migration.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/rampstackco/claude-skills/cost-optimization
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 rampstackco/claude-skills --skill cost-optimization
Clone the repo
git clone --depth 1 https://github.com/rampstackco/claude-skills

Made for: Claude Code.

Or install rampstack-skills, the plugin that ships this one along with the rest of its 107 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-optimization

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/rampstackco/claude-skills/cost-optimization"><img src="https://agentmods.dev/badge/skills/rampstackco/claude-skills/cost-optimization.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 101 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,658 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00101 $0.02658
Opus 5.5 $0.00040 $0.01063
Sonnet 5.5 $0.00020 $0.00532
Haiku 4.5 $0.00010 $0.00266

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

Security

Grade A, and why

cost-optimization 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.

skills/cost-optimization/SKILL.md · 346 lines

How it starts

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

Cost Optimization

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.


When to use

  • Quarterly or annual cost review
  • Finance flags rising spend
  • Vendor contract renewal coming up
  • Budget cut required
  • New leadership wants the numbers
  • Migrating between providers (cost is part of the case)
  • Audit before scaling significantly (catch waste before it scales)

When NOT to use

  • Active incident response (use incident-response)
  • Performance issues that happen to involve infrastructure (use performance-optimization)
  • Vendor evaluation for a new purchase (use vendor-evaluation)
  • Personnel or org costs (out of scope for this skill)

Required inputs

  • Current cost (monthly, ideally for the last 12 months)
  • Cost broken down by service or vendor
  • Inventory of cloud resources (instances, databases, storage, etc.)
  • Inventory of SaaS subscriptions
  • Owners per cost line (who decided to spend this, who uses it)
  • Constraints (compliance, performance, contract terms)

The framework: 5 levers

Every cost optimization opportunity falls into one of these levers.

Lever 1: Eliminate

Stop paying for things that aren't used.

  • Idle resources (instances, databases, environments running but unused)
  • Subscriptions where no one logs in
  • Duplicate tools (multiple tools doing the same job)
  • Old projects still incurring cost
  • Test environments that should have been torn down
  • Forgotten domains, backups, snapshots, logs

This is usually the largest opportunity in the first audit. Often 10-30% of spend.

Lever 2: Rightsize

Pay for what you actually use, not what you provisioned for the worst case three years ago.

  • Oversized instances (CPU and memory utilization low)
  • Over-provisioned databases (storage and throughput far above usage)
  • Over-purchased SaaS seats
  • Premium plans where standard would suffice
  • High-availability setups for non-critical systems

Read the full file on GitHub · 346 lines

Files

What ships with it

2 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 First seen · 346 lines · 101 tokens per session scan A 5589fd8d9c40

Subscribe to this mod's changes

cost-optimization is a skill published in the GitHub repository rampstackco/claude-skills (976 stars, last pushed yesterday), licensed MIT. It adds 101 tokens to every session and 2,658 once invoked, about $0.0004 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-08-30.

Related

Other skills, from other repositories

optimizing-costs

Optimize cloud infrastructure costs through FinOps practices, commitment discounts, right-sizing, and automated cost management. Use when reducing cloud spend, implementing budget controls, or establishing cost visibility across AWS, Azure, GCP, and Kubernetes environments.

ancoleman/ai-design-components · 51 tokens

cloud-finops

Expert FinOps guidance covering cloud, AI, SaaS, and adjacent technology spend. Includes AI cost management, GenAI capacity planning, AI-powered FinOps automation, Anthropic billing, AWS (EC2, Bedrock, Savings Plans, CUR, commitment strategy), Azure (reservations, Savings Plans, AHB, OpenAI PTUs, portfolio liquidity)…

viktorbezdek/skillstack · 275 tokens

agb-bei-kreditvertraegen-verbraucherdarlehen

Für AGB bei Kreditverträgen Verbraucherdarlehen: ordnet Norm, Beweislast und Gegenargument; Ergebnis: Prüfprodukt mit Risiko und nächstem Schritt.

Klotzkette/claude-fuer-deutsches-recht · 49 tokens

agb-in-kapitalanlagen-effektenhandel

Für AGB in Kapitalanlagen Effektenhandel: ordnet Norm, Beweislast und Gegenargument; Ergebnis: Prüfprodukt mit Risiko und nächstem Schritt.

Klotzkette/claude-fuer-deutsches-recht · 41 tokens

mahngebuehren-und-zinsanpassung-agb

Für Mahngebühren und Zinsanpassung AGB: ordnet Norm, Beweislast und Gegenargument; Ergebnis: Berechnungstabelle mit Annahmen und Kontrollfragen.

Klotzkette/claude-fuer-deutsches-recht · 53 tokens

sec-filing-puller

Pulls financial statement numbers for US public companies straight from SEC EDGAR's free official XBRL APIs (companyfacts, companyconcept, frames, submissions) into a cited table. Every value carries its accession number, form, fiscal period, filed date, XBRL tag and a link to the filing, and the tool handles…

OneWave-AI/claude-skills · 198 tokens