cost-optimization
Skill1 starsChanged 6 months agoMITView on GitHub
Review cloud/infrastructure spend and propose specific cost reductions without sacrificing reliability - sized instances, storage tiers, idle resources, data egress, observability spend. Use when the user asks for cost review, FinOps audit, cloud bill investigation, or wants to reduce infra spend.
16 other projects use a version of this.
Adopted by
Most recently taken up by
- microsoft/GitHub-Copilot-for-Azuretheir own version, first seen Oct 1, 2026
- microsoft/azure-skillstheir own version, first seen Sep 23, 2026
- novatic-cu/nova-skillstheir own version, first seen Sep 20, 2026
- gspencergoog/skillstheir own version, first seen Sep 8, 2026
- cvsz/zomegatheir own version, first seen Sep 2, 2026
- int2t05/engineering-skillstheir own version, first seen Aug 13, 2026
Other versions16 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 16
- microsoft/skills★ 3.1ksame name
- microsoft/azure-skills★ 1.5ksame name
- microsoft/GitHub-Copilot-for-Azure★ 253same name
- thomast1906/github-copilot-agent-skills★ 202same name
- borhen68/SkillEngine★ 17same name
- xfstudio/skills★ 9same name
- zllovesuki/cloudflare-agent-skills★ 9same name
- int2t05/engineering-skills★ 3same name
- ai4brands-design/claude-skills★ 2same name
- CodeWithBehnam/cc-docs★ 2same name
6 more not listed
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 repository50 other files it gives its agents.
- accessibility-reviewSkill
- adr-authorSkill
- api-designSkill
- architecture-reviewSkill
- caching-strategySkill
- changelogSkill
- ci-cd-pipelineSkill
- codebase-explorationSkill
- code-reviewSkill
- code-style-guideSkill
- context-engineeringSkill
- conventional-commitsSkill
- database-migrationSkill
- data-privacy-reviewSkill
- debuggingSkill
- dependency-updateSkill
- deprecation-migrationSkill
- error-handlingSkill
- feature-flag-rolloutSkill
- filament-resource-designSkill
- flux-ui-patternsSkill
- git-workflowSkill
- i18n-reviewSkill
- idea-refineSkill
- incident-responseSkill
- incremental-implementationSkill
- inertia-patternsSkill
- laravel-ai-featuresSkill
- laravel-eloquent-performanceSkill
- laravel-queue-designSkill
- laravel-testingSkill
- livewire-component-designSkill
- llm-feature-designSkill
- observabilitySkill
- onboarding-docSkill
- performance-budgetSkill
- pr-descriptionSkill
- primevue-patternsSkill
- refactoringSkill
- release-checklistSkill
- resilience-patternsSkill
- runbook-authorSkill
- security-auditSkill
- spec-writingSkill
- task-breakdownSkill
- tech-debt-triageSkill
- test-writingSkill
- threat-modelingSkill
- using-elyra-skillsSkill
- vue-component-patternsSkill
The file
We split this skill into the rules it gives an agent
3 rules. 0 are common, 3 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 15 edited versions we read keep these.
3
Distinctive
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 38
Quantify savings: before recommending (rough is fine.
- Distinctive: line 52
Test/staging environments running 24/7: when no one's testing
- Distinctive: line 123
Read replicas you stopped reading from
“Common” is measured: kept by at least 6 in 10 of the 15 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
Cost Optimization
The goal: find spend that nobody would defend if asked, and stop it. Most cloud waste isn't from anything clever — it's from things nobody is looking at.
When to use
- "Why is our AWS / GCP / Azure bill so high?"
- "Reduce infra costs"
- "Review cloud spend"
- "Cost optimization for X"
- "Where's the money going?"
Principles
- You can't optimize what you can't see. Get visibility before cutting.
- Cut waste before optimizing fit. Idle resources beat right-sized resources.
- Don't sacrifice reliability or developer productivity to save money on coffee-budget items.
- Engineer hours cost more than most infra. A 3-week optimization saving $200/month is a bad trade.
- Tag everything. Untagged spend is unaccountable spend.
Procedure
- Get the breakdown — by service, by environment, by team if tagged
- Identify the top 5 line items — typically 80% of the bill
- For each top line item, walk the relevant section below
- Quantify savings before recommending (rough is fine; "save 30%" with a number behind it)
- Order by ROI: $/month saved ÷ engineer-hours to do it
The big buckets
1. Idle and forgotten resources
The single biggest source of waste, almost always.
- Unattached storage volumes (EBS, persistent disks) from terminated instances
- Old snapshots with no retention policy
- Unassociated elastic IPs charged hourly
- Idle load balancers (created for an experiment, never deleted)
- Stopped instances still incurring storage / IP cost
- Test/staging environments running 24/7 when no one's testing
- Forgotten dev environments from former employees
- Database instances at zero queries/day
- Logs / metrics retained forever at hot-tier pricing
Action: weekly automated report of resources with low/no utilization > 30 days. Default action: delete after a 7-day grace period with owner notification.
2. Right-sizing
- Instances at <20% sustained CPU → downsize one step
- Instances at <40% memory → downsize or change family
- Over-provisioned databases (look at connections, IOPS, CPU)
- Over-provisioned Kubernetes requests/limits → use VPA or examine actuals
- "Burstable" workloads on always-on instances
Watch for: noisy neighbors on shared tiers, head-room needed for spikes, fast-recovery requirements. Don't right-size below your recovery requirements.
3. Storage tiering
| Tier | Use for | Relative cost |
| Hot (SSD, S3 Standard) | Active data, <30 days old | 1x |
| Warm (S3 IA, similar) | Accessed monthly | ~0.5x |
| Cold (S3 Glacier, Archive) | Compliance, rarely accessed | ~0.1x |
| Delete | Past retention period | 0 |
- Lifecycle policies move objects to colder tiers automatically
- Old objects past retention are deleted, not archived forever
- Log retention configured per signal (debug < info < audit)
- Backups: retention matches actual recovery requirements, not "forever"
4. Data transfer / egress
The line item most people miss. Egress to internet, cross-region, and cross-AZ are often pricier than the storage itself.
- Audit egress in cost report — by service if possible
- Co-locate chatty services in same AZ
- CDN in front of static assets (cheaper egress than direct from origin)
- Compression on responses
- Avoid cross-region replication unless you need it
- Watch egress to S3 from outside the region
5. Compute pricing model
| Model | When to use | Typical savings |
| On-demand | Spiky workloads, dev/test | 0% (baseline) |
| Savings plans / reserved (1y) | Steady-state workloads you know you'll need | 25–40% |
| Savings plans / reserved (3y) | Very steady, long-term | 40–60% |
| Spot / preemptible | Interruptible: batch, build, ML training, stateless web behind LB | 60–90% |
Don't commit before you have ≥3 months of steady-state usage data. Over-commitment is worse than no commitment.
6. Observability spend
Logs, metrics, traces, and APM are commonly the #2 line item after compute.
- Audit log volume per service — top emitters often have one verbose path
- Reduce log levels in prod (
debugoff;infolean) - Drop noisy log lines at the agent before they hit ingest
- Sample traces (head + tail) instead of 100% retention
- Drop high-cardinality metric dimensions (
user_idin tags = explosion) - Shorten retention on debug logs, keep audit logs longer
- Many vendors charge for unique metric series — kill unused ones
A halving of observability spend often saves more than a year of right-sizing. Check it.
7. Databases
- Stopped/idle non-prod databases
- Aurora I/O optimized vs standard — depends on workload, run the math
- Read replicas you stopped reading from
- Multi-AZ on non-prod environments
- Backup retention longer than needed
- Storage auto-scaling that grew once and never shrank
8. Kubernetes specifics
- Over-provisioned resource requests starve the bin-packer
- Cluster autoscaler not enabled or too conservative
- HPA / VPA tuned for the workload
- Node group families matching workload shape
- Unused PVCs from deleted pods
- Out-of-cluster ELBs from old Services
9. SaaS / per-seat tools
- Inactive seats on per-seat licenses (CI, observability, vendor portals)
- Tier downgrade where lower tier covers actual usage
- Renewal date awareness — negotiate before, not after
10. Build / CI minutes
- Caching layers (Docker layer, dependency caches) configured correctly
- Parallelism vs total minutes — sometimes serial is cheaper
- Self-hosted runners for high-volume orgs
- Kill obviously stuck jobs after a timeout
Quantifying before recommending
For each finding:
- **Finding**: <what's wasteful>
- **Current cost**: $<n>/month (source: <line item / query>)
- **Proposed change**: <what>
- **Estimated savings**: $<n>/month
- **Effort**: <hours/days>
- **Risk**: <low/medium/high + what could go wrong>Without numbers, "we could save money by …" is unfalsifiable.
Tagging
Untagged resources can't be attributed. Set this up if it isn't:
| Tag | Why |
env | prod / staging / dev — usually the biggest split |
team or owner | accountability |
service or app | per-service cost |
cost-center | finance reporting |
Enforce via cloud policy: untagged resources can't be created (or are flagged within 24h).
Output format
## Cost review: <scope, e.g., AWS account / GCP project>
**Monthly spend (last 3 mo trend):** $X → $Y → $Z
**Top 5 line items:**
1. EC2 — $A (B%)
2. RDS — $C (D%)
3. Datadog — $E (F%)
4. S3 — $G (H%)
5. Data transfer — $I (J%)
### Findings (ordered by ROI)
#### 🟢 Quick wins (low risk, low effort)
- **Unused EBS volumes**: $480/month, 2 hrs effort, low risk
- **Forgotten staging RDS**: $320/month, 1 hr effort, low risk
#### 🟡 Medium (some effort or coordination)
- **Right-size 12 EC2 instances**: ~$1,200/month, 2 days effort
- **Datadog log volume**: drop debug logs from svc-x, $800/month, 1 day
#### 🟠 Larger (commitment or design change)
- **3-year savings plan for steady-state**: ~$2,400/month after evaluation period
### Estimated total monthly savings if all implemented: $<n> (<%> of bill)
### Not recommended (with reason)
- Switching all to spot: too much state in our workloads
- Reducing backup retention: against compliance policy
### Tagging gaps
- <%> of compute untagged — fix before further cost workAnti-patterns
- ❌ "Move to a cheaper cloud" — almost always more expensive than fixing waste
- ❌ Cutting reliability for cost (removing replicas, disabling backups)
- ❌ Cost-optimizing dev productivity (slow CI, throttled prod-like staging)
- ❌ Big commitment plans before you know steady-state
- ❌ Over-engineering for cost ("we'll write our own S3")
- ❌ One person's pet optimization that saves $50/month
- ❌ Buying observability and then not using it ("we'll grow into it")
- ❌ Killing resources without notifying owners — political damage exceeds savings
- ❌ Recommending without numbers
- ❌ Ignoring the human cost (engineer hours) of optimizations
Tips
- Cost anomaly alerts beat monthly reviews — catch a runaway cost on day 2, not day 30
- Show, don't tell: a shared dashboard of monthly spend by team beats a memo
- Get a "delete after 7 days" tag working for ad-hoc resources
- Rerun the audit quarterly — waste regrows
- Engineer time has a cost — optimize the bill items that don't require ongoing engineer attention first
- Talk to your account manager — sometimes the cheapest optimization is a phone call
References
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.

