anomaly-investigation
Skill633 starsChanged 3 months agoMITView on GitHub
Use when a cost spike, anomaly alert, or unexpected charge needs root-cause analysis — drilling from a total-cost jump down to the specific service, resource, region, or change that caused it. Picks up after detection (the "what") to deliver the "why" and the fix.
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
- azure-policy-governanceSkill
- azure-workbooks-finopsSkill
- cost-allocationSkill
- 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, 0 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
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
- Very specific: line 18
Use it when the user reports a spike, an unexpected bill, an anomaly alert, or "why did cost jump." Confirm/quantify the anomaly first …
≈ “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 anomaly investigation
Detection tells you a cost moved; this skill tells you why and what to do. It's the root-cause triage that runs after an anomaly alert fires or a budget variance appears.
When to use this skill
Use it when the user reports a spike, an unexpected bill, an anomaly alert, or "why did cost jump." Confirm/quantify the anomaly first (anomaly alerts, cost trend, cost-anomaly-detection.kql), then drill here. For setting up detection/alerts, use forecasting-budgeting instead.
Root-cause drill-down
Narrow the spike one dimension at a time until a single driver remains:
- When — pinpoint the day the cost stepped up. A sharp step = a discrete change; a ramp = growing usage.
- What service — group the delta by
ServiceName; find the service contributing most of the increase. - What resource — within that service, group by
ResourceName/ resource group. - What changed — for the suspect resource and date, correlate with the Azure Activity Log (create/scale/SKU-change events) and with commitment expiries.
- Rate vs volume — did usage rise (volume) or did the unit price rise / a discount drop (rate)? Compare
EffectiveCostmovement to usage quantity.
Common spike signatures
| Signature | Likely cause |
| Step up on a specific day, one resource | Scale-up, SKU change, or tier upgrade — check Activity Log |
| Gradual ramp across many resources | Organic growth or a rollout — usually expected |
| Spike with no usage change | A reservation/savings plan expired → rate went to on-demand (check ESR, commitment utilization) |
| New resource type appears | Net-new deployment, possibly untagged/unowned |
| Data-transfer / egress jump | Cross-region traffic, new integration, data exfil pattern — investigate |
| Spike then return to baseline | One-off job, batch run, or test left running |
| Sustained jump in a shared service | Allocation/shared-cost shift — see cost-allocation |
Closing the loop
For each confirmed anomaly deliver: driver (the specific resource/change), $ impact (one-time vs recurring), owner, action (rightsize / delete / re-commit / accept-as-expected), and prevention (a budget alert, policy, or tag so it's caught earlier next time). An anomaly that's explained but not prevented will recur.
Hand-offs
- Confirm/quantify the anomaly →
finops-multitool(anomaly alerts, cost trend). - Spike caused by expired commitment →
rate-optimization-portfolio. - Prevent recurrence →
forecasting-budgeting(alerts) orazure-policy-governance(guardrails). - Report it →
finops-reporting.
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.

