Skill Press

No. 302 · cost-governance

Cost Governance

A field guide from Microsoft

Microsoft

When to use it

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.

Rank
No. 302 of 971
Installs
Not listed yet
Runs in
GitHub Copilot
Length
189 words · 1 min
Files
6
License
MIT

Get this skill

Download the skill folder (.zip, 6 KB) ↓ · SKILL.md only ↓

Agent prompt

Paste into a coding agent with terminal access. Check the upstream requirements for the skill you’re installing.

Prompt
Install the "cost-governance" Agent Skill by Microsoft, from https://github.com/microsoft/skills.

1. Fetch the whole folder .github/plugins/azure-cost/skills/cost-governance — SKILL.md plus every script, reference, and asset beside it, not just SKILL.md. For example:
   skill_checkout=$(mktemp -d)
   git init "$skill_checkout"
   git -C "$skill_checkout" fetch --depth 1 https://github.com/microsoft/skills.git b35d2c60fac796bfd2cfd14ad3f550c73e92d9bb
   git -C "$skill_checkout" checkout --detach FETCH_HEAD
2. Copy it into your skills directory as a folder named "cost-governance":
   - Claude Code: ~/.claude/skills/cost-governance/ (all projects) or .claude/skills/cost-governance/ (this project only)
   - Another agent: the directory you load Agent Skills from (folders containing a SKILL.md)
3. Check that cost-governance/SKILL.md exists and its frontmatter says name: cost-governance.
4. Read SKILL.md, then tell me in two or three sentences what the skill does and when it will trigger, and list any dependencies it mentions (Python packages, npm packages, CLIs) that aren't installed yet. Don't install them without asking.

skills CLI

One command; the skills.sh installer detects your agents (Claude Code, Cursor, Codex, and more).

Terminal
npx skills add https://github.com/microsoft/skills/tree/b35d2c60fac796bfd2cfd14ad3f550c73e92d9bb/.github/plugins/azure-cost/skills/cost-governance --skill cost-governance

Contents

  1. Quick Reference
  2. When to Use This Skill
  3. MCP Tools
  4. Workflow
  5. Error Handling

The skill, in full

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

  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

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.

More in Cloud & Infrastructure

All Cloud & Infrastructure skills →

More from Microsoft

From microsoft/skills at b35d2c6, MIT. Install counts from skills.sh.