cost-analysis
Skill187 starsChanged 6 months agoMITView on GitHub
Use when an operator or a scheduled task requests a periodic cloud-cost / spend audit of the Zava Learning resource group — identify the top cost drivers, week-over-week trend, idle or oversized resources, and concrete savings opportunities. Read-only; produces findings for a report.
6 other projects use a version of this.
Adopted by
Most recently taken up by
- Rhovian/nilestheir own version, first seen Nov 1, 2026
- microsoft/GitHub-Copilot-for-Azuretheir own version, first seen Oct 13, 2026
- microsoft/skillstheir own version, first seen Oct 13, 2026
- microsoft/azure-skillstheir own version, first seen Oct 13, 2026
- microsoft/agent-skillstheir own version, first seen Oct 8, 2026
- kevincui1034/cost-analysistheir own version, first seen Jul 2, 2026
Other versions6 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 6
- microsoft/agent-skills★ 3.2ksame name
- microsoft/skills★ 3.2ksame name
- microsoft/azure-skills★ 1.6ksame name
- microsoft/GitHub-Copilot-for-Azure★ 262same name
- Rhovian/niles★ 4same name
- kevincui1034/cost-analysis★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository28 other files it gives its agents.
- labs/onboardinglab/AGENTS.mdAGENTS.md
- labs/zava-aks-postgres/AGENTS.mdAGENTS.md
- labs/zava-learning/AGENTS.mdAGENTS.md
- deployment-compliance-checkSkill
- onboarding-labSkill
- azure-monitor-rcaSkill
- email-incident-followupSkill
- github-issue-followupSkill
- proactive-health-checkSkill
- ticketing-pr-validationSkill
- compliance-drift-detectionSkill
- vm-performance-diagnosticsSkill
- deploying-demoSkill
- managing-sre-agentSkill
- running-demoSkill
- connectivity-triageSkill
- evidence-before-afterSkill
- nsg-auditSkill
- pagerduty-incident-updateSkill
- performance-investigationSkill
- pr-deliverySkill
- rbac-auditSkill
- rca-analysisSkill
- recommendations-next-stepsSkill
- redaction-guardSkill
- servicenow-change-managementSkill
- zava-audit-reportSkill
- zava-reportingSkill
The file
We split this skill into the rules it gives an agent
3 rules. 0 are common, 1 is distinctive, and 2 are very specific to this project.
0
Common
Most of the 6 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 21
Use Cost Management for real billed amounts, scoped to the RG:
- Very specific: line 28
If az costmanagement is missing or returns an auth error (the agent identity lacks Cost Management Reader), FALL BACK to az consumption …
- Very specific: line 38
Use microsoft-learn_microsoft_docs_search / known Azure retail pricing to produce a *rough, clearly-labelled estimate*, not a billed figure.
“Common” is measured: kept by at least 6 in 10 of the 6 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Zava Learning — Cloud Cost Analysis
Resource Group: @@RG@@. Read-only audit — never resize, deallocate, or delete a resource.
This is a weekly spend posture review. Recommend optimisations for a human to apply; change nothing.
1. Pull actual spend (preferred path)
Use Cost Management for real billed amounts, scoped to the RG:
- This week vs. last week by resource:
az costmanagement query --type ActualCost --timeframe Custom --time-period from=<start> to=<end> --scope "/subscriptions/<sub>/resourceGroups/@@RG@@" --dataset-grouping name=ResourceId type=Dimension --dataset-aggregation totalCost.name=Cost totalCost.function=Sum(run it for the current 7-day window and the prior 7-day window, then diff per ResourceId). - Or month-to-date by service: same query grouped by
ServiceName. Ifaz costmanagementis missing or returns an auth error (the agent identity lacks Cost Management Reader), FALL BACK toaz consumption usage list --start-date <d> --end-date <d>filtered to the RG. Record which data source you used so the report is honest about provenance.
2. If billing data is unavailable, estimate from inventory
As a last resort (no Cost Management and no consumption access), build an estimate:
- Inventory the RG:
az resource list -g @@RG@@ --query "[].{name:name,type:type,sku:sku}". - Note the cost-bearing resources (PostgreSQL Flexible Server SKU, the reporting VM SKU + managed disks, Container Apps environments + per-app replicas/scale, Application Gateway tier + capacity units, Log Analytics ingestion, Key Vault, ACR SKU, public IPs).
- Use
microsoft-learn_microsoft_docs_search/ known Azure retail pricing to produce a rough, clearly-labelled estimate, not a billed figure. State the assumption explicitly.
3. Find waste and right-sizing opportunities (read-only signals)
- Idle/oversized: VMs that are deallocated yet still incurring disk cost; disks not attached to
any VM (
az disk list -g @@RG@@ --query "[?managedBy==null]"); over-provisioned VM/DB SKUs vs. observed CPU/memory; Container Apps with high min-replicas but low traffic. - Orphaned: unattached public IPs, empty App Gateway backend pools, unused NICs, old ACR images.
- Trend: any ResourceId whose week-over-week cost rose sharply — flag it with the Δ%.
4. Produce the findings table
For each driver/opportunity output a row: Resource (type) · This week $ · Last week $ · Δ% ·
Finding · Severity · Recommendation. Severity is impact-based: a sharp WoW spike or a clearly idle/
oversized paid resource is SEV2; smaller tidy-ups are SEV3. Sort by this-week spend (and severity).
Also produce a posture summary (total RG spend this week, WoW delta, the single biggest saving) and a
prioritized recommendations list with rough monthly savings where you can estimate them.
5. Hand off to the branded report
This skill does not remediate. Pass the posture summary, the findings rows (each with its severity),
the spend numbers, and the recommendations to the zava-audit-report skill, which renders the single
branded, downloadable PowerPoint deck (top cost drivers chart + findings table) and returns its
download link. Surface that link to the operator.
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.

