azure-cost-optimizer

azure-cost-optimizer is a skill for Claude Code, Codex from armanzeroeight/fastagent-plugins. It costs 34 tokens per session (413 once invoked), scanned A, original, MIT.

A guide for reviewing and reducing spending on Microsoft Azure, a cloud platform for running applications and storing data.

In plain words
What is it for?
Use it to inspect Azure services, virtual machines, databases, storage, and network usage, then consider reserved capacity, Azure Hybrid Benefit, resource cleanup, or smaller resources.
Why use it?
It helps identify unused resources, poor resource sizing, and pricing options that may be increasing the bill.

Skill for Claude CodeCodex

Part of the azure-toolkit plugin — 2 skills shipped together

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.

agentmods
npx agentmods add skills/armanzeroeight/fastagent-plugins/azure-cost-optimizer
Any agent
npx skills add armanzeroeight/fastagent-plugins --skill azure-cost-optimizer
Clone the repo
git clone --depth 1 https://github.com/armanzeroeight/fastagent-plugins

Made for: Claude Code, Codex.

Or install azure-toolkit, the plugin that ships this one along with the rest of its 2 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 azure-cost-optimizer

README.md
[![agentmods](https://agentmods.dev/badge/skills/armanzeroeight/fastagent-plugins/azure-cost-optimizer.svg)](https://agentmods.dev/skills/armanzeroeight/fastagent-plugins/azure-cost-optimizer)
Your own site
<a href="https://agentmods.dev/skills/armanzeroeight/fastagent-plugins/azure-cost-optimizer"><img src="https://agentmods.dev/badge/skills/armanzeroeight/fastagent-plugins/azure-cost-optimizer.svg" alt="Measured on agentmods" height="20"></a>
Per session 34 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 413 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00034 $0.00413
Opus 5 $0.00017 $0.00206
Sonnet 5 $0.00007 $0.00083
Haiku 4.5 $0.00003 $0.00041

Measured 5d ago against content hash 292eea8d2e75, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

azure-cost-optimizer 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 5d 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.

plugins/azure-toolkit/skills/azure-cost-optimizer/SKILL.md · 71 lines

What it actually says

Azure Cost Optimizer

Quick Start

Analyze Azure costs and implement optimization strategies to reduce spending while maintaining performance.

Instructions

Step 1: Analyze current costs

# View cost analysis
az cost-management query \
  --type Usage \
  --dataset-aggregation name="PreTaxCost" function="Sum" \
  --dataset-grouping name="ResourceGroup" type="Dimension"

# View costs by service
az cost-management query \
  --type Usage \
  --dataset-grouping name="ServiceName" type="Dimension"

Step 2: Identify optimization opportunities

Check for unused resources:

  • Unattached disks
  • Idle virtual machines
  • Unused public IPs
  • Orphaned network interfaces

Review resource utilization:

  • VM CPU and memory usage
  • Database DTU utilization
  • Storage account access patterns
  • Network bandwidth usage

Step 3: Implement cost-saving measures

Reserved Instances:

  • 1-year or 3-year commitments
  • Up to 72% savings vs pay-as-you-go
  • Recommended for stable workloads

Azure Hybrid Benefit:

  • Use existing Windows Server licenses
  • Use existing SQL Server licenses
  • Significant cost savings

Rightsizing:

  • Downsize overprovisioned VMs
  • Adjust database tiers
  • Optimize storage tiers

Spot VMs:

  • Up to 90% savings
  • Suitable for interruptible workloads
  • Batch processing, dev/test

Advanced

For detailed information, see:

Files

What ships with it

3 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. 5d ago First seen · 71 lines · 34 tokens per session scan A 292eea8d2e75

Subscribe to this mod's changes

azure-cost-optimizer is a skill published in the GitHub repository armanzeroeight/fastagent-plugins (29 stars, last pushed 1mo ago), licensed MIT. It adds 34 tokens to every session and 413 once invoked, about $0.0002 per session on Opus 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

eliza-cloud-manage-domain

Use after a domain has been purchased through Eliza Cloud (via the eliza-cloud-buy-domain skill) when the user wants to look at, edit, or remove a domain or its DNS records. Covers org-wide domain listing, per-app DNS record CRUD on cloudflare-managed zones, status re-sync, external-attachment verification, and…

elizaOS/eliza · 125 tokens

deploy-open-harness

Guides a user through collecting the credentials needed to deploy their own copy of Open Harness, deploying this repo on Vercel, and completing first-run setup. Use for requests about deploying, self-hosting, configuring credentials, or getting started with a fork of this app.

vercel-labs/open-agents · 60 tokens

cost-efficiency-analyzer

Analyzes cost structure, cost efficiency, and expense management from P&L data. Use when the user asks about costs, expenses, COGS, operating expenses, cost ratios, cost control, spending efficiency, margin compression from cost side, or wants to understand where money is going. Also use for "are we spending too…

awslabs/agentcore-samples · 98 tokens

executive-financial-briefing

Generates a concise executive-level financial briefing or summary suitable for a CEO, CFO, or board presentation. Use when the user asks for a summary, briefing, executive summary, board update, financial overview, financial health check, or "how is the business doing". Covers the full P&L picture in one page. Also…

awslabs/agentcore-samples · 95 tokens

multi-quarter-trend-analysis

Analyzes financial trends across multiple quarters by comparing P&L metrics over time. Use when the user wants to see trends, patterns, trajectories, or directional movement across 3 or more quarters. Also use for "how are we trending", "show me the trend", "track performance over time", "quarter over quarter…

awslabs/agentcore-samples · 82 tokens

quarterly-kpi-calculator

Calculates quarterly financial KPIs from P&L data. P&L figures can be provided directly by the user or fetched from the financial data MCP server. Use when the user wants KPI calculations such as Gross Margin %, EBITDA Margin %, Operating Expense Ratio, or Revenue Growth % QoQ. Also use for quarterly performance…

awslabs/agentcore-samples · 84 tokens