DevOps & CloudOfficial · microsoft

Cost Analysis skill for Claude

Analyze actual Azure spend, bill changes, and AKS or AI costs. WHEN: \"Azure cost breakdown\", \"most expensive resources\", \"why did my bill increase\", \"cost spike\", \"unexpected charge\", \"Cosmos DB charges\", \"Foundry model costs\", \"AKS cluster cost\", \"namespace cost\", \"enable AKS cost analysis\", \"idle AKS capacity\". DO NOT

When Claude uses it

USE FOR: forecasts, pricing estimates, rightsizing, commitments, or budgets.

Cost Analysis SKILL.md

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

Azure Cost Analysis

Quick Reference

IntentWorkflowPrimary tools
Query historical spendCost queryquery_costs
Explain a spikeCost investigationquery_costs, Resource Graph
Analyze AKS spendAKS cost analysisquery_aks_costs, Resource Graph
Analyze AI service spendAI cost analysisquery_costs

When to Use This Skill

Use for spend, anomalies, and AKS or AI allocation.

MCP Tools

Use cost tools and Resource Graph first. If an operation is unavailable, follow fallback and safety.

Workflow

  1. Confirm scope, period, currency, and breakdown.
  2. Load only the matching workflow above.
  3. Never transform MCP results in a shell or interpreter; request tool-side totals, grouping, sorting, or bounded follow-up queries.
  4. Respect row limits and label incomplete data.
  5. Separate measured cost from inferred causes and recommendations.

Error Handling

ErrorAction
Access deniedName the required scope and role.
Empty resultDistinguish no data from unavailable data.
Multiple currenciesReport each currency separately.
Server errorRetry once; then stop with the trace ID.

How to install Cost Analysis

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-analysis#main ~/.claude/skills/cost-analysis

Codex

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

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 Analysis skill do?

Analyze actual Azure spend, bill changes, and AKS or AI costs. WHEN: \"Azure cost breakdown\", \"most expensive resources\", \"why did my bill increase\", \"cost spike\", \"unexpected charge\", \"Cosmos DB charges\", \"Foundry model costs\", \"AKS cluster cost\", \"namespace cost\", \"enable AKS cost analysis\", \"idle AKS capacity\". DO NOT USE FOR: forecasts, pricing estimates, rightsizing, commitments, or budgets.

+How do I install Cost Analysis in Claude Code?

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

+Does Cost Analysis work with ChatGPT or Codex?

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

+Is Cost Analysis free?

Cost Analysis 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. Cost Estimation

    Official

    Forecast Azure spend and price planned resources or workloads.

    microsoft/skills★ 3.2k
  5. Cost Optimization

    Official

    Optimize existing Azure resources and analyze Reservations or Savings Plans.

    microsoft/skills★ 3.2k
  6. Customize

    Official

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

    microsoft/skills★ 3.2k
  7. Deploy Model

    Official

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

    microsoft/skills★ 3.2k
  8. 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
  9. Entra App Registration

    Official

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

    microsoft/skills★ 3.2k

See all devops & cloud skills →

More skills from microsoft

  1. Cost Governance

    Official

    Govern Azure costs with budgets, alerts, tags, and policy restrictions.

    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.