Back to Skills

az-cost-optimize

Analyze Azure resources used in the app (IaC files and/or resources in a target rg) and optimize costs - creating GitHub issues for identified optimizations.

31,102stars3,739forksUpdated 4/24/2026

Security Assessment

Safe(100/100)
Security Score100/100

About az-cost-optimize

The az-cost-optimize skill is designed to analyze Azure resources utilized within an application, specifically focusing on Infrastructure-as-Code (IaC) files and resources within a designated resource group. This skill addresses the challenge of managing and optimizing cloud costs by providing actionable recommendations for cost savings. By identifying inefficiencies and suggesting optimizations, it helps organizations reduce their cloud expenditure while maintaining performance and reliability in their applications.

Key features of the az-cost-optimize skill include the ability to retrieve Azure best practices, dynamically discover Azure infrastructure, and collect usage metrics to validate current costs. It generates individual GitHub issues for each identified optimization opportunity, along with a coordinating EPIC issue to streamline the implementation process. This structured approach not only facilitates efficient tracking of cost-saving initiatives but also ensures that teams can prioritize and execute optimizations effectively.

This skill is particularly useful for cloud architects, DevOps engineers, and IT managers who are responsible for managing Azure resources and budgets. It is ideal for organizations looking to enhance their cloud cost management strategies, especially those utilizing IaC for resource deployment. By leveraging the az-cost-optimize skill, users can gain insights into their Azure resource usage and take proactive steps towards optimizing their cloud investments.

FAQ

What are the prerequisites for using the az-cost-optimize skill?

You need an authenticated Azure MCP server, an authenticated GitHub MCP server, a target GitHub repository, and deployed Azure resources. IaC files are optional but recommended.

Can I use the Azure CLI instead of the MCP tools?

While the skill prefers Azure MCP tools for operations, it does have fallback options to use Azure CLI when MCP tools are not available.

What happens if no IaC files are found during analysis?

If no IaC files are detected, the process will stop, and the user will be informed that no IaC files were found.

Is there a limit to the types of Azure resources that can be analyzed?

The skill can analyze various Azure resources, but it primarily focuses on those that can be discovered through the specified MCP tools and Azure CLI commands.

How does the skill create GitHub issues for optimizations?

For each optimization opportunity identified, the skill generates individual GitHub issues along with one EPIC issue to coordinate the implementation of these optimizations.

Install az-cost-optimize

Download and extract the skill files to your .claude/skills/ directory.

Quick Setup:

  1. Copy the skill folder to .claude/skills/
  2. Claude will automatically detect and use the skill