Token导航 LogoToken导航

Agent Skill · 研究检索

az-cost-optimize(az 成本优化)

az-cost-optimize 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

az-cost-optimize 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为调用外部服务;许可证信息还不明确,第三方扫描已通过,按安装量在研究检索类的 73,675 个 Skill 里排第 699。

总安装 195,216周安装 8,293GitHub Stars 31,687下载 68,392核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:az-cost-optimize(az 成本优化)
来源仓库:https://github.com/github/awesome-copilot
仓库路径:skills/az-cost-optimize
安装命令:
npx skills add https://github.com/github/awesome-copilot --skill az-cost-optimize
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/github/awesome-copilot --skill az-cost-optimize

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

分析 Azure 资源和 IaC 文件以确定成本优化,创建跟踪的 GitHub 问题以供实施。

跨订阅和资源组发现 Azure 资源,分析 IaC 文件(Bicep、Terraform、ARM 模板),并从 Log Analytics 收集使用指标以验证当前成本 生成基于证据的优化建议,并根据每月节省、实施工作和风险评估进行优先级评分 为每个优化机会创建单独的 GitHub 问题以及一个用于协调跟踪的 EPIC 问题,并使用特定的 Azure CLI 命令和实施步骤 支持基于 IaC 的修改和直接的 Azure CLI 修改,并根据检测到的基础结构文件提供关于使用哪种方法的明确指导

来源仓库内路径:skills/az-cost-optimize

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/github/awesome-copilot --skill az-cost-optimiz…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要调用外部服务,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

az-cost-optimize 怎么安装?

在终端执行 npx skills add https://github.com/github/awesome-copilot --skill az-cost-optimize。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

az-cost-optimize 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

az-cost-optimize 需要什么权限?

权限级别是调用外部服务。该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

az-cost-optimize 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

az-cost-optimize 用的人多吗?

公开数据是累计安装 195,216 次,近一周安装 8,293 次,下载 68,392 次,GitHub 31,687 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

az-cost-optimize 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。
  • 来源仓库有 31,687 星,维护活跃度相对可查。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
az-cost-optimize

az 成本优化 · 本页

195,21631,687调用外部服务未明确通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Azure Cost Optimize

This workflow analyzes Infrastructure-as-Code (IaC) files and Azure resources to generate cost optimization recommendations. It creates individual GitHub issues for each optimization opportunity plus one EPIC issue to coordinate implementation, enabling efficient tracking and execution of cost savings initiatives.

Prerequisites

  • Azure MCP server configured and authenticated
  • GitHub MCP server configured and authenticated
  • Target GitHub repository identified
  • Azure resources deployed (IaC files optional but helpful)
  • Prefer Azure MCP tools (azmcp-*) over direct Azure CLI when available

Workflow Steps

Step 1: Get Azure Best Practices

Action: Retrieve cost optimization best practices before analysis Tools: Azure MCP best practices tool Process:

  1. Load Best Practices:

- Execute azmcp-bestpractices-get to get some of the latest Azure optimization guidelines. This may not cover all scenarios but provides a foundation. - Use these practices to inform subsequent analysis and recommendations as much as possible - Reference best practices in optimization recommendations, either from the MCP tool output or general Azure documentation

Step 2: Discover Azure Infrastructure

Action: Dynamically discover and analyze Azure resources and configurations Tools: Azure MCP tools + Azure CLI fallback + Local file system access Process:

  1. Resource Discovery:

- Execute azmcp-subscription-list to find available subscriptions - Execute azmcp-group-list --subscription <subscription-id> to find resource groups - Get a list of all resources in the relevant group(s): - Use az resource list --subscription <id> --resource-group <name> - For each resource type, use MCP tools first if possible, then CLI fallback: - azmcp-cosmos-account-list --subscription <id> - Cosmos DB accounts - azmcp-storage-account-list --subscription <id> - Storage accounts - azmcp-monitor-workspace-list --subscription <id> - Log Analytics workspaces - azmcp-keyvault-key-list - Key Vaults - az webapp list - Web Apps (fallback - no MCP tool available) - az appservice plan list - App Service Plans (fallback) - az functionapp list - Function Apps (fallback) - az sql server list - SQL Servers (fallback) - az redis list - Redis Cache (fallback) - ... and so on for other resource types

  1. IaC Detection:

