3.1k microsoft

cost-optimization Skill

优化现有 Azure 资源,分析预留实例或节省计划。适用场景:"优化 Azure 成本"、"降低云支出"、"调整资源规格"、"查找闲置资源"、"孤立磁盘"、"已删除 VM 仍被计费"、"公网 IP 仍在计费"、"预留实例利用率"、"节省计划覆盖率"、"承诺消费建议"、"为什么按需计费还在扣费"。不适用于:成本激增、预测、价格估算、预算或治理。

安装方式:把技能目录放入 ~/.claude/skills/(Claude Code)或在 claude.ai 设置中启用;也可复制右侧安装命令一键添加。

查看源码

技能指令原文(SKILL.md)

Azure Cost Optimization

Quick Reference

| Intent | Workflow | Primary tools |
|--------|----------|---------------|
| Reduce waste or rightsize | Optimization | Cost and Resource Graph tools |
| Review commitments | Commitments | list_benefit_utilization, list_reservation_transactions, get_benefit_recommendations |

When to Use This Skill

Use for waste, rightsizing, and commitments.

MCP Tools

Use cost and Resource Graph tools for optimization and benefit tools for
commitments. Validate queries. Fallback: API mappings.

Workflow

  1. Confirm scope, period, currency, and commitment intent.
  2. Load only the matching workflow above.
  3. Never transform MCP results in a shell or interpreter; request validated

server-side projection, aggregation, or bounded follow-up queries.

  1. Separate measured cost, reported savings, and qualitative opportunities.
  2. Recommend changes only; do not delete, resize, purchase, or deploy resources.

Error Handling

| Error | Action |
|-------|--------|
| Access denied | Name the scope and permission. |
| Multiple currencies | Group and report each currency separately. |
| Missing evidence | State the gap; do not invent values. |
| Server error | Retry once; then report the trace ID. |