Official agent skill

Cost Analysis

by microsoft in microsoft/GitHub-Copilot-for-Azure

Analyze actual Azure spend, bill changes, and AKS or AI costs.

OfficialMITAuto-check passedDevOps & Cloud

Install Cost Analysis

skills CLI
$ npx skills add microsoft/GitHub-Copilot-for-Azure --skill cost-analysis -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install microsoft/GitHub-Copilot-for-Azure cost-analysis --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/microsoft/GitHub-Copilot-for-Azure.git skills-src && mkdir -p .claude/skills && cp -r skills-src/plugins/azure-cost/skills/cost-analysis .claude/skills/cost-analysis && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
cost-analysis
GitHub stars
255
Token cost
~489 tokens
SKILL.md length
159 words
Files
14 (incl. references)
Skills in repo
56
Repo updated
First seen
Licence
MIT

At a glance

Analyze actual Azure spend, bill changes, and AKS or AI costs.

  • Works in 5 steps: Confirm scope, period, currency, and… → Load only the matching workflow above. → Never transform MCP results in a shell… → …
  • Pricing estimates
  • SKILL.md covers Quick Reference, When to Use This Skill, MCP Tools and Workflow, plus 1 more section
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Cost Analysis is an agent skill from microsoft/GitHub-Copilot-for-Azure, published by the product's own GitHub organization. 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.

Its SKILL.md is about 490 tokens, which your agent loads only when the skill is triggered. The skill folder holds 15 other files, including reference files (for example `references/ai-cost-analysis.md`, `references/aks-anomaly.md` and `references/aks-cost-analysis.md`).

It sits in DevOps & Cloud, covering Cloud cost optimization. It works with Microsoft Azure, Azure Kubernetes Service and Azure Cosmos DB. The repository describes itself as: GitHub Copilot for Azure. The licence is MIT.

When your agent uses it

  • Pricing estimates
  • Tasks that involve Cloud cost optimization

Example prompts

  • “Azure cost breakdown”
  • “most expensive resources”
  • “why did my bill increase”
  • “/cost-analysis”

Workflow steps

5 steps, taken from the first numbered list in SKILL.md.

  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
  4. Respect row limits and label incomplete data.
  5. Separate measured cost from inferred causes and recommendations.

What it can do on your machine

Read from SKILL.md and the folder at commit d8f4f4e. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Cost Analysis loads about 489 tokens when it runs, and up to ~6k if it reads all its reference files. Until then it costs about 103 tokens; SKILL.md has 159 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~103
When it runs · the whole SKILL.md, loaded when a task matches
~489
With references · SKILL.md plus every file in references/, read only if the agent opens them
~6k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from microsoft/GitHub-Copilot-for-Azure at commit d8f4f4e, republished under its MIT licence (© microsoft). 159 words, ~489 tokens.

