cost-governance Skill
通过预算、警报、标签和策略限制来治理 Azure 成本。适用场景:"Azure 预算健康状况"、"已配置预算超支"、"列出 Azure 预算"、"创建 Azure 预算"、"预算警报"、"预算覆盖率"、"缺少 CostCenter 标签"、"允许的 VM SKU"、"允许的 Azure 区域"、"这个 SKU 会被拒绝吗"、"成本护栏"。不适用于:规划目标预测、账单排查、定价、资源规格调整或承诺消费。
安装方式:把技能目录放入 ~/.claude/skills/(Claude Code)或在 claude.ai 设置中启用;也可复制右侧安装命令一键添加。
技能指令原文(SKILL.md)
Cost Governance
Quick Reference
| Intent | Workflow | Primary tools |
|--------|----------|---------------|
| Check budget status | Budget health | list_budgets, forecast_costs, query_costs, list_alerts |
| Configure a budget | Budget setup | Cost tools, create_budget |
| Review guardrails | Guardrails | Resource Graph, list_budgets |
When to Use This Skill
Use for budgets, alerts, tags, and policy.
MCP Tools
Use cost tools for budgets; Resource Graph for guardrails. Writes need
confirmed scope, amount, thresholds, and recipients. Fallback:
API mappings.
Workflow
- Confirm scope and load the matching workflow.
- Never transform MCP results in a shell or interpreter; request tool-side
filtering or bounded follow-up queries.
- Distinguish access failures from empty results.
- Report gaps without implying budgets cap spend.
Error Handling
| Error | Action |
|-------|--------|
| Access denied | Name missing permission. |
| No budget or forecast | Report unavailable data, not zero. |
| Multiple currencies | Never sum or compare across currencies. |
| Write conflict | Preserve the budget. |
| Server error | Retry once; then stop with the trace ID. |