- Use file_search to scan for IaC files: "**/*.bicep", "**/*.tf", "/main.json", "/*template*.json" - Parse resource definitions to understand intended configurations - Compare against discovered resources to identify discrepancies - Note presence of IaC files for implementation recommendations later on - Do NOT use any other file from the repository, only IaC files. Using other files is NOT allowed as it is not a source of truth. - If you do not find IaC files, then STOP and report no IaC files found to the user.

  1. Configuration Analysis:

- Extract current SKUs, tiers, and settings for each resource - Identify resource relationships and dependencies - Map resource utilization patterns where available

Step 3: Collect Usage Metrics & Validate Current Costs

Action: Gather utilization data AND verify actual resource costs Tools: Azure MCP monitoring tools + Azure CLI Process:

  1. Find Monitoring Sources:

- Use azmcp-monitor-workspace-list --subscription <id> to find Log Analytics workspaces - Use azmcp-monitor-table-list --subscription <id> --workspace <name> --table-type "CustomLog" to discover available data

  1. Execute Usage Queries: // CPU utilization for App Services AppServiceAppLogs | where TimeGenerated > ago(7d) | summarize avg(CpuTime) by Resource, bin(TimeGenerated, 1h) // Cosmos DB RU consumption AzureDiagnostics | where ResourceProvider == "MICROSOFT.DOCUMENTDB" | where TimeGenerated > ago(7d) | summarize avg(RequestCharge) by Resource // Storage account access patterns StorageBlobLogs | where TimeGenerated > ago(7d) | summarize RequestCount=count() by AccountName, bin(TimeGenerated, 1d)

- Use azmcp-monitor-log-query with these predefined queries: - Query: "recent" for recent activity patterns - Query: "errors" for error-level logs indicating issues - For custom analysis, use KQL queries:

  1. Calculate Baseline Metrics:

- CPU/Memory utilization averages - Database throughput patterns - Storage access frequency - Function execution rates

  1. VALIDATE CURRENT COSTS:

- Using the SKU/tier configurations discovered in Step 2 - Look up current Azure pricing at https://azure.microsoft.com/pricing/ or use az billing commands - Document: Resource → Current SKU → Estimated monthly cost - Calculate realistic current monthly total before proceeding to recommendations

Step 4: Generate Cost Optimization Recommendations

Action: Analyze resources to identify optimization opportunities Tools: Local analysis using collected data Process:

  1. Apply Optimization Patterns based on resource types found: Compute Optimizations: Database Optimizations: Storage Optimizations: Infrastructure Optimizations:

- App Service Plans: Right-size based on CPU/memory usage - Function Apps: Premium → Consumption plan for low usage - Virtual Machines: Scale down oversized instances - Cosmos DB: - Provisioned → Serverless for variable workloads - Right-size RU/s based on actual usage - SQL Database: Right-size service tiers based on DTU usage - Implement lifecycle policies (Hot → Cool → Archive) - Consolidate redundant storage accounts - Right-size storage tiers based on access patterns - Remove unused/redundant resources - Implement auto-scaling where beneficial - Schedule non-production environments

  1. Calculate Evidence-Based Savings:

- Current validated cost → Target cost = Savings - Document pricing source for both current and target configurations

  1. Calculate Priority Score for each recommendation: Priority Score = (Value Score × Monthly Savings) / (Risk Score × Implementation Days) High Priority: Score > 20 Medium Priority: Score 5-20 Low Priority: Score < 5
  2. Validate Recommendations:

- Ensure Azure CLI commands are accurate - Verify estimated savings calculations - Assess implementation risks and prerequisites - Ensure all savings calculations have supporting evidence

Step 5: User Confirmation

Action: Present summary and get approval before creating GitHub issues Process:

  1. Display Optimization Summary: 🎯 Azure Cost Optimization Summary 📊 Analysis Results: • Total Resources Analyzed: X • Current Monthly Cost: $X • Potential Monthly Savings: $Y • Optimization Opportunities: Z • High Priority Items: N 🏆 Recommendations: 1. [Resource]: [Current SKU] → [Target SKU] = $X/month savings - [Risk Level] | [Implementation Effort] 2. [Resource]: [Current Config] → [Target Config] = $Y/month savings - [Risk Level] | [Implementation Effort] 3. [Resource]: [Current Config] → [Target Config] = $Z/month savings - [Risk Level] | [Implementation Effort]... and so on 💡 This will create: • Y individual GitHub issues (one per optimization) • 1 EPIC issue to coordinate implementation ❓ Proceed with creating GitHub issues? (y/n)
  2. Wait for User Confirmation: Only proceed if user confirms

Step 6: Create Individual Optimization Issues

