azure-cost-optimization — for Claude Code azure-cost-optimization, agent-skills, community, for Claude Code, ide skills, az login, costmanagement, resource-graph, redis_list, Optimization

v1.0.0

Über diesen Skill

Geeigneter Einsatz: Ideal for AI agents that need azure cost optimization skill. Lokalisierte Zusammenfassung: # Azure Cost Optimization Skill Analyze Azure subscriptions to identify cost savings through orphaned resource cleanup, rightsizing, and optimization recommendations based on actual usage data. This AI agent skill supports Claude Code, Cursor, and Windsurf workflows.

Funktionen

Azure Cost Optimization Skill
When to Use This Skill
Use this skill when the user asks to:
Optimize Azure costs or reduce spending
Analyze Azure subscription for cost savings

# Core Topics

Tyler-R-Kendrick Tyler-R-Kendrick
[8]
[3]
Updated: 4/16/2026

Killer-Skills Review

Decision support comes first. Repository text comes second.

Reference-Only Page Review Score: 10/11

This page remains useful for teams, but Killer-Skills treats it as reference material instead of a primary organic landing page.

Original recommendation layer Concrete use-case guidance Explicit limitations and caution Quality floor passed for review
Review Score
10/11
Quality Score
70
Canonical Locale
en
Detected Body Locale
en

Geeigneter Einsatz: Ideal for AI agents that need azure cost optimization skill. Lokalisierte Zusammenfassung: # Azure Cost Optimization Skill Analyze Azure subscriptions to identify cost savings through orphaned resource cleanup, rightsizing, and optimization recommendations based on actual usage data. This AI agent skill supports Claude Code, Cursor, and Windsurf workflows.

Warum diese Fähigkeit verwenden

Empfehlung: azure-cost-optimization helps agents azure cost optimization skill. Azure Cost Optimization Skill Analyze Azure subscriptions to identify cost savings through orphaned resource cleanup, rightsizing, and

Am besten geeignet für

Geeigneter Einsatz: Ideal for AI agents that need azure cost optimization skill.

Handlungsfähige Anwendungsfälle for azure-cost-optimization

Anwendungsfall: Applying Azure Cost Optimization Skill
Anwendungsfall: Applying When to Use This Skill
Anwendungsfall: Applying Use this skill when the user asks to:

! Sicherheit & Einschränkungen

  • Einschraenkung: For Redis-only focused analysis, follow the instructions in the Redis-specific reference document
  • Einschraenkung: Requires repository-specific context from the skill documentation
  • Einschraenkung: Works best when the underlying tools and dependencies are already configured

Why this page is reference-only

  • - Current locale does not satisfy the locale-governance contract.

Source Boundary

The section below is imported from the upstream repository and should be treated as secondary evidence. Use the Killer-Skills review above as the primary layer for fit, risk, and installation decisions.

After The Review

Decide The Next Action Before You Keep Reading Repository Material

Killer-Skills should not stop at opening repository instructions. It should help you decide whether to install this skill, when to cross-check against trusted collections, and when to move into workflow rollout.

Labs Demo

Browser Sandbox Environment

⚡️ Ready to unleash?

Experience this Agent in a zero-setup browser environment powered by WebContainers. No installation required.

Boot Container Sandbox

FAQ & Installation Steps

These questions and steps mirror the structured data on this page for better search understanding.

? Frequently Asked Questions

What is azure-cost-optimization?

Geeigneter Einsatz: Ideal for AI agents that need azure cost optimization skill. Lokalisierte Zusammenfassung: # Azure Cost Optimization Skill Analyze Azure subscriptions to identify cost savings through orphaned resource cleanup, rightsizing, and optimization recommendations based on actual usage data. This AI agent skill supports Claude Code, Cursor, and Windsurf workflows.

How do I install azure-cost-optimization?

Run the command: npx killer-skills add Tyler-R-Kendrick/agent-skills/azure-cost-optimization. It works with Cursor, Windsurf, VS Code, Claude Code, and 19+ other IDEs.

What are the use cases for azure-cost-optimization?