Download SKILL.mdSave it as .claude/skills/cost-analysis/SKILL.md (or your agent's skills folder). This skill also uses 13 other files; get the full folder from GitHub.
name
cost-analysis
description
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.
license
MIT
metadata.author
Microsoft
metadata.version
0.0.0-placeholder

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.

© microsoft, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 13 other files (references) in plugins/azure-cost/skills/cost-analysis of microsoft/GitHub-Copilot-for-Azure.

  • SKILL.md
  • references/ai-cost-analysis.md
  • references/aks-anomaly.md
  • references/aks-cost-analysis.md
  • references/aks-enablement.md
  • references/cost-investigation.md
  • references/cost-query/dimensions-by-scope.md
  • references/cost-query/error-handling.md
  • references/cost-query/examples.md
  • references/cost-query/guardrails.md
  • references/cost-query/request-body-schema.md
  • references/cost-query/workflow.md
  • references/tools-and-safety.md
  • version.json

Open the folder on GitHubat commit d8f4f4e

Used in 2 other repositories

We found 2 copies of this SKILL.md (exact, near-identical or edited) in other folders. This page covers the copy in microsoft/GitHub-Copilot-for-Azure, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Cost Analysis next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Cost Analysis compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Cost Analysis this skillmicrosoft/GitHub-Copilot-for-Azure255—~489Automated safety check: PassMIT
Cost Optimizationthomast1906/github-copilot-agent-skills202—~2.8kAutomated safety check: PassNone
Azure ArchitectFerroxLabs/wayland608—~4.3kAutomated safety check: PassApache-2.0
Cloud Cost Optimizationwshobson/agents40k13 repos~1.7kAutomated safety check: PassMIT
Spotinfoalexei-led/spotinfo164—~1.8kAutomated safety check: PassApache-2.0
FrugalyuanboP/frugal198—~2.1kAutomated safety check: PassMIT

Similar skills

  • Cost Optimization

    thomast1906/github-copilot-agent-skills

    Analyze Azure architectures for cost optimization opportunities, provide savings recommendations, and calculate ROI for improvements.

    202 GitHub stars~2.8k tokensUpdated 2 mo ago
    DevOps & CloudAuto-check passed
  • Azure Architect

    FerroxLabs/wayland

    Azure architecture. An agent skill from FerroxLabs/wayland.

    608 GitHub stars~4.3k tokensUpdated yesterday
    DevOps & CloudAuto-check passed
  • Cuts cloud spend across AWS, Azure, GCP and OCI with cost tagging, rightsizing, commitment and spot pricing models, and architecture changes.

    40k GitHub starsUsed in 13 repos~1.7k tokens
    DevOps & CloudAuto-check passed
  • Spotinfo

    alexei-led/spotinfo

    Query Spot/preemptible VM prices, savings and interruption risk across AWS, GCP and Azure with the spotinfo CLI.

    164 GitHub stars~1.8k tokensUpdated 2 days ago
    DevOps & CloudAuto-check passed
  • Frugal

    yuanboP/frugal

    Cloud cost awareness for agents. An agent skill from yuanboP/frugal.

    198 GitHub stars~2.1k tokensUpdated 2 mo ago
    DevOps & CloudAuto-check passed
  • Aks Deployment Skill

    timothywarner/chatgptclass

    Deploy and operate workloads on Azure Kubernetes Service (AKS) the safe way.

    143 GitHub stars~916 tokensUpdated 18 days ago
    DevOps & CloudAuto-check passed

More from microsoft/GitHub-Copilot-for-Azure

All 56 skills in this repo
  • Capacity

    microsoft/GitHub-Copilot-for-Azure

    Official

    Discovers available Azure OpenAI model capacity across regions and projects.

    255 GitHub starsUsed in 2 repos~1.7k tokens
    Auto-check passed
  • Deploy Model

    microsoft/GitHub-Copilot-for-Azure

    Official

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

    255 GitHub starsUsed in 1 repo~1.8k tokens
    Auto-check passed
  • Entra Agent Id

    microsoft/GitHub-Copilot-for-Azure

    Official

    Provision Microsoft Entra Agent Identity Blueprints, BlueprintPrincipals, and per-instance Agent Identities via Microsoft Graph, and configure OAuth 2.0 token exchange (fmipath, OBO, cross-tenant)…

    255 GitHub starsUsed in 3 repos~4k tokens
    Auto-check passed
  • Microsoft Foundry

    microsoft/GitHub-Copilot-for-Azure

    Official

    Build, deploy, evaluate, optimize, fine-tune, and manage Microsoft Foundry agents, models, and resources end to end.

    255 GitHub starsUsed in 1 repo~6.7k tokens
    Auto-check passed
  • Azure Storage

    microsoft/GitHub-Copilot-for-Azure

    Official

    Azure Storage Services including Blob Storage, File Shares, Queue Storage, Table Storage, and Data Lake.

    255 GitHub starsUsed in 2 repos~1.3k tokens
    Auto-check passed
  • Azure Diagnostics

    microsoft/GitHub-Copilot-for-Azure

    Official

    Debug Azure production issues on Azure using AppLens, Azure Monitor, resource health, and safe triage.

    255 GitHub starsUsed in 1 repo~1.6k tokens
    Auto-check passed

Categories

Questions about Cost Analysis

What does Cost Analysis do?

Analyze actual Azure spend, bill changes, and AKS or AI costs. Cost Analysis is an agent skill from microsoft/GitHub-Copilot-for-Azure, published by the product's own GitHub organization. Analyze actual Azure spend, bill changes, and AKS or AI costs.

When should I use Cost Analysis?

Cost Analysis fits situations like: pricing estimates; tasks that involve Cloud cost optimization.

How do I install Cost Analysis in Claude Code?

Run `npx skills add microsoft/GitHub-Copilot-for-Azure --skill cost-analysis -a claude-code`. Or copy the skill folder (plugins/azure-cost/skills/cost-analysis in microsoft/GitHub-Copilot-for-Azure) into .claude/skills/cost-analysis in your project. Claude Code loads it when a task matches its description.

How do I install Cost Analysis in Codex?

Run `npx skills add microsoft/GitHub-Copilot-for-Azure --skill cost-analysis -a codex`. Or copy the skill folder (plugins/azure-cost/skills/cost-analysis in microsoft/GitHub-Copilot-for-Azure) into .agents/skills/cost-analysis in your project. Codex loads it when a task matches its description.

Can I use Cost Analysis in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add microsoft/GitHub-Copilot-for-Azure --skill cost-analysis -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/cost-analysis, .gemini/skills/cost-analysis, .github/skills/cost-analysis and .opencode/skills/cost-analysis in your project.

What does Cost Analysis need to run?

SKILL.md names no scripts, command-line tools or credentials: Cost Analysis is instructions for the agent only.

Does Cost Analysis access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Cost Analysis safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Cost Analysis use?

Cost Analysis is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Cost Analysis use?

About 489 tokens (SKILL.md is roughly 2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 5.5k tokens, read only when the agent opens those files.

What are the alternatives to Cost Analysis?

Skills that share tags, products or a category with Cost Analysis: Cost Optimization (thomast1906/github-copilot-agent-skills, 202 stars), Azure Architect (FerroxLabs/wayland, 608 stars), Cloud Cost Optimization (wshobson/agents, 40k stars) and Spotinfo (alexei-led/spotinfo, 164 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Cost Analysis?

microsoft (a GitHub organization, an official publisher) maintains it in microsoft/GitHub-Copilot-for-Azure, which has 255 GitHub stars. The repository holds 56 skills in this directory. The repository was last updated on October 7, 2026.

Source: microsoft/GitHub-Copilot-for-Azure on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.