Token导航 LogoToken导航

Agent Skill · 云服务

azure-cost(Azure cost 部署)

用于围绕 GitHub 仓库、Issue、Pull Request、分支、提交和代码协作流程提供辅助能力。它适合让 Agent 查询项目状态、整理变更、辅助创建或检查协作事项,并把仓库中的信息转成可执行的下一步。使用时需要区分只读查询和写入操作;涉及创建 PR、修改 Issue、推送分支或访问私有仓库时,应确认 token 权限、目标仓库范围和用户授权。

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

总安装 2,271周安装 91GitHub Stars 201下载 735核验 2026-05-01

安装说明

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

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/microsoft/github-copilot-for-azure --skill azure-cost

这个 Skill 是做什么的

云服务类 Skill 对接各家云平台的接口,用来查询资源、估算成本和执行变更。

用于围绕 GitHub 仓库、Issue、Pull Request 和代码协作流程提供辅助能力。适合查询项目状态、整理变更或辅助创建协作事项。通过 npx skills add 命令从指定 GitHub 仓库安装并使用。涉及写入操作时需确认 token 权限、仓库范围和用户授权。

azure-cost 属于云服务类 Skill,可作为该场景下的辅助能力补充。

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

上手步骤

4 步
  1. 1

    确认自己的宿主工具

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

  2. 2

    拿到安装命令

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

  3. 3

    安装后重启宿主

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

  4. 4

    按最小权限试用

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

常见问题

6 条

azure-cost 怎么安装?

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

azure-cost 支持哪些 AI 工具?

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

azure-cost 需要什么权限?

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

azure-cost 是免费的吗?

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

azure-cost 用的人多吗?

公开数据是累计安装 2,271 次,近一周安装 91 次,下载 735 次,GitHub 201 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

azure-cost 安全吗?

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

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

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

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

适不适合你

更适合

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

不太适合

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

云服务类 Skill 对比

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

Azure 部署 · Codex、Claude

6,641,856764调用外部服务未明确通过
azure-diagnostics

Azure diagnostics 问题管理 · Codex、Claude

6,575,520764调用外部服务未明确通过
azure-aigateway

Azure aigateway 部署 · Codex、Claude

6,553,272764调用外部服务未明确有提醒
azure-ai

Azure AI 搜索 · Codex、Claude

6,514,128764调用外部服务未明确通过
azure-cloud-migrate

Azure Cloud migrate 部署 · Codex、Claude

6,506,784764调用外部服务未明确有提醒
azure-cost

Azure cost 部署 · 本页

2,271201调用外部服务未明确通过

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

SKILL.md 原文

Azure Cost Management Skill

Unified skill for all Azure cost management tasks: querying historical costs, forecasting future spending, and optimizing to reduce waste.

When to Use This Skill

Activate this skill when user wants to:

  • Query or analyze Azure costs (how much am I spending, show my bill, cost breakdown)
  • Break down costs by service, resource, location, or tag
  • Analyze cost trends over time
  • Forecast future Azure spending or project end-of-month costs
  • Optimize Azure costs, reduce spending, or find savings
  • Find orphaned or unused resources
  • Rightsize Azure VMs, containers, or services
  • Generate cost optimization reports

Quick Reference

PropertyValue
Query API EndpointPOST {scope}/providers/Microsoft.CostManagement/query?api-version=2023-11-01
Forecast API EndpointPOST {scope}/providers/Microsoft.CostManagement/forecast?api-version=2023-11-01
MCP Toolsazure__documentation, azure__extension_cli_generate, azure__get_azure_bestpractices
CLIaz rest, az monitor metrics list, az resource list
Required RoleCost Management Reader + Monitoring Reader + Reader on scope

MCP Tools

