az-cost-optimize

az-cost-optimize is a skill for Claude Code, Codex from fabioc-aloha/Alex_Skill_Mall. It costs 37 tokens per session (2,974 once invoked), scanned A, a copy of az-cost-optimize, MIT.

A workflow for analyzing Azure infrastructure and finding ways to reduce its running costs. It can examine infrastructure-as-code files or resources in a target resource group and records recommendations as GitHub issues.

In plain words
What is it for?
Use it to review Azure resources for cost-saving opportunities and create GitHub issues for each recommendation plus a coordinating issue.
Why use it?
It turns infrastructure cost findings into individual, trackable work items instead of leaving them as an unstructured report.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: positional $N argument.

Good fit Use it to review Azure resources for cost-saving opportunities and create GitHub issues for each recommendation plus a coordinating issue.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/fabioc-aloha/alex_skill_mall/az-cost-optimize
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 fabioc-aloha/Alex_Skill_Mall --skill az-cost-optimize
Clone the repo
git clone --depth 1 https://github.com/fabioc-aloha/Alex_Skill_Mall

Made for: Claude Code, Codex.

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 az-cost-optimize

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/fabioc-aloha/alex_skill_mall/az-cost-optimize"><img src="https://agentmods.dev/badge/skills/fabioc-aloha/alex_skill_mall/az-cost-optimize.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 37 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,974 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 98% 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.00037 $0.02974
Opus 5.5 $0.00015 $0.01190
Sonnet 5.5 $0.00007 $0.00595
Haiku 4.5 $0.00004 $0.00297

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

Security

Grade A, and why

az-cost-optimize 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 2mo 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

98% identical to az-cost-optimize — 3 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.

plugins/cloud-infrastructure/az-cost-optimize/skills/az-cost-optimize/SKILL.md · 307 lines

How it starts

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

Azure Cost Optimize

This workflow analyzes Infrastructure-as-Code (IaC) files and Azure resources to generate cost optimization recommendations. It creates individual GitHub issues for each optimization opportunity plus one EPIC issue to coordinate implementation, enabling efficient tracking and execution of cost savings initiatives.

Prerequisites

  • Azure MCP server configured and authenticated
  • GitHub MCP server configured and authenticated
  • Target GitHub repository identified
  • Azure resources deployed (IaC files optional but helpful)
  • Prefer Azure MCP tools (azmcp-*) over direct Azure CLI when available

Workflow Steps

Step 1: Get Azure Best Practices

Action: Retrieve cost optimization best practices before analysis Tools: Azure MCP best practices tool Process:

  1. Load Best Practices:
    • Execute azmcp-bestpractices-get to get some of the latest Azure optimization guidelines. This may not cover all scenarios but provides a foundation.
    • Use these practices to inform subsequent analysis and recommendations as much as possible
    • Reference best practices in optimization recommendations, either from the MCP tool output or general Azure documentation

Step 2: Discover Azure Infrastructure

Action: Dynamically discover and analyze Azure resources and configurations Tools: Azure MCP tools + Azure CLI fallback + Local file system access Process:

  1. Resource Discovery:
    • Execute azmcp-subscription-list to find available subscriptions
    • Execute azmcp-group-list --subscription <subscription-id> to find resource groups
    • Get a list of all resources in the relevant group(s):
      • Use az resource list --subscription <id> --resource-group <name>
    • For each resource type, use MCP tools first if possible, then CLI fallback:
      • azmcp-cosmos-account-list --subscription <id> - Cosmos DB accounts
      • azmcp-storage-account-list --subscription <id> - Storage accounts
      • azmcp-monitor-workspace-list --subscription <id> - Log Analytics workspaces
      • azmcp-keyvault-key-list - Key Vaults
      • az webapp list - Web Apps (fallback - no MCP tool available)
      • az appservice plan list - App Service Plans (fallback)
      • az functionapp list - Function Apps (fallback)
      • az sql server list - SQL Servers (fallback)
      • az redis list - Redis Cache (fallback)
      • ... and so on for other resource types

Read the full file on GitHub · 307 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. 2mo ago First seen · 307 lines · 37 tokens per session scan A 2fd3912a01fa

Subscribe to this mod's changes

az-cost-optimize is a skill published in the GitHub repository fabioc-aloha/Alex_Skill_Mall (6 stars, last pushed yesterday), licensed MIT. It adds 37 tokens to every session and 2,974 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 98% identical to az-cost-optimize, differing in 3 lines, and is treated as a copy.

Related

az-cost-optimize compared with skills from other repositories

az-cost-optimize next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
az-cost-optimizefabioc-aloha/Alex_Skill_MallSkill6yesterdayMITA37Claude Code, Codex
deployFlorianBruniaux/claude-code-ultimate-guideSkill7.6ktodayCC-BY-SA-4.0A10Claude Code, Codex
chaos-experimentrjmurillo/ai-agentsSkill50todayApache-2.0A42Claude Code
apex-azure-bicep-patternsjonathan-vella/apex-acceleratorSkill51yesterdayMITA100Claude Code
apex-azure-governance-discoveryjonathan-vella/apex-acceleratorSkill51yesterdayMITA89Claude Code
apex-azure-reliabilityjonathan-vella/apex-acceleratorSkill51yesterdayMITA96Claude Code
apex-azure-defaultsjonathan-vella/apex-acceleratorSkill51yesterdayMITA89Claude Code