Analyze actual Azure spending, bill changes, and specific costs for AKS clusters and AI services.
- GitHub stars
- 1,636
- Files
- 13
- Last commit
- Nov 11, 2026
- License
- MIT
- Allowed tools
- —
What does the cost-analysis skill do?
cost-analysis analyzes actual Azure spending, bill changes, and specific costs for AKS clusters and AI services.
Summary generated from the skill's SKILL.md.
About the cost-analysis skill
Analyzing actual Azure spending and identifying specific cost drivers for AKS clusters or AI services is what this skill enables. Developers and cloud operators use it to investigate why a bill increased, find the most expensive resources, or pinpoint unexpected charges from services like Cosmos DB or Foundry models. An agent should load this skill when a user asks for a cost breakdown, a cost spike investigation, or an analysis of idle AKS capacity.
The skill provides access to tools like query_costs and query_aks_costs, often working alongside Resource Graph to provide detailed insights. It produces data regarding historical spend and resource-specific allocations. It is strictly limited to analyzing actual measured costs and does not provide forecasts, pricing estimates, rightsizing advice, or budget management. Users must ensure they specify the correct scope, period, and currency to receive accurate results.
What an agent can do with it
- 1Identify expensive cloud resourcesFind out which specific resources are responsible for the highest portion of your Azure spend.
Written from the skill's SKILL.md. Every use case is checked against a quote from it.
How to install the cost-analysis skill
Each command copies the skill folder into the client's skills directory. Restart the client or start a new session to load it.Install the cost-analysis skill in Plugin
/plugin marketplace add microsoft/azure-skills /plugin install azure-cost@azure-skills
Install the cost-analysis skill in Claude Code
~/.claude/skills/cost-analysis/SKILL.md
$ npx degit microsoft/azure-skills/.github/plugins/azure-cost/skills/cost-analysis ~/.claude/skills/cost-analysisInstall the cost-analysis skill in Claude Code (project)
.claude/skills/cost-analysis/SKILL.md
$ npx degit microsoft/azure-skills/.github/plugins/azure-cost/skills/cost-analysis .claude/skills/cost-analysisInstall the cost-analysis skill in Codex
~/.agents/skills/cost-analysis/SKILL.md
$ npx degit microsoft/azure-skills/.github/plugins/azure-cost/skills/cost-analysis ~/.agents/skills/cost-analysisInstall the cost-analysis skill in Gemini CLI
~/.gemini/skills/cost-analysis/SKILL.md
$ npx degit microsoft/azure-skills/.github/plugins/azure-cost/skills/cost-analysis ~/.gemini/skills/cost-analysisInstall the cost-analysis skill in Claude.ai
npx degit microsoft/azure-skills/.github/plugins/azure-cost/skills/cost-analysis cost-analysis && zip -r cost-analysis.zip cost-analysis # claude.ai → Customize → Skills → + → Create skill → Upload a skill → cost-analysis.zip
Automated checks
Ran Nov 15, 2026Full report →Passed our automated checks. That is not a security audit: read the scripts before you let an agent run them. How checks work
- Source repository linked and reachablemicrosoft/azure-skills/.github/plugins/azure-cost/skills/cost-analysis is public and reachablegithub.com/microsoft/azure-skills/tree/HEAD/.github/plugins/ ↗Pass
- Open source license (OSI)MITspdx.org/licenses/MIT.html ↗Pass
- Commit or release in the last yearLast commit 2026-11-11github.com/microsoft/azure-skills/commits ↗Pass
- No download-and-run or credential theft in scriptsNo scripts in the skill folderPass
- No hidden instructions in SKILL.mdNo override phrases, safeguard switches, credential requests or hidden charactersgithub.com/microsoft/azure-skills/blob/HEAD/.github/plugins/ ↗Pass
- Pre-approved tools are scopedNo pre-approved tools; the agent asks before using onegithub.com/microsoft/azure-skills/blob/HEAD/.github/plugins/ ↗Pass
- SKILL.md follows the Agent Skills formatValid name and description; says when to use it; 47 linesgithub.com/microsoft/azure-skills/blob/HEAD/.github/plugins/ ↗Pass
SKILL.md
View on GitHubAzure Cost Analysis
Quick Reference
| Intent | Workflow | Primary tools |
|---|---|---|
| Query historical spend | Cost query | query_costs |
| Explain a spike | Cost investigation | query_costs, Resource Graph |
| Analyze AKS spend | AKS cost analysis | query_aks_costs, Resource Graph |
| Analyze AI service spend | AI cost analysis | query_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
- Confirm scope, period, currency, and breakdown.
- Load only the matching workflow above.
- Never transform MCP results in a shell or interpreter; request tool-side totals, grouping, sorting, or bounded follow-up queries.
- Respect row limits and label incomplete data.
- Separate measured cost from inferred causes and recommendations.
Error Handling
| Error | Action |
|---|---|
| Access denied | Name the required scope and role. |
| Empty result | Distinguish no data from unavailable data. |
| Multiple currencies | Report each currency separately. |
| Server error | Retry once; then stop with the trace ID. |
Files in this skill
13cost-analysis skill questions
How do I install the cost-analysis skill in Claude Code?
Run npx degit microsoft/azure-skills/.github/plugins/azure-cost/skills/cost-analysis ~/.claude/skills/cost-analysis. Claude Code loads skills from ~/.claude/skills (all projects) or .claude/skills (one project) and uses a skill when its description matches the task.
Which clients can use the cost-analysis skill?
Any client that reads the Agent Skills format: Claude Code, Codex, Gemini CLI and claude.ai (upload as a ZIP). Scripts in the skill run only where the client allows code execution.
What can this skill be used for?
The skill is used for analyzing actual Azure spend, bill changes, and costs related to AKS or AI services.
When should I not use this skill?
Do not use this skill for forecasting, pricing estimates, rightsizing, commitments, or budgets.
How should I handle multiple currencies in a report?
If multiple currencies are present, you should report each currency separately.