ToolDescriptionParametersWhen to Use
azure__documentationSearch Azure documentationquery (Required): search termsResearch Cost Management API parameters and options
azure__extension_cli_generateGenerate Azure CLI commandsintent (Required): task description, cli-type (Required): "az"Construct az rest commands for cost queries
azure__get_azure_bestpracticesGet Azure best practicesintent (Required): optimization contextInform query design with cost management best practices
azure__extension_azqrRun Azure Quick Review compliance scansubscription (Required): subscription ID, resource-group (Optional): resource group nameFind orphaned resources and cost optimization opportunities
azure__aksAzure Kubernetes Service operationsvaries by sub-commandAKS cost analysis: list clusters, get node pools, inspect configuration
💡 Tip: Prefer MCP tools over direct CLI commands. Use az rest only when MCP tools don't cover the specific operation.

Routing

Read the user's request and follow the appropriate workflow below.

User IntentWorkflowExample Prompts
Understand current costsCost Query Workflow"how much am I spending", "cost by service", "show my bill"
Reduce costs / find wasteCost Optimization Workflow"optimize costs", "find orphaned resources", "reduce spending"
Project future costsCost Forecast Workflow"forecast costs", "end of month estimate", "how much will I spend"
Full cost pictureAll three workflows combined"give me the full picture of my Azure costs"
Important: When optimizing costs, always present the total bill and cost breakdown alongside optimization recommendations.

Scope Reference (Shared Across All Workflows)

ScopeURL Pattern
Subscription/subscriptions/<subscription-id>
Resource Group/subscriptions/<subscription-id>/resourceGroups/<resource-group-name>
Management Group/providers/Microsoft.Management/managementGroups/<management-group-id>
Billing Account/providers/Microsoft.Billing/billingAccounts/<billing-account-id>
Billing Profile/providers/Microsoft.Billing/billingAccounts/<billing-account-id>/billingProfiles/<billing-profile-id>
💡 Tip: These are scope paths only — not complete URLs. Combine with the API endpoint and version.

Part 1: Cost Query Workflow

For the full cost query workflow (scope selection, report types, timeframes, dataset configuration, API calls, pagination, guardrails, examples, and error handling), see:

📄 Cost Query Workflow


Part 2: Cost Optimization Workflow

For the full cost optimization workflow (prerequisites, best practices, Redis/AKS-specific analysis, Azure Quick Review, resource discovery, cost queries, pricing validation, utilization metrics, and report generation), see:

📄 Cost Optimization Workflow


Part 3: Cost Forecast Workflow

For the full cost forecast workflow (scope selection, time period rules, dataset configuration, forecast-specific options, API calls, response interpretation, guardrails, and error handling), see:

📄 Cost Forecast Workflow


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
  • Always present the total bill alongside optimization recommendations
  • Validate pricing from official sources — account for free tiers
  • Use REST API for cost queries (more reliable than az costmanagement query)
  • Always include the ClientType: GitHubCopilotForAzure header on all Cost Management API requests (--headers "ClientType=GitHubCopilotForAzure" in az rest)
  • Save audit trail — include all queries and responses
  • Include Azure Portal links for all resources
  • For costs < $10/month, emphasize operational improvements over financial savings
  • Never execute destructive operations without explicit approval
  • On 429 responses, check all x-ms-ratelimit-microsoft.costmanagement-*-retry-after headers (qpu-retry-after, entity-retry-after, tenant-retry-after), wait for the longest value, and do not retry until that duration has elapsed. The per-scope limit (4 requests/minute) is the most restrictive.

Common Pitfalls

  • Assuming costs: Always query actual data from Cost Management API
  • Ignoring free tiers: Many services have generous allowances
  • Using wrong date ranges: 30 days for costs, 14 days for utilization
  • Not showing the bill: Always present cost breakdown alongside optimization recommendations
  • 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

SDK Quick References

  • Redis Management: .NET

适合场景

01

Azure 成本分析

02

查找闲置资源

03

生成降本报告

04

云资源优化

能力概览

能力 1

分析 Azure 成本和资源利用

能力 2

识别闲置或过度配置资源

能力 3

生成优化建议和报告

能力 4

提示所需权限和审计输出

平台分布

Codex

35.45%
按下载量换算261

Claude

31.8%
按下载量换算234

Cursor

17.89%
按下载量换算131

Gemini CLI

9.34%
按下载量换算69

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

调用外部服务

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

安装前确认

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

继续浏览同类 Skills