cost-optimization-patterns
Cloud cost optimization, token/API cost tracking, build time optimization, and FinOps patterns
npx skills add vibeeval/vibecosystem --skill cost-optimization-patterns --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Cost Optimization Patterns ## Cloud Cost Optimization ### Right-Sizing ```bash # AWS - Compute Optimizer önerileri aws compute-optimizer get-ec2-instance-recommendations # CPU/Memory utilization < 20% → downsize # CPU/Memory utilization > 80% → upsize veya auto-scale ``` ### Instance Strategy | Strateji | Tasarruf | Risk | Use Case | |----------|---------|------|----------| | On-Demand | 0% | Düşük | Değişken workload | | Reserved (1yr) | %30-40 | Orta | Steady-state | | Reserved (3yr) | %50-60 | Yüksek | Uzun vadeli | | Spot/Preemptible | %60-90 | Yüksek | Batch, CI/CD | | Savings Plans | %30-50 | Düşük | Flexible commitment | ### Serverless Cost ``` Lambda cost = (requests × $0.20/1M) + (GB-seconds × $0.0000166) Optimizasyon: 1. Memory right-sizing (power tuning) 2. Provisioned concurrency (cold start vs cost tradeoff) 3. ARM architecture (%20 ucuz) 4. Batch processing (SQS batch size) ``` ## LLM/API Token Cost ```typescript // Token maliyet takibi const MODEL_COSTS = { 'claude-opus-4-6': { input: 15.0, output: 75.0 }, // per 1M tokens 'claude-sonnet-4-6': { input: 3.0, output: 15.0 }, 'claude-haiku-4-5': { input: 0.80, output: 4.0 } } as const function estimateCost(model: stri
- Cloud Cost Optimization
- Right-Sizing
- Instance Strategy
- Serverless Cost
- LLM/API Token Cost
- Build Time Optimization
- Database Cost
- Checklist
- Anti-Patterns
AWS - Compute Optimizer önerileri aws compute-optimizer get-ec2-instance-recommendations CPU/Memory utilization < 20% → downsize CPU/Memory utilization > 80% → upsize veya auto-scale
What does the cost-optimization-patterns skill do?
Cloud cost optimization, token/API cost tracking, build time optimization, and FinOps patterns
How do I install it?
Run `npx skills add vibeeval/vibecosystem --skill cost-optimization-patterns --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From vibeeval/vibecosystem, a repository with 521 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