Key use cases include: Anwendungsfall: Applying Azure Cost Optimization Skill, Anwendungsfall: Applying When to Use This Skill, Anwendungsfall: Applying Use this skill when the user asks to:.

Which IDEs are compatible with azure-cost-optimization?

This skill is compatible with Cursor, Windsurf, VS Code, Trae, Claude Code, OpenClaw, Aider, Codex, OpenCode, Goose, Cline, Roo Code, Kiro, Augment Code, Continue, GitHub Copilot, Sourcegraph Cody, and Amazon Q Developer. Use the Killer-Skills CLI for universal one-command installation.

Are there any limitations for azure-cost-optimization?

Einschraenkung: For Redis-only focused analysis, follow the instructions in the Redis-specific reference document. Einschraenkung: Requires repository-specific context from the skill documentation. Einschraenkung: Works best when the underlying tools and dependencies are already configured.

How To Install

  1. 1. Open your terminal

    Open the terminal or command line in your project directory.

  2. 2. Run the install command

    Run: npx killer-skills add Tyler-R-Kendrick/agent-skills/azure-cost-optimization. The CLI will automatically detect your IDE or AI agent and configure the skill.

  3. 3. Start using the skill

    The skill is now active. Your AI agent can use azure-cost-optimization immediately in the current project.

! Reference-Only Mode

This page remains useful for installation and reference, but Killer-Skills no longer treats it as a primary indexable landing page. Read the review above before relying on the upstream repository instructions.

Upstream Repository Material

The section below is imported from the upstream repository and should be treated as secondary evidence. Use the Killer-Skills review above as the primary layer for fit, risk, and installation decisions.

Upstream Source

azure-cost-optimization

Install azure-cost-optimization, an AI agent skill for AI agent workflows and automation. Review the use cases, limitations, and setup path before rollout.

SKILL.md
Readonly
Upstream Repository Material
The section below is imported from the upstream repository and should be treated as secondary evidence. Use the Killer-Skills review above as the primary layer for fit, risk, and installation decisions.
Supporting Evidence

Azure Cost Optimization Skill

Analyze Azure subscriptions to identify cost savings through orphaned resource cleanup, rightsizing, and optimization recommendations based on actual usage data.

When to Use This Skill

Use this skill when the user asks to:

  • Optimize Azure costs or reduce spending
  • Analyze Azure subscription for cost savings
  • Generate cost optimization report
  • Find orphaned or unused resources
  • Rightsize Azure VMs, containers, or services
  • Identify where they're overspending in Azure
  • Optimize Redis costs specifically - See Azure Redis Cost Optimization for Redis-specific analysis

Instructions

Follow these steps in conversation with the user:

Step 0: Validate Prerequisites

Before starting, verify these tools and permissions are available:

Required Tools:

  • Azure CLI installed and authenticated (az login)
  • Azure CLI extensions: costmanagement, resource-graph
  • Azure Quick Review (azqr) installed - See Azure Quick Review for details

Required Permissions:

  • Cost Management Reader role
  • Monitoring Reader role
  • Reader role on subscription/resource group

Verification commands:

powershell
1az --version 2az account show 3az extension show --name costmanagement 4azqr version

Step 1: Load Best Practices

Get Azure cost optimization best practices to inform recommendations:

javascript
1// Use Azure MCP best practices tool 2mcp_azure_mcp_get_azure_bestpractices({ 3 intent: "Get cost optimization best practices", 4 command: "get_bestpractices", 5 parameters: { resource: "cost-optimization", action: "all" } 6})

Step 1.5: Redis-Specific Analysis (Conditional)

If the user specifically requests Redis cost optimization, use the specialized Redis skill:

📋 Reference: Azure Redis Cost Optimization

When to use Redis-specific analysis:

  • User mentions "Redis", "Azure Cache for Redis", or "Azure Managed Redis"
  • Focus is on Redis resource optimization, not general subscription analysis
  • User wants Redis-specific recommendations (SKU downgrade, failed caches, etc.)

Key capabilities:

  • Interactive subscription filtering (prefix, ID, or "all subscriptions")
  • Redis-specific optimization rules (failed caches, oversized tiers, missing tags)
  • Pre-built report templates for Redis cost analysis
  • Uses redis_list command

