agentleFS
MicrosoftKnown publishermicrosoft/finops-toolkit/src/templates/agent-skills/finops-multitool/SKILL.md

finops-multitool

Skill633 starsChanged 3 months agoMITView on GitHub

This skill should be used when the user asks to "scan for cost savings", "find orphaned resources", "find idle VMs", "check Azure Hybrid Benefit", "review tags", "tag coverage", "tag recommendations", "policy coverage", "cost by tag", "cost trend", "top resources by cost", "reservation recommendations", "commitment utilization", "realized savings", "budget status", "cost anomaly alerts", "Advisor cost recommendations", "billing structure", "contract info", or run a "FinOps assessment", "FinOps scan", or "cost optimization scan". Also use it proactively whenever the conversation turns to Azure cost, waste, savings, governance, or FinOps health and live data would answer the question better than a general explanation.

The file

We split this skill into the rules it gives an agent

2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Prefer the direct path for a single question.

    line 21
  2. Very specific:

    Low tag coverage is usually a naming problem: Before reporting a coverage percentage, check for casing and separator variants of the same …

    line 77

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

FinOps multitool

This is the routing hub for FinOps investigations. It answers "what should I look at next" rather than "how do I call this API" - it decides which investigation fits the question, tells you how to gather the data, warns you where the raw numbers mislead, and hands off to the skill that turns a finding into a decision.

Two ways to gather the data:

  • Interactively - Start-FinOpsMultitool launches a terminal UI with 26 selectable read-only scans, renders the results, and exports them. Four additional investigations are available as direct functions. Best when a person wants the full picture.
  • Directly - query Azure Resource Graph, Cost Management, Advisor, Monitor, or a FinOps hub yourself with az or an Azure MCP server. Best when answering one question inside a conversation. This skill carries the queries and the interpretation rules.

Prefer the direct path for a single question. Suggest the terminal UI when the user wants a full assessment.

Always confirm scope first

Findings are worthless if they came from the wrong tenant. Before reporting anything:

az account show --query "{tenant:tenantId, subscription:name, id:id}" -o json
az account list --query "length(@)" -o tsv

Many accounts can see several tenants and hundreds of subscriptions while queries run against only the active one. State the tenant and subscription you scanned, and confirm it's the intended scope before the user acts on the numbers.

Scope every query explicitly when the user only cares about one subscription. An unscoped tenant-wide scan across hundreds of subscriptions is slow and usually not what was asked for.

Investigation routing

QuestionInvestigationWhere the detail lives
Where am I wasting money?Orphaned resources, then idle VMsreferences/waste-detection.md
Are stopped VMs still costing me?Orphaned resourcesreferences/waste-detection.md
Should I move storage to a cooler tier?Storage tier analysisreferences/waste-detection.md
Am I paying for Windows/SQL licenses twice?Azure Hybrid Benefit eligibilityreferences/waste-detection.md
What's our tag coverage?Tag inventory, then tag qualityreferences/tags-and-policy.md
Are we governed? What guardrails are missing?Policy inventory, then coverage gapsreferences/tags-and-policy.md
Should we buy reservations or savings plans?Purchase recommendationsreferences/commitments.md
Are we using what we already bought?Commitment utilizationreferences/commitments.md
What have commitments actually saved us?Realized savingsreferences/commitments.md
How is our MACC tracking?Consumption commitment burn-downreferences/commitments.md
What are we spending? What's the forecast?Cost summary and trendreferences/cost-analysis.md
Which resources cost the most?Resource cost rankingreferences/cost-analysis.md
Split cost by team / app / cost centerCost by tagreferences/cost-analysis.md
What does one VM really cost?VM cost including disks and IPreferences/additional-investigations.md
What are we paying per vCPU or per GB?Unit economicsreferences/additional-investigations.md
What are we spending on Azure OpenAI?AI workload cost per 1K tokensreferences/additional-investigations.md
Are we running retiring SKUs?Legacy resourcesreferences/additional-investigations.md
Was the budget ever realistic?Budget historyreferences/additional-investigations.md
What does the tenant hierarchy look like?Management group structurereferences/additional-investigations.md
Split shared hub or platform costShared and telemetry-keyed splittingreferences/allocation.md
Why did cost spike?Anomaly root causeanomaly-investigation skill
Are we on budget?Budget statusforecasting-budgeting skill
Advisor cost recommendationsAdvisor queryreferences/commitments.md
Design a showback or chargeback modelAllocation modellingcost-allocation skill
What's our carbon footprint?Emissions and waste co-benefitsustainability-carbon skill

