Token导航 LogoToken导航TokenDH.com
云服务external-servicegithub未标认证来源可访问许可证需确认审计通过

azure-costAzure cost 部署

Agent Skill

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

总安装

2,271

周安装

91

GitHub Stars

201

下载量

735
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 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

简介

用于围绕 GitHub 仓库、Issue、Pull Request 和代码协作流程提供辅助能力。

  • 适合查询项目状态、整理变更或辅助创建协作事项。
  • 通过 npx skills add 命令从指定 GitHub 仓库安装并使用。
  • 涉及写入操作时需确认 token 权限、仓库范围和用户授权。
  • azure-cost 属于云服务类 Skill,可作为该场景下的辅助能力补充。

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

提示所需权限和审计输出

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

35.45%
按下载量换算261

Claude

31.8%
按下载量换算234

Cursor

17.89%
按下载量换算131

Gemini CLI

9.34%
按下载量换算69

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

external-service

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

安装前确认

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

来源信息

继续浏览同类 Skills