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

cost-allocation

Skill633 starsChanged 3 months agoMITView on GitHub

Use when the user wants to design showback or chargeback, allocate shared costs, build a tagging strategy for cost accountability, map spend to teams/products/cost centers, split shared platform costs, or model a financial hierarchy from billing and tag data.

The file

We split this skill into the rules it gives an agent

1 rule. About 0 are common, 1 is distinctive, and 0 are 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.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Document the rule, the source pool, and the target dimension so the allocation is reproducible and auditable.

    line 54

≈ “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

Cost allocation

Allocate Azure cost to the teams, products, and cost centers that own it — the foundation of showback and chargeback. This skill covers tag strategy, shared-cost splitting, financial hierarchy mapping, and allocation readiness.

When to use this skill

Use it when the user mentions showback, chargeback, allocation, cost centers, "who owns this spend", splitting shared costs, or building a tag strategy for accountability. For raw tag coverage numbers, run the finops-multitool scans first (tag inventory, tag recommendations, cost by tag) and bring the results here to design the model.

Allocation readiness checklist

  1. Coverage — what % of cost carries the allocation tag(s)? Below ~95% means material spend is unallocated. Use the cost by tag scan, which reports cost per tag value including (untagged). Tag inventory counts resources, not cost, so its percentages show resource-count coverage and don't answer this question.
  2. Consistency — no casing or spelling drift in tag keys/values (CostCenter vs costcenter, managed_by vs managedBy). Use tag recommendations.
  3. Usage records — cost data includes tags applied directly to resources. Resource group and subscription tags reach usage records only when tag inheritance is enabled in Cost Management, and tags aren't applied to historical usage.
  4. Inheritance — for resources that are missed, Azure Policy can apply resource group tags to the resources themselves; see the azure-policy-governance skill. For resources that can't be tagged, use Cost Management tag inheritance, which applies subscription and resource group tags to usage records without changing the resources.

Tagging strategy

Anchor on the Cloud Adoption Framework resource-tagging standard. The seven CAF-aligned tags map cleanly to allocation:

TagAllocation role
CostCenterPrimary chargeback dimension (finance ledger)
BusinessUnitOrg rollup
ApplicationName / WorkloadNameProduct / service showback
OpsTeamOperational ownership
CriticalityPrioritization, not allocation
DataClassificationCompliance, not allocation

Reference: https://learn.microsoft.com/azure/cloud-adoption-framework/ready/azure-best-practices/resource-tagging

Pick one authoritative allocation key (usually CostCenter) and enforce it everywhere; use the others for rollup and filtering.

Shared cost splitting

Costs that no single team owns (shared platform, networking, management tooling, support, marketplace, unallocated remainder) must be distributed. Choose a split method per shared pool:

MethodHowUse when
ProportionalSplit in ratio to each team's direct/allocated costDefault; "you pay for shared services in proportion to what you use"
EvenEqual share across N teamsSmall, fixed set of consumers
Fixed / manualHard-coded percentagesContractual or negotiated splits
Usage-basedSplit by a usage metric (vCPU-hours, GB, requests)A real consumption signal exists

Document the rule, the source pool, and the target dimension so the allocation is reproducible and auditable.

Financial hierarchy

Map raw billing + tags into a reporting hierarchy: Billing account → Billing profile / EA enrollment → Invoice section / department → Subscription → Resource group → Tag (CostCenter / App). In FinOps hub data, the cost-by-financial-hierarchy.kql catalog query (see the finops-toolkit skill) already produces this shape — start there rather than rebuilding it.

Showback vs chargeback

  • Showback — report allocated cost to each team for visibility; no money moves. Start here.
  • Chargeback — actually bill teams' budgets. Only attempt once coverage is high, splits are agreed, and the data is trusted, or it will erode trust on day one.

Hand-offs

  • Tag coverage / drift numbers → finops-multitool skill.
  • Enforce tags and inheritance → azure-policy-governance skill.
  • Visualize allocation → power-bi-finops skill (governance / cost-summary reports).
  • Express allocation efficiency as KPIs → unit-economics skill.

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.