mcpField
C
cost-governance

cost-governance

github.com/microsoftCloud & DevOps1.6k202 installsUpdated today
Repository

About cost-governance

A skill for managing cloud cost governance, covering budgets, alerts, tags, and policy guardrails. It guides budget checks and setup while emphasizing confirmed scope and careful handling of currency and missing data.

Key features

  1. 01Budget status checks
  2. 02Budget configuration
  3. 03Guardrail reviews
  4. 04Scope confirmation for writes
  5. 05Currency and data-gap handling

Use cases

  1. 01Check budget health and forecasts
  2. 02Set up a budget with thresholds
  3. 03Review tags and policy guardrails

MCP support

Uses cost tools for budgets and Resource Graph for guardrail reviews. Writes require confirmed scope, amounts, thresholds, and recipients.

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/microsoft/azure-skills --skill cost-governance

After installing, type/cost-governancein Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

references/
budget-health.md
budget-setup.md
guardrails.md
tool-fallback.md

Details

From the project README

Cost Governance

Quick Reference

IntentWorkflowPrimary tools
Check budget statusBudget healthlist_budgets, forecast_costs, query_costs, list_alerts
Configure a budgetBudget setupCost tools, create_budget
Review guardrailsGuardrailsResource 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

  1. Confirm scope and load the matching workflow.
  2. Never transform MCP results in a shell or interpreter; request tool-side filtering or bounded follow-up queries.
  3. Distinguish access failures from empty results.
  4. Report gaps without implying budgets cap spend.

Error Handling

ErrorAction
Access deniedName missing permission.
No budget or forecastReport unavailable data, not zero.
Multiple currenciesNever sum or compare across currencies.
Write conflictPreserve the budget.
Server errorRetry once; then stop with the trace ID.

Comments

Markdown supported