Report templates available:

Note: For general subscription-wide cost optimization (including Redis), continue with Step 2. For Redis-only focused analysis, follow the instructions in the Redis-specific reference document.

Step 1.6: Choose Analysis Scope (for Redis-specific analysis)

If performing Redis cost optimization, ask the user to select their analysis scope:

Prompt the user with these options:

  1. Specific Subscription ID - Analyze a single subscription
  2. Subscription Name - Use display name instead of ID
  3. Subscription Prefix - Analyze all subscriptions starting with a prefix (e.g., "CacheTeam")
  4. All My Subscriptions - Scan all accessible subscriptions
  5. Tenant-wide - Analyze entire organization

Wait for user response before proceeding to Step 2.

Step 2: Run Azure Quick Review

Run azqr to find orphaned resources (immediate cost savings):

📋 Reference: Azure Quick Review - Detailed instructions for running azqr scans

javascript
1// Use Azure MCP extension_azqr tool 2extension_azqr({ 3 subscription: "<SUBSCRIPTION_ID>", 4 "resource-group": "<RESOURCE_GROUP>" // optional 5})

What to look for in azqr results:

  • Orphaned resources: unattached disks, unused NICs, idle NAT gateways
  • Over-provisioned resources: excessive retention periods, oversized SKUs
  • Missing cost tags: resources without proper cost allocation

Note: The Azure Quick Review reference document includes instructions for creating filter configurations, saving output to the output/ folder, and interpreting results for cost optimization.

Step 3: Discover Resources

List all resources in the subscription using Azure MCP tools or CLI:

powershell
1# Get subscription info 2az account show 3 4# List all resources 5az resource list --subscription "<SUBSCRIPTION_ID>" --resource-group "<RESOURCE_GROUP>" 6 7# Use MCP tools for specific services (preferred): 8# - Storage accounts, Cosmos DB, Key Vaults: use Azure MCP tools 9# - Redis caches: use mcp_azure_mcp_redis tool (see ./references/azure-redis.md) 10# - Web apps, VMs, SQL: use az CLI commands

Step 4: Query Actual Costs

Get actual cost data from Azure Cost Management API (last 30 days):

Create cost query file:

Create temp/cost-query.json with:

json
1{ 2 "type": "ActualCost", 3 "timeframe": "Custom", 4 "timePeriod": { 5 "from": "<START_DATE>", 6 "to": "<END_DATE>" 7 }, 8 "dataset": { 9 "granularity": "None", 10 "aggregation": { 11 "totalCost": { 12 "name": "Cost", 13 "function": "Sum" 14 } 15 }, 16 "grouping": [ 17 { 18 "type": "Dimension", 19 "name": "ResourceId" 20 } 21 ] 22 } 23}

Action Required: Calculate <START_DATE> (30 days ago) and <END_DATE> (today) in ISO 8601 format (e.g., 2025-11-03T00:00:00Z).

Execute cost query:

powershell
1# Create temp folder 2New-Item -ItemType Directory -Path "temp" -Force 3 4# Query using REST API (more reliable than az costmanagement query) 5az rest --method post ` 6 --url "https://management.azure.com/subscriptions/<SUBSCRIPTION_ID>/resourceGroups/<RESOURCE_GROUP>/providers/Microsoft.CostManagement/query?api-version=2023-11-01" ` 7 --body '@temp/cost-query.json'

Important: Save the query results to output/cost-query-result<timestamp>.json for audit trail.

Step 5: Validate Pricing

Fetch current pricing from official Azure pricing pages using fetch_webpage:

javascript
1// Validate pricing for key services 2fetch_webpage({ 3 urls: ["https://azure.microsoft.com/en-us/pricing/details/container-apps/"], 4 query: "pricing tiers and costs" 5})

Key services to validate:

Important: Check for free tier allowances - many Azure services have generous free limits that may explain $0 costs.

Step 6: Collect Utilization Metrics

Query Azure Monitor for utilization data (last 14 days) to support rightsizing recommendations:

