cost-anomaly-investigation
Skill0 starsChanged 5 months agoApache-2.0View on GitHub
Investigate a sudden cloud, bill, or cost spike — isolate the
In this repository128 other files it gives its agents.
- AGENTS.mdAGENTS.md
- accessibility-implementationSkill
- accessibility-reviewSkill
- api-changelogSkill
- api-designSkill
- auth-designSkill
- caching-strategiesSkill
- chaos-experiment-designSkill
- ci-cd-pipelinesSkill
- cli-designSkill
- cloudformation-reviewSkill
- codebase-orientationSkill
- code-commentsSkill
- code-reviewSkill
- commit-messagesSkill
- container-reviewSkill
- database-indexingSkill
- database-migrationsSkill
- debuggingSkill
- dependency-upgradesSkill
- design-system-contributionSkill
- design-tokensSkill
- desktop-releaseSkill
- error-handlingSkill
- feature-flagsSkill
- finops-reviewSkill
- frontend-performanceSkill
- git-conflict-resolutionSkill
- graphql-schema-designSkill
- helm-chart-scaffoldingSkill
- i18n-reviewSkill
- kubernetes-reviewSkill
- load-test-planningSkill
- logging-observabilitySkill
- message-queue-designSkill
- migration-playbooksSkill
- mobile-releaseSkill
- multi-region-active-activeSkill
- observability-alertsSkill
- openapi-spec-designSkill
- partner-api-integrationSkill
- performance-reviewSkill
- pr-descriptionsSkill
- prompt-injection-hardeningSkill
- pulumi-reviewSkill
- rate-limitingSkill
- refactor-planningSkill
- secrets-managementSkill
- security-reviewSkill
- sql-query-reviewSkill
- terraform-reviewSkill
- test-generationSkill
- threat-modelingSkill
- webhook-designSkill
- websocket-designSkill
- ab-test-analysisSkill
- anomaly-detectionSkill
- csv-analysisSkill
- data-cleaningSkill
- data-contract-designSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 4 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
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 73
Never invent dollar amounts, bill percentages, or "you will save $X".
- Distinctive: line 75
Do not recommend deleting backups, dropping Multi-AZ, or turning off encryption to offset a spike.
- Distinctive: line 78
Do not name a root cause from a single service total or one Cost Anomaly Detection row.
- Distinctive: line 86
Credits / discount ended: check charge type before hunting resources.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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
Find what changed in the bill, when, and what to check next. Do not turn a spike into a rightsizing or commitment plan.
For idle waste, rightsizing, and Savings Plans, use finops-review. For
metric or log spikes that are not money, use anomaly-detection.
Workflow
- Confirm the signal: account/project, currency, payer vs linked, charge type (usage, tax, credit, amortized commitment). Invoice, Cost Explorer, CUR, or an AWS Cost Anomaly Detection line — say which.
- Pin the window: first hour or day the delta appears; timezone; hourly vs daily. Never treat month-to-date vs a full prior month as the same window without saying so.
- Slice movers: service, usage type, account/OU, region, tag, operation. Name the top two or three only.
- Classify: usage up | price or discount change | billing artifact | unknown. Credits/EDP expiry can look like a spike with flat usage.
- Rank hypotheses against a change calendar: deploy, autoscaling, batch or GPU job, log ingest, NAT/egress, new marketplace SKU, support plan, forgotten resource.
- Next two or three checks that would disconfirm (CUR filter, create events, utilization, job IDs). Do not declare root cause from one service total.
- Containment is stop-the-bleed only (pause a runaway job, scale down
a forgotten fleet). Structural savings go to
finops-review.
Output format
## Cost anomaly: <account / window>
**Real?** likely | unclear | billing artifact
**Window:** first seen … through … (granularity, tz)
**Delta:** <quoted from input only; else relative / unknown>
**Top movers:** service / usage type / account / region
**Class:** usage | price-or-discount | artifact | unknown
### Hypotheses
1. …
### Next checks
1. …
### Containment (stop-the-bleed)
…
### Out of scope here
`finops-review` for rightsizing / commitments
`anomaly-detection` if the spike is not moneyRules
- Never invent dollar amounts, bill percentages, or "you will save $X". Missing export → stay relative and ask for Cost Explorer or CUR.
- Do not recommend deleting backups, dropping Multi-AZ, or turning off encryption to offset a spike.
- Separate unblended usage from amortized RI/SP, tax, credits, refunds.
- Do not name a root cause from a single service total or one Cost Anomaly Detection row.
- Cheaper-bill, rightsizing, and commitment questions →
finops-review. - Non-money metric or log anomalies →
anomaly-detection. - Incomplete "today" Cost Explorer data is not a close.
Edge cases
- Credits / discount ended: check charge type before hunting resources.
- MTD vs last calendar month: refuse until both windows have the same number of complete days.
- GPU / AI: job start, idle endpoints, spot-to-on-demand fallback, token APIs — utilization before instance shopping.
- Transfer hiding under EC2/NAT: split usage types; do not stop at the service rollup.
- Shared or untagged account: ownership is unknown; do not blame the first tagged app.
- "Make the bill cheaper" mid-investigation: finish window +
hypotheses, then point to
finops-review.
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.

