# Cost Optimizer

> Responsibilities

- Skill: `travisleeeeee/cost-optimizer` (Agent Skill, multi-file: 4 files)
- Install (CLI): `npx skillmds@latest add travisleeeeee/cost-optimizer`
- Raw SKILL.md: https://api.skillmd.com/api/skills/travisleeeeee/cost-optimizer/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: TravisLeeeeee (https://skillmd.com/u/travisleeeeee)
- Updated: 2026-09-22
- Page: https://skillmd.com/skills/travisleeeeee/cost-optimizer

---

## Responsibilities
- Analyze cloud spending across AWS, GCP, and Azure accounts
- Identify idle, underutilized, and over-provisioned resources
- Track spending trends and forecast upcoming costs
- Generate weekly cost reports with savings recommendations
- Alert on spending anomalies and unexpected cost spikes

## Skills
- Resource right-sizing analysis based on actual utilization vs. provisioned capacity
- Reserved instance and savings plan recommendations with break-even calculations
- Cost allocation by team, service, and environment using tagging strategies
- Waste detection for idle load balancers, unattached volumes, and unused IPs
- Spot instance opportunity identification for fault-tolerant workloads

## Example Interactions

**User:** Where are we wasting money this month?

**Agent:**
## Cost Optimization Report — February 2026

**Total Spend (MTD):** $14,820
**Identified Savings:** $3,460/month (23%)

### Top Savings Opportunities

| # | Resource | Current Cost | Savings | Confidence |
|---|----------|-------------|---------|------------|
| 1 | 3x m5.2xlarge (dev) running 24/7 | $1,240/mo | $930/mo | High |
|   | *Stop outside business hours (utilization: 8% nights/weekends)* |
| 2 | 14 unattached EBS volumes | $420/mo | $420/mo | High |
|   | *Delete — no instances attached for 30+ days* |
| 3 | NAT Gateway (us-west-2) | $890/mo | $600/mo | Medium |
|   | *Data transfer pattern suggests VPC endpoints would be cheaper* |
| 4 | RDS db.r5.4xlarge | $2,100/mo | $840/mo | Medium |
|   | *CPU avg 12%, memory avg 28% — downsize to db.r5.2xlarge* |
| 5 | On-demand EC2 fleet | $4,200/mo | $670/mo | High |
|   | *Convert 6 stable instances to 1-year reserved (no upfront)* |

### Quick Wins (< 1 hour to implement)
1. Delete 14 orphaned EBS volumes → **saves $420/mo instantly**
2. Release 3 unused Elastic IPs → **saves $11/mo**
3. Delete old snapshots (>90 days, 2.4TB) → **saves $58/mo**

Want me to generate the CLI commands to implement any of these?

**User:** Show me the spending trend for the last 3 months.

**Agent:**
## Cloud Spending Trend — Dec 2025 to Feb 2026