powershell
1# Calculate dates for last 14 days 2$startTime = (Get-Date).AddDays(-14).ToString("yyyy-MM-ddTHH:mm:ssZ") 3$endTime = Get-Date -Format "yyyy-MM-ddTHH:mm:ssZ" 4 5# VM CPU utilization 6az monitor metrics list ` 7 --resource "<RESOURCE_ID>" ` 8 --metric "Percentage CPU" ` 9 --interval PT1H ` 10 --aggregation Average ` 11 --start-time $startTime ` 12 --end-time $endTime 13 14# App Service Plan utilization 15az monitor metrics list ` 16 --resource "<RESOURCE_ID>" ` 17 --metric "CpuTime,Requests" ` 18 --interval PT1H ` 19 --aggregation Total ` 20 --start-time $startTime ` 21 --end-time $endTime 22 23# Storage capacity 24az monitor metrics list ` 25 --resource "<RESOURCE_ID>" ` 26 --metric "UsedCapacity,BlobCount" ` 27 --interval PT1H ` 28 --aggregation Average ` 29 --start-time $startTime ` 30 --end-time $endTime

Step 7: Generate Optimization Report

Create a comprehensive cost optimization report in the output/ folder:

Use the create_file tool with path output/costoptimizereport<YYYYMMDD_HHMMSS>.md:

Report Structure:

markdown
1# Azure Cost Optimization Report 2**Generated**: <timestamp> 3 4## Executive Summary 5- Total Monthly Cost: $X (💰 ACTUAL DATA) 6- Top Cost Drivers: [List top 3 resources with Azure Portal links] 7 8## Cost Breakdown 9[Table with top 10 resources by cost, including Azure Portal links] 10 11## Free Tier Analysis 12[Resources operating within free tiers showing $0 cost] 13 14## Orphaned Resources (Immediate Savings) 15[From azqr - resources that can be deleted immediately] 16- Resource name with Portal link - $X/month savings 17 18## Optimization Recommendations 19 20### Priority 1: High Impact, Low Risk 21[Example: Delete orphaned resources] 22- 💰 ACTUAL cost: $X/month 23- 📊 ESTIMATED savings: $Y/month 24- Commands to execute (with warnings) 25 26### Priority 2: Medium Impact, Medium Risk 27[Example: Rightsize VM from D4s_v5 to D2s_v5] 28- 💰 ACTUAL baseline: D4s_v5, $X/month 29- 📈 ACTUAL metrics: CPU 8%, Memory 30% 30- 💵 VALIDATED pricing: D4s_v5 $Y/hr, D2s_v5 $Z/hr 31- 📊 ESTIMATED savings: $S/month 32- Commands to execute 33 34### Priority 3: Long-term Optimization 35[Example: Reserved Instances, Storage tiering] 36 37## Total Estimated Savings 38- Monthly: $X 39- Annual: $Y 40 41## Implementation Commands 42[Safe commands with approval warnings] 43 44## Validation Appendix 45 46### Data Sources and Files 47- **Cost Query Results**: `output/cost-query-result<timestamp>.json` 48 - Raw cost data from Azure Cost Management API 49 - Audit trail proving actual costs at report generation time 50 - Keep for at least 12 months for historical comparison 51 - Contains every resource's exact cost over the analysis period 52- **Pricing Sources**: [Links to Azure pricing pages] 53- **Free Tier Allowances**: [Applicable allowances] 54 55> **Note**: The `temp/cost-query.json` file (if present) is a temporary query template and can be safely deleted. All permanent audit data is in the `output/` folder.

Portal Link Format:

https://portal.azure.com/#@<TENANT_ID>/resource/subscriptions/<SUBSCRIPTION_ID>/resourceGroups/<RESOURCE_GROUP>/providers/<RESOURCE_PROVIDER>/<RESOURCE_TYPE>/<RESOURCE_NAME>/overview

Step 8: Save Audit Trail

Save all cost query results for validation:

Use the create_file tool with path output/cost-query-result<YYYYMMDD_HHMMSS>.json:

