cost-optimization

cost-optimization is a skill for Claude Code from microsoft/azure-skills. It costs 98 tokens per session (414 once invoked), scanned A, a copy of cost-optimization, MIT.

An Azure cost-optimization skill for finding waste, right-sizing resources, and reviewing reservations or Savings Plans.

In plain words
What is it for?
Use it to inspect idle or oversized resources, orphaned charges, reservation use, Savings Plan coverage, and possible savings.
Why use it?
It helps identify ways to reduce cloud spending without directly deleting, resizing, buying, or deploying anything.

Skill for Claude Code ✓ vendor

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

Part of the azure-cost plugin — 4 skills, 1 MCP server shipped together

Good fit Use it to inspect idle or oversized resources, orphaned charges, reservation use, Savings Plan coverage, and possible savings.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/microsoft/azure-skills/cost-optimization
About the project

Azure Skills Plugin is an agent plugin that packages Azure-specific guidance with MCP server configurations for carrying out Azure work. Coding agents use it to plan, deploy, troubleshoot, monitor, govern, and optimize Azure applications and services. The catalogue entries are the plugin's skills, instructions, and execution integrations.

microsoft/azure-skills · 1,503 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 microsoft/azure-skills --skill cost-optimization
Clone the repo
git clone --depth 1 https://github.com/microsoft/azure-skills

Made for: Claude Code.

Or install azure-cost, the plugin that ships this one along with the rest of its 4 skills, 1 MCP server.

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/microsoft/azure-skills/cost-optimization/github.svg)](https://agentmods.dev/skills/microsoft/azure-skills/cost-optimization)
Your own site
<a href="https://agentmods.dev/skills/microsoft/azure-skills/cost-optimization"><img src="https://agentmods.dev/badge/skills/microsoft/azure-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/microsoft/azure-skills/cost-optimization"><img src="https://agentmods.dev/badge/skills/microsoft/azure-skills/cost-optimization.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 98 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 414 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 100% 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.00098 $0.00414
Opus 5.5 $0.00039 $0.00166
Sonnet 5 $0.00020 $0.00083
Haiku 4.5 $0.00010 $0.00041

Measured 3d ago against content hash e9cf29cb3c46, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-26, 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 3d 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

100% identical to cost-optimization — 0 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.

.github/plugins/azure-cost/skills/cost-optimization/SKILL.md · 45 lines

What it actually says

Azure Cost Optimization

Quick Reference

Intent Workflow Primary tools
Reduce waste or rightsize Optimization Cost and Resource Graph tools
Review commitments Commitments list_benefit_utilization, list_reservation_transactions, get_benefit_recommendations

When to Use This Skill

Use for waste, rightsizing, and commitments.

MCP Tools

Use cost and Resource Graph tools for optimization and benefit tools for commitments. Validate queries. Fallback: API mappings.

Workflow

  1. Confirm scope, period, currency, and commitment intent.
  2. Load only the matching workflow above.
  3. Never transform MCP results in a shell or interpreter; request validated server-side projection, aggregation, or bounded follow-up queries.
  4. Separate measured cost, reported savings, and qualitative opportunities.
  5. Recommend changes only; do not delete, resize, purchase, or deploy resources.

Error Handling

Error Action
Access denied Name the scope and permission.
Multiple currencies Group and report each currency separately.
Missing evidence State the gap; do not invent values.
Server error Retry once; then report the trace ID.
Files

What ships with it

8 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. 3d ago First seen · 45 lines · 98 tokens per session scan A e9cf29cb3c46

Subscribe to this mod's changes

cost-optimization is a skill published in the GitHub repository microsoft/azure-skills (1,503 stars, last pushed 2d ago), licensed MIT. It adds 98 tokens to every session and 414 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 100% identical to cost-optimization, differing in 0 lines, and is treated as a copy.

Related

Other skills, from other repositories

aws-cost-cleanup

Automated cleanup of unused AWS resources to reduce costs.

sickn33/agentic-awesome-skills · 15 tokens

aws-cost-operations

AWS cost optimization, monitoring, and operational excellence expert. Use when analyzing AWS bills, estimating costs, setting up CloudWatch alarms, querying logs, auditing CloudTrail activity, or assessing security posture.

sickn33/agentic-awesome-skills · 44 tokens

azure-compute

Azure VM/VMSS router. WHEN: create / provision / deploy / spin-up VM, recommend VM size, compare VM pricing, VMSS, scale set, autoscale, burstable, lightweight server, website, backend, GPU, machine learning, HPC simulation, dev/test, workload, family, load balancer, Flexible orchestration, Uniform orchestration, cost…

microsoft/skills · 154 tokens

azure-cost

Azure cost management: query costs, forecast spending, optimize to reduce waste. WHEN: "Azure costs", "Azure bill", "cost breakdown", "how much am I spending", "forecast spending", "optimize costs", "reduce spending", "orphaned resources", "rightsize VMs", "cost spike", "reduce storage costs", "AKS cost". DO NOT USE…

microsoft/skills · 94 tokens

cost-estimation

Forecast Azure spend and price planned resources or workloads. WHEN: "forecast Azure spending", "project next month cost", "compare forecast to my planning target", "how much will Azure cost", "estimate VM cost", "compare storage tiers", "compare Azure regions", "retail price", "EA rate card", "negotiated pricesheet".…

microsoft/skills · 97 tokens

cost-governance

Govern Azure costs with budgets, alerts, tags, and policy restrictions. WHEN: "Azure budget health", "configured budget overrun", "list Azure budgets", "create Azure budget", "budget alerts", "budget coverage", "missing CostCenter tags", "allowed VM SKUs", "allowed Azure regions", "would this SKU be denied", "cost…

microsoft/skills · 99 tokens