microsoft/azure-skills

cost-optimizationmicrosoft/azure-skills

用实际成本与资源证据寻找节省机会

  • SKILL.md 已保存
  • 中文用法已整理
  • 安装与运行未实测
先判断是否解决你的问题

cost-optimization 是什么?

cost-optimization 面向已经存在的 Azure 资源,调查闲置容量、孤立磁盘和公网 IP 等浪费,并分析 Reservations 或 Savings Plans 的利用率、覆盖与建议。它产出优化建议,源文禁止直接删除、缩容、购买或部署。

中文说明由本站依据来源整理;英文原文保留在页面下方。

同名项目,请核对仓库和目录

按客户端选择安装入口

怎么接入你的 Agent?

  1. 定位完整 Skill 目录

    打开本项目来源,核对 SKILL.md 及其引用的脚本和资料。

  2. 交给你正在用的 Agent

    在下面选择客户端,展开并复制安装指令,让 Agent 读取来源后选择安装方式。

  3. 确认识别,再做具体任务

    让 Agent 回报安装目录和识别到的名称 cost-optimization,然后按本页使用示例提供材料。

展开并复制给 Codex 的安装指令
发送给 Codex

安装并检查 cost-optimization

请在 Codex 的当前工作环境中安装并检查 cost-optimization 这个 Skill。

项目身份:microsoft/azure-skills / cost-optimization
来源:https://github.com/microsoft/azure-skills/blob/968f7bfaa01672e782dae2c6bab4fb9505ae047a/.github/plugins/azure-cost/skills/cost-optimization/SKILL.md
已定位的源文件:.github/plugins/azure-cost/skills/cost-optimization/SKILL.md

1. 先阅读真实 SKILL.md 和它引用的必要文件,确认触发条件、安装方式、依赖与权限;尊重源文件要求的审批步骤。
2. 按当前客户端支持的方式安装完整 Skill 目录,保留已有配置,不只复制一段提示词。涉及缺失凭证、目标目录或权限时先列出缺项并向我确认。
3. 安装后回读实际目录、Skill 名称和识别结果,说明哪些步骤已完成,哪些只是文档检查,不得把安装成功当作任务已经实测。
4. 如来源提供了可安全验证的示例,在我提供所需输入后做一个最小任务;创建、修改、删除、部署或发送内容前,按源文件和我的授权执行。
准备输入,再按步骤执行

装好以后,具体怎么用?

准备哪些材料

  • 提供订阅或资源组、分析期间和币种,并说明是否分析预留实例或 Savings Plans;需要成本、Resource Graph 与相应权益查询工具的读取权限。

会得到什么

  • 带范围、期间、证据和限制的优化机会列表,或预留权益与 Savings Plans 的利用率/覆盖分析。

实际使用顺序

  1. 先区分资源浪费/规格调整与承诺折扣问题,加载对应 optimization 或 commitments 工作流。
  2. 资源问题用成本与 Resource Graph 交叉检查;承诺问题用 list_benefit_utilization、list_reservation_transactions、get_benefit_recommendations。查询在工具端做已验证的投影和汇总。
  3. 把测得成本、工具报告的节省额、定性机会分栏呈现;数据缺少就指出缺项。输出建议与理由,不把候选资源直接删除或把折扣建议当购买指令。
使用示例

从一个具体任务开始

本站根据源文件编写的使用示例,未在本站实际运行。示例中的文件由你提供。

安装并识别 Skill 后发送

复制一个具体任务

教学任务:使用 cost-optimization,检查我选定资源组里删除 VM 后仍可能计费的孤立磁盘和公网 IP,按资源列出存在状态、实际费用证据与需人工确认的依赖。只读生成建议,不删除、不缩容;不同币种分开,没有费用数据时不要编造节省额。
预期结果

预期得到可追溯的浪费候选与待确认项;本站未对实际 Azure 资源执行此任务。

使用前先看这些限制

使用条件与边界

  • 该流程只建议变更,不自动删除、resize、购买承诺或部署资源。
  • 账单上涨调查、预测、报价和预算治理分属其他 Skill;定性机会不等于已实现节省。
针对这个 Skill 的疑问

常见问题

发现闲置资源后能直接清理吗?

不能按这个流程直接清理。源文件明确限制为建议;需要先确认资源依赖和业务用途,再另行授权实际变更。

需要核对时再展开原文

来源原文与资料状态

源文件
已保存 SKILL.md,抓取于 2026-11-16T12:36:35.145Z
中文使用说明
已针对下方源文件版本整理用途、用法和常见问题
安装与任务测试
本站未执行安装或任务测试
来源复核
本页中文用法已对照保存版本的完整 SKILL.md 阅读整理
展开 SKILL.md 原文、章节与历史收录资料

.github/plugins/azure-cost/skills/cost-optimization/SKILL.md · 抓取时间 2026-11-16T12:36:35.145Z

以下保留源文件的 description、章节及摘录,供核对中文说明;完整文件通过上方链接打开。

抓取成功不代表已完成安装或任务测试。

来源 description(原文)

Optimize existing Azure resources and analyze Reservations or Savings Plans. WHEN: "optimize Azure costs", "reduce cloud spending", "rightsize resources", "find idle resources", "orphaned disk", "deleted VM still charged", "public IP still charging", "reservation utilization", "Savings Plan coverage", "commitment recommendation", "why is pay-as-you-go still charged". DO NOT USE FOR: cost spikes, forecasts, pricing estimates, budgets, or governance.

查看源文件章节 / Source sections
  • 原文:Azure Cost Optimization
  • 原文:Quick Reference
  • 原文:When to Use This Skill
  • 原文:MCP Tools
  • 工作流程 / Workflow
  • 原文:Error Handling
原文:Quick Reference

| Intent | Workflow | Primary tools | |--------|----------|---------------| | Reduce waste or rightsize | [Optimization](references/optimization.md) | Cost and Resource Graph tools | | Review commitments | [Commitments](references/commitments.md) | `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](references/tool-fallback.md).

工作流程 / 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. 4. Separate measured cost, reported savings, and qualitative opportunities. 5. 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. |

相同源文件的其他来源(1)

以下 SKILL.md 的文件校验值与本页来源相同,合并保留来源记录。仓库内的其他文件、依赖和安装方式仍需分别核对。

文件 SHA256:daa95985eb65fade1c5bfd4de8280c864da06f56d9ce7633e032c1e7ae3717b5

仓库许可证记录:MIT;skill-declaration-captured-not-interpreted,查看来源。

SKILL.md原文description · 2026-11-16T12:36:35.145Z

Optimize existing Azure resources and analyze Reservations or Savings Plans. WHEN: "optimize Azure costs", "reduce cloud spending", "rightsize resources", "find idle resources", "orphaned disk", "deleted VM still charged", "public IP still charging", "reservation utilization", "Savings Plan coverage", "commitment recommendation", "why is pay-as-you-go still charged". DO NOT USE FOR: cost spikes, forecasts, pricing estimates, budgets, or governance.

查看历史简介来源

历史收录数据

来源仓库microsoft/azure-skills
Skill源路径.github/plugins/azure-cost/skills/cost-optimization/SKILL.md

安装前请让使用的Agent先读取这个SKILL.md及其所在目录,确认依赖和所需权限。此页不生成未经来源验证的安装命令。

返回 Skills 目录,按任务继续筛选 · MCP与Skills教程与资源