Agent skill · Backend & API

cost-optimization-patterns

Cloud cost optimization, token/API cost tracking, build time optimization, and FinOps patterns

vibeevalgithub.com/vibeevalGitHub ↗
claude-codeMIT
Install
npx skills add vibeeval/vibecosystem --skill cost-optimization-patterns --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 1
SKILL.md size: 3 KB
Bundled scripts: none
Path: skills/cost-optimization-patterns/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 521
Language: C#

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# 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

What's inside
Steps it walks through
  1. Cloud Cost Optimization
  2. Right-Sizing
  3. Instance Strategy
  4. Serverless Cost
  5. LLM/API Token Cost
  6. Build Time Optimization
  7. Database Cost
  8. Checklist
  9. Anti-Patterns
Commands it runs
AWS - Compute Optimizer önerileri
aws compute-optimizer get-ec2-instance-recommendations
CPU/Memory utilization < 20% → downsize
CPU/Memory utilization > 80% → upsize veya auto-scale
More from vibecosystem
All skills →
About this skill
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.

Keep going