DevOps & CloudOfficial · microsoft

Cost Optimization skill for Claude

Optimize existing Azure resources and analyze Reservations or Savings Plans. WHEN: \"optimize Azure costs\", \"reduce cloud spending\", \"rightsize resources\", \"find idle resources\", \"orphaned disk\", \"deleted VM still charged\", \"public IP still charging\", \"reservation utilization\", \"Savings Plan coverage\", \"commitment recommendation\", \"why is pay-as-you-go still charged\". DO NOT

When Claude uses it

USE FOR: cost spikes, forecasts, pricing estimates, budgets, or governance.

Cost Optimization SKILL.md

The full skill file from microsoft/skills (MIT).

Azure Cost Optimization

Quick Reference

IntentWorkflowPrimary tools
Reduce waste or rightsizeOptimizationCost and Resource Graph tools
Review commitmentsCommitmentslist_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

ErrorAction
Access deniedName the scope and permission.
Multiple currenciesGroup and report each currency separately.
Missing evidenceState the gap; do not invent values.
Server errorRetry once; then report the trace ID.

How to install Cost Optimization

Claude Code

Copy the skill into your personal skills folder (or into .claude/skills/ inside a project):

npx degit microsoft/skills/.github/plugins/azure-cost/skills/cost-optimization#main ~/.claude/skills/cost-optimization

Codex

npx degit microsoft/skills/.github/plugins/azure-cost/skills/cost-optimization#main ~/.codex/skills/cost-optimization

Claude.ai and Claude Desktop

Download the skill folder from GitHub, zip it, and upload it under Settings → Capabilities → Skills.

Frequently asked questions

+What does the Cost Optimization skill do?

Optimize existing Azure resources and analyze Reservations or Savings Plans. WHEN: \"optimize Azure costs\", \"reduce cloud spending\", \"rightsize resources\", \"find idle resources\", \"orphaned disk\", \"deleted VM still charged\", \"public IP still charging\", \"reservation utilization\", \"Savings Plan coverage\", \"commitment recommendation\", \"why is pay-as-you-go still charged\". DO NOT USE FOR: cost spikes, forecasts, pricing estimates, budgets, or governance.

+How do I install Cost Optimization in Claude Code?

Copy the skill folder into ~/.claude/skills/cost-optimization, for example with "npx degit microsoft/skills/.github/plugins/azure-cost/skills/cost-optimization#main ~/.claude/skills/cost-optimization". Claude Code loads it automatically and uses it when a task matches.

+Does Cost Optimization work with ChatGPT or Codex?

Yes. Cost Optimization uses the open SKILL.md format. In Codex, put the folder in ~/.codex/skills/cost-optimization. In Claude.ai, zip the folder and upload it under Settings → Capabilities → Skills.

+Is Cost Optimization free?

Cost Optimization is published on GitHub by microsoft under the MIT license, which allows free use.

Related devops & cloud skills

  1. Supabase

    Official

    Use when doing ANY task involving Supabase. Triggers: Supabase products (Database, Auth, Edge Functions, Realtime, Storage, Vectors, Cron,…

    supabase/agent-skills★ 3.1k
  2. Senior Architect

    System architecture decisions with a written rationale: monolith vs microservices, database choice, scaling limits, ADRs, Mermaid diagrams.

    alirezarezvani/claude-skills★ 30k
  3. Vercel Deploy

    Official

    Deploy applications and websites to Vercel. Use when the user requests deployment actions like "deploy my app", "deploy and give me the…

    openai/skills★ 29k
  4. Customize

    Official

    Interactive guided deployment flow for Azure OpenAI models with full customization control.

    microsoft/skills★ 3.2k
  5. Deploy Model

    Official

    Unified Azure OpenAI model deployment skill with intelligent intent-based routing.

    microsoft/skills★ 3.2k
  6. Discover Azure Skills

    Official

    Searches the Azure skills catalog and recommends installable agent skills by matching an Azure task to skill metadata and plugin…

    microsoft/skills★ 3.2k
  7. Entra App Registration

    Official

    Guides Microsoft Entra ID app registration, OAuth 2.0 authentication, and MSAL integration.

    microsoft/skills★ 3.2k
  8. Foundry Iq

    Official

    Use for Azure AI Search, Foundry IQ, document-grounded agents and graphs built over documents.

    microsoft/skills★ 3.2k
  9. Preset

    Official

    Intelligently deploys Azure OpenAI models to optimal regions by analyzing capacity across all available regions.

    microsoft/skills★ 3.2k

See all devops & cloud skills →

More skills from microsoft

  1. Debugview

    Official

    Sysinternals DebugView CLI (DbgViewCli) for capturing and analyzing usermode and kernel-mode Windows debug output from the command line.

    microsoft/skills★ 3.2k
  2. Declarative Agent Developer

    Official

    Create, build, deploy, and localize declarative agents for M365 Copilot and Teams.

    microsoft/skills★ 3.2k

All skills by microsoft →

Give your whole team an AI agent with skills

Cody runs managed AI agents your team can message in Slack, Teams, WhatsApp and the web, with 50+ business integrations, scheduled tasks and memory. No terminal required.