json
1{ 2 "timestamp": "<ISO_8601>", 3 "subscription": "<SUBSCRIPTION_ID>", 4 "resourceGroup": "<RESOURCE_GROUP>", 5 "queries": [ 6 { 7 "queryType": "ActualCost", 8 "timeframe": "MonthToDate", 9 "query": { }, 10 "response": { } 11 } 12 ] 13}

Step 9: Clean Up Temporary Files

Remove temporary query files and folder after the report is generated:

powershell
1# Delete entire temp folder (no longer needed) 2Remove-Item -Path "temp" -Recurse -Force -ErrorAction SilentlyContinue

Note: The temp/cost-query.json file is only needed during API execution. The actual query and results are preserved in output/cost-query-result*.json for audit purposes.

Output

The skill generates:

  1. Cost Optimization Report (output/costoptimizereport<timestamp>.md)

    • Executive summary with total costs and top drivers
    • Detailed cost breakdown with Azure Portal links
    • Prioritized recommendations with actual data and estimated savings
    • Implementation commands with safety warnings
  2. Cost Query Results (output/cost-query-result<timestamp>.json)

    • Audit trail of all cost queries and responses
    • Validation evidence for recommendations

Important Notes

Data Classification

  • 💰 ACTUAL DATA = Retrieved from Azure Cost Management API
  • 📈 ACTUAL METRICS = Retrieved from Azure Monitor
  • 💵 VALIDATED PRICING = Retrieved from official Azure pricing pages
  • 📊 ESTIMATED SAVINGS = Calculated based on actual data and validated pricing

Best Practices

  • Always query actual costs first - never estimate or assume
  • Validate pricing from official sources - account for free tiers
  • Use REST API for cost queries (more reliable than az costmanagement query)
  • Save audit trail - include all queries and responses
  • Include Azure Portal links for all resources
  • Use UTF-8 encoding when creating report files
  • For costs < $10/month, emphasize operational improvements over financial savings
  • Never execute destructive operations without explicit approval

Common Pitfalls

  • Assuming costs: Always query actual data from Cost Management API
  • Ignoring free tiers: Many services have generous allowances (e.g., Container Apps: 180K vCPU-sec free/month)
  • Using wrong date ranges: 30 days for costs, 14 days for utilization
  • Broken Portal links: Verify tenant ID and resource ID format
  • Cost query failures: Use az rest with JSON body, not az costmanagement query

Safety Requirements

  • Get approval before deleting resources
  • Test changes in non-production first
  • Provide dry-run commands for validation
  • Include rollback procedures
  • Monitor impact after implementation

Verwandte Fähigkeiten

Looking for an alternative to azure-cost-optimization or another community skill for your workflow? Explore these related open-source skills.

Alle anzeigen

openclaw-release-maintainer

Logo of openclaw
openclaw

Lokalisierte Zusammenfassung: 🦞 # OpenClaw Release Maintainer Use this skill for release and publish-time workflow. It covers ai, assistant, crustacean workflows. This AI agent skill supports Claude Code, Cursor, and Windsurf workflows.

333.8k
0
Künstliche Intelligenz

widget-generator

Logo of f
f

Lokalisierte Zusammenfassung: Generate customizable widget plugins for the prompts.chat feed system # Widget Generator Skill This skill guides creation of widget plugins for prompts.chat . It covers ai, artificial-intelligence, awesome-list workflows. This AI agent skill supports Claude Code

149.6k
0
Künstliche Intelligenz

flags

Logo of vercel
vercel

Lokalisierte Zusammenfassung: The React Framework # Feature Flags Use this skill when adding or changing framework feature flags in Next.js internals. It covers blog, browser, compiler workflows. This AI agent skill supports Claude Code, Cursor, and Windsurf workflows.

138.4k
0
Browser

pr-review

Logo of pytorch
pytorch

Lokalisierte Zusammenfassung: Usage Modes No Argument If the user invokes /pr-review with no arguments, do not perform a review . It covers autograd, deep-learning, gpu workflows. This AI agent skill supports Claude Code, Cursor, and Windsurf workflows.

98.6k
0
Entwickler