The reference pages carry the API calls, the sequencing, and the interpretation rules together.

Interpreting common results

This is the part raw API output gets wrong. Apply these before reporting a number.

  • Deallocated VMs are still costing money. Compute stops billing when a VM is deallocated, but attached managed disks and static public IPs keep billing. A "stopped" VM is a finding, not a resolved item. Report the disk and IP cost, and recommend deleting if the VM is genuinely unused.
  • Advisor repeats recommendations. Collapse duplicate generations only when the assessed resource ID, recommendation type, and all purchase options and monetary fields match. Keep distinct targets and alternative terms or scopes separate. A recommendation's root ID is not its assessed resource ID. Don't sum overlapping alternatives. See references/commitments.md.
  • Cost by tag returns nothing although resources are tagged. Two usual causes: the tags are on resource groups or subscriptions, which reach usage records only when tag inheritance is enabled in Cost Management, or the tags are newer than the usage, because tags aren't applied to historical usage and can take up to 24 hours to appear. Confirm the tag is applied to the resources that incur the cost, then recommend tag inheritance when the allocation tags live higher up.
  • Empty cost results early in the month. Cost Management data lags by a day or more. Say so rather than reporting "$0".
  • Azure Hybrid Benefit uses a different marker per resource type. Windows_Server on Windows VMs, AHUB on SQL Server VMs, BasePrice on SQL Database and Managed Instance. Checking only the first will miss most of the estate and overstate the opportunity.
  • Low tag coverage is usually a naming problem. Before reporting a coverage percentage, check for casing and separator variants of the same tag (managed_by vs managedBy vs ManagedBy). They fragment coverage and each looks like a distinct tag.

Reading results

  • Lead with the headline number - count, total savings, coverage percentage.
  • Group findings by impact when the data supports it.
  • Translate inventory into action: "3 deallocated VMs, disks still billing, delete if unused" beats "3 deallocated VMs".
  • Surface the cost driver, not just the resource list.
  • Name the scope you scanned every time.

Acting on findings

Nothing here changes Azure, and neither does the terminal UI. Every investigation ends in a recommendation, not an action.

Name the specific change, explain what it saves and what it risks, and give the user the command or portal path to apply it. Check for a dependency before recommending a deletion - an unattached disk can be a deliberate spare, and a snapshot is sometimes the backup.

FinOps skill ecosystem

Once an investigation surfaces a finding, hand off to the skill that turns it into a decision, a design, or an artifact:

After findingHand off toFor
Any spend question against a large environmentcost-data-sourceChoose the FinOps hub Kusto path over the live API, chunk large tenants
Tag coverage or cost-by-tag resultscost-allocationShowback/chargeback model, shared-cost splitting, tag strategy
Tag or policy gapsazure-policy-governanceEnforce tags, regions, and SKUs via Azure Policy
Policy inventory resultsazure-workbooks-finopsLive in-portal governance and optimization workbooks
Cost trend or resource cost datapower-bi-finopsDashboards and visuals
Realized savings or utilizationunit-economicsEffective savings rate, cost per unit, coverage KPIs
Reservation or Hybrid Benefit opportunitiesrate-optimization-portfolioPortfolio mix and purchase planning
Budget statusforecasting-budgetingForecasts, budget design, variance analysis
A cost spikeanomaly-investigationRoot-cause down to the resource and change
Waste findingssustainability-carbonCarbon co-benefit of removing waste
Deep KQL against a FinOps hubfinops-toolkitKusto analytics on the hub database
Cost data looks wrong or incompletefocus-data-qualityFOCUS conformance, completeness, mapping
A finding the user wants written upfinops-reportingExecutive summaries, QBRs, variance narratives

Gather the data first so the numbers are real, then route. Don't answer governance, allocation, or reporting questions abstractly when a query can show the actual state.

Prerequisites

  • Azure authentication: az login, or Connect-AzAccount when using the terminal UI.
  • Reader on the target scope for resource and policy investigations.
  • Cost Management Reader for cost, budget, and anomaly investigations.
  • Billing Reader, or Enterprise Administrator (reader) on an Enterprise Agreement, for billing account, contract, and MACC investigations.
  • Carbon Optimization Reader for emissions data, assigned at the subscription. Reader works too, but only at subscription scope - carbon permissions don't apply at resource group or resource level.
  • The terminal UI additionally needs the FinOpsToolkit PowerShell module and the Az.Accounts, Az.ResourceGraph, and Az.Storage modules.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.