Action: Create separate GitHub issues for each optimization opportunity. Label them with "cost-optimization" (green color), "azure" (blue color). MCP Tools Required: create_issue for each recommendation Process:

  1. Create Individual Issues using this template: Title Format: [COST-OPT] [Resource Type] - [Brief Description] - $X/month savings Body Template: ``` ## 💰 Cost Optimization: [Brief Title] **Monthly Savings**: $X | **Risk Level**: [Low/Medium/High] | **Implementation Effort**: X days ### 📋 Description [Clear explanation of the optimization and why it's needed] ### 🔧 Implementation **IaC Files Detected**: [Yes/No - based on file_search results] `bash # If IaC files found: Show IaC modifications + deployment # File: infrastructure/bicep/modules/app-service.bicep # Change: sku.name: 'S3' → 'B2' az deployment group create --resource-group [rg] --template-file infrastructure/bicep/main.bicep # If no IaC files: Direct Azure CLI commands + warning # ⚠️ No IaC files found. If they exist elsewhere, modify those instead. az appservice plan update --name [plan] --sku B2 `` 📊 Evidence ✅ Validation Steps ⚠️ Risks & Considerations **Priority Score**: X | **Value**: X/10 | **Risk**: X/10 `

- Current Configuration: [details] - Usage Pattern: [evidence from monitoring data] - Cost Impact: $X/month → $Y/month - Best Practice Alignment: [reference to Azure best practices if applicable] - Test in non-production environment - Verify no performance degradation - Confirm cost reduction in Azure Cost Management - Update monitoring and alerts if needed - [Risk 1 and mitigation] - [Risk 2 and mitigation]

Step 7: Create EPIC Coordinating Issue

Action: Create master issue to track all optimization work. Label it with "cost-optimization" (green color), "azure" (blue color), and "epic" (purple color). MCP Tools Required: create_issue for EPIC Note about mermaid diagrams: Ensure you verify mermaid syntax is correct and create the diagrams taking accessibility guidelines into account (styling, colors, etc.). Process:

  1. Create EPIC Issue: Title: [EPIC] Azure Cost Optimization Initiative - $X/month potential savings Body Template: ``` # 🎯 Azure Cost Optimization EPIC **Total Potential Savings**: $X/month | **Implementation Timeline**: X weeks ## 📊 Executive Summary - **Resources Analyzed**: X - **Optimization Opportunities**: Y - **Total Monthly Savings Potential**: $X - **High Priority Items**: N ## 🏗️ Current Architecture Overview `mermaid graph TB subgraph "Resource Group: [name]" [Generated architecture diagram showing current resources and costs] end `` 📋 Implementation Tracking 🚀 High Priority (Implement First) ⚡ Medium Priority 🔄 Low Priority (Nice to Have) 📈 Progress Tracking 🎯 Success Criteria 📝 Notes `

- #[issue-number]: [Title] - $X/month savings - #[issue-number]: [Title] - $X/month savings - #[issue-number]: [Title] - $X/month savings - #[issue-number]: [Title] - $X/month savings - #[issue-number]: [Title] - $X/month savings - Completed: 0 of Y optimizations - Savings Realized: $0 of $X/month - Implementation Status: Not Started - All high-priority optimizations implemented - >80% of estimated savings realized - No performance degradation observed - Cost monitoring dashboard updated - Review and update this EPIC as issues are completed - Monitor actual vs. estimated savings - Consider scheduling regular cost optimization reviews

Error Handling

  • Cost Validation: If savings estimates lack supporting evidence or seem inconsistent with Azure pricing, re-verify configurations and pricing sources before proceeding
  • Azure Authentication Failure: Provide manual Azure CLI setup steps
  • No Resources Found: Create informational issue about Azure resource deployment
  • GitHub Creation Failure: Output formatted recommendations to console
  • Insufficient Usage Data: Note limitations and provide configuration-based recommendations only

Success Criteria

  • ✅ All cost estimates verified against actual resource configurations and Azure pricing
  • ✅ Individual issues created for each optimization (trackable and assignable)
  • ✅ EPIC issue provides comprehensive coordination and tracking
  • ✅ All recommendations include specific, executable Azure CLI commands
  • ✅ Priority scoring enables ROI-focused implementation
  • ✅ Architecture diagram accurately represents current state
  • ✅ User confirmation prevents unwanted issue creation

平台分布

Codex

36.69%
按下载量换算25,093

Claude

28.13%
按下载量换算19,239

Cursor

21.6%
按下载量换算14,773

Gemini CLI

9.92%
按下载量换算6,784

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

调用外部服务

该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills