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

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.

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
  1. Very specific:

    Use it when the user reports a spike, an unexpected bill, an anomaly alert, or "why did cost jump." Confirm/quantify the anomaly first …

    line 18

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

  1. When — pinpoint the day the cost stepped up. A sharp step = a discrete change; a ramp = growing usage.
  2. What service — group the delta by ServiceName; find the service contributing most of the increase.
  3. What resource — within that service, group by ResourceName / resource group.
  4. What changed — for the suspect resource and date, correlate with the Azure Activity Log (create/scale/SKU-change events) and with commitment expiries.
  5. Rate vs volume — did usage rise (volume) or did the unit price rise / a discount drop (rate)? Compare EffectiveCost movement to usage quantity.

Common spike signatures

SignatureLikely cause
Step up on a specific day, one resourceScale-up, SKU change, or tier upgrade — check Activity Log
Gradual ramp across many resourcesOrganic growth or a rollout — usually expected
Spike with no usage changeA reservation/savings plan expired → rate went to on-demand (check ESR, commitment utilization)
New resource type appearsNet-new deployment, possibly untagged/unowned
Data-transfer / egress jumpCross-region traffic, new integration, data exfil pattern — investigate
Spike then return to baselineOne-off job, batch run, or test left running
Sustained jump in a shared serviceAllocation/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) or azure-policy-governance (guardrails).
  • Report it → finops-reporting.

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.