Agent Skills
› microsoft/skills
› cost-governance
cost-governance
GitHub用于管理Azure云成本治理,包括预算设置、警报配置、标签策略及资源限制。涵盖预算健康检查、覆盖度分析及合规性审查,不涉及预测或定价规划。
Trigger Scenarios
Azure budget health
configured budget overrun
list Azure budgets
create Azure budget
budget alerts
budget coverage
missing CostCenter tags
allowed VM SKUs
allowed Azure regions
would this SKU be denied
cost guardrails
Install
npx skills add microsoft/skills --skill cost-governance -g -y
SKILL.md
Frontmatter
{
"name": "cost-governance",
"license": "MIT",
"metadata": {
"author": "Microsoft",
"version": "1.0.1"
},
"description": "Govern Azure costs with budgets, alerts, tags, and policy restrictions. WHEN: \"Azure budget health\", \"configured budget overrun\", \"list Azure budgets\", \"create Azure budget\", \"budget alerts\", \"budget coverage\", \"missing CostCenter tags\", \"allowed VM SKUs\", \"allowed Azure regions\", \"would this SKU be denied\", \"cost guardrails\". DO NOT USE FOR: planning-target forecasts, bill investigations, pricing, rightsizing, or commitments."
}
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. |
Version History
- 23d0dac Current 2026-09-28 00:59


