apex-azure-cost-optimization

apex-azure-cost-optimization is a skill for Claude Code from jonathan-vella/apex-accelerator. It costs 104 tokens per session (1,662 once invoked), scanned A, original, MIT.

An Azure cost-analysis workflow that examines spending and resource usage. It looks for unused resources, oversized resources, and other possible savings.

In plain words
What is it for?
Use it to review Azure subscriptions, assess VM, container, or Redis costs, find orphaned resources, and produce evidence-based cost recommendations.
Why use it?
It helps identify where Azure money is being spent unnecessarily before any changes are made.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter.

Good fit Use it to review Azure subscriptions, assess VM, container, or Redis costs, find orphaned resources, and produce evidence-based cost recommendations.

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

Made for: Claude Code.

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 apex-azure-cost-optimization

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/jonathan-vella/apex-accelerator/apex-azure-cost-optimization"><img src="https://agentmods.dev/badge/skills/jonathan-vella/apex-accelerator/apex-azure-cost-optimization.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 104 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,662 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 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.00104 $0.01662
Opus 5.5 $0.00042 $0.00665
Sonnet 5.5 $0.00021 $0.00332
Haiku 4.5 $0.00010 $0.00166

Measured 22d ago against content hash ae4eb43eb9d7, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

apex-azure-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 22d 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.

.github/skills/apex-azure-cost-optimization/SKILL.md · 117 lines

How it starts

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

Azure Cost Optimization Skill

Analyze Azure subscriptions to identify cost savings through orphaned resource cleanup, rightsizing, and optimization recommendations based on actual usage data.

Routing

User intent Workflow
Understand current or historical cost Cost query (query_costs)
Reduce costs or find waste Instructions below
Project future cost Cost forecast (forecast_costs)

Scope Reference (Shared Across All Workflows)

  • Subscription: /subscriptions/<id>
  • Resource group: /subscriptions/<id>/resourceGroups/<name>
  • Management group: /providers/Microsoft.Management/managementGroups/<id>
  • Billing account: /providers/Microsoft.Billing/billingAccounts/<id>

When to Use This Skill

Use this skill when the user asks to:

  • Optimize Azure costs or reduce spending
  • Analyze Azure subscription for cost savings
  • Generate cost optimization report
  • Find orphaned or unused resources
  • Rightsize Azure VMs, containers, or services
  • Identify where they're overspending in Azure
  • Optimize Redis costs specifically - See Azure Redis Cost Optimization for Redis-specific analysis
  • Review storage tiers and lifecycle - See Azure Storage Cost Review

Rules

  • Read-only analysis first — never delete or modify resources during the assessment phase; remediation is a separate user-approved step
  • Validate prerequisites before starting (Azure CLI authenticated, costmanagement + resource-graph extensions, azqr installed, Cost Management Reader + Monitoring Reader + Reader roles)
  • Use real data — recommendations must be grounded in actual cost queries and utilization metrics, not assumptions
  • ARM MCP first — use API fallbacks only when an operation is unavailable, never to bypass invalid input, denied access, throttling or empty data (tool and safety guidance)
  • Cite sources — every savings estimate must reference the underlying cost query or pricing API result (audit trail in agent-output/{project}/cost-query-result<timestamp>.json)
  • Classify safely — mark recommendations as Safe / Review / Risky; never auto-apply destructive operations
  • Show the total bill — present savings next to the scope's total actual cost for the same period, so each saving reads against the whole bill
  • Redis-specific scope — when the user asks about Redis only, follow Azure Redis Cost Optimization instead of the general subscription workflow
  • Save artifacts to agent-output/{project}/costoptimizereport<timestamp>.md and the audit trail JSON; without a project, ask for its name before writing
  • Out of scope: deploying resources (use apex-azure-deploy), security issues (use apex-azure-compliance), general diagnostics (use apex-azure-diagnostics)

Read the full file on GitHub · 117 lines

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. 22d ago Changed · +22 lines · +6 tokens per session ae4eb43eb9d7
  2. 23d ago First seen · 95 lines · 98 tokens per session scan A 427590e98970

Subscribe to this mod's changes

apex-azure-cost-optimization is a skill published in the GitHub repository jonathan-vella/apex-accelerator (50 stars, last pushed yesterday), licensed MIT. It adds 104 tokens to every session and 1,662 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-09-23.