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.
In this repository18 other files it gives its agents.
- AGENTS.mdAGENTS.md
- src/templates/finops-hub-copilot/copilot-instructions.mdCopilot instructions
- microsoft-writing-style-guideSkill
- support-reportSkill
- support-sweepSkill
- finops-toolkitSkill
- anomaly-investigationSkill
- azure-policy-governanceSkill
- azure-workbooks-finopsSkill
- cost-data-sourceSkill
- finops-multitoolSkill
- finops-reportingSkill
- focus-data-qualitySkill
- forecasting-budgetingSkill
- power-bi-finopsSkill
- rate-optimization-portfolioSkill
- sustainability-carbonSkill
- unit-economicsSkill
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
- Distinctive: line 54
Document the rule, the source pool, and the target dimension so the allocation is reproducible and auditable.
≈ “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.
Files
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
- 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. - Consistency — no casing or spelling drift in tag keys/values (
CostCentervscostcenter,managed_byvsmanagedBy). Use tag recommendations. - 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.
- Inheritance — for resources that are missed, Azure Policy can apply resource group tags to the resources themselves; see the
azure-policy-governanceskill. 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:
| Tag | Allocation role |
CostCenter | Primary chargeback dimension (finance ledger) |
BusinessUnit | Org rollup |
ApplicationName / WorkloadName | Product / service showback |
OpsTeam | Operational ownership |
Criticality | Prioritization, not allocation |
DataClassification | Compliance, not allocation |
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:
| Method | How | Use when |
| Proportional | Split in ratio to each team's direct/allocated cost | Default; "you pay for shared services in proportion to what you use" |
| Even | Equal share across N teams | Small, fixed set of consumers |
| Fixed / manual | Hard-coded percentages | Contractual or negotiated splits |
| Usage-based | Split 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-multitoolskill. - Enforce tags and inheritance →
azure-policy-governanceskill. - Visualize allocation →
power-bi-finopsskill (governance / cost-summary reports). - Express allocation efficiency as KPIs →
unit-economicsskill.
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
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.

