Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Optimize cloud costs through resource rightsizing, tagging strategies, reserved instances, and spending analysis. Use when reducing cloud expenses, analyzing infrastructure costs, or implementing cost governance policies.
.claude/skills/microck-cost-optimization/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-08 | ✗→✓ | ▲ Improved | 52% | 0% |
| case-04 | ✓→✓ | = Same ✓ | 87% | 0% |
| case-02 | ✓→✓ | = Same ✓ | 134% | 0% |
| case-03 | ✓→✓ | = Same ✓ | 165% | 0% |
| case-05 | ✓→✓ | = Same ✓ | 87% | 0% |
Strategies and patterns for optimizing cloud costs across AWS, Azure, and GCP.
Implement systematic cost optimization strategies to reduce cloud spending while maintaining performance and reliability.
Savings: 30-72% vs On-Demand
Term: 1 or 3 years
Payment: All/Partial/No upfront
Flexibility: Standard or ConvertibleCompute Savings Plans: 66% savings
EC2 Instance Savings Plans: 72% savings
Applies to: EC2, Fargate, Lambda
Flexible across: Instance families, regions, OSSavings: Up to 90% vs On-Demand
Best for: Batch jobs, CI/CD, stateless workloads
Risk: 2-minute interruption notice
Strategy: Mix with On-Demand for resiliencehclresource "aws_s3_bucket_lifecycle_configuration" "example" { bucket = aws_s3_bucket.example.id rule { id = "transition-to-ia" status = "Enabled" transition { days = 30 storage_class = "STANDARD_IA" } transition { days = 90 storage_class = "GLACIER" } expiration { days = 365 } } }
hcllocals { common_tags = { Environment = "production" Project = "my-project" CostCenter = "engineering" Owner = "team@example.com" ManagedBy = "terraform" } } resource "aws_instance" "example" { ami = "ami-12345678" instance_type = "t3.medium" tags = merge( local.common_tags, { Name = "web-server" } ) }
Reference: See references/tagging-standards.md
hcl# AWS Budget resource "aws_budgets_budget" "monthly" { name = "monthly-budget" budget_type = "COST" limit_amount = "1000" limit_unit = "USD" time_period_start = "2024-01-01_00:00" time_unit = "MONTHLY" notification { comparison_operator = "GREATER_THAN" threshold = 80 threshold_type = "PERCENTAGE" notification_type = "ACTUAL" subscriber_email_addresses = ["team@example.com"] } }
Development: t3.small RDS
Staging: t3.large RDS
Production: r6g.2xlarge RDS with read replicasHot data: S3 Standard
Warm data: S3 Standard-IA (30 days)
Cold data: S3 Glacier (90 days)
Archive: S3 Deep Archive (365 days)hclresource "aws_autoscaling_policy" "scale_up" { name = "scale-up" scaling_adjustment = 2 adjustment_type = "ChangeInCapacity" cooldown = 300 autoscaling_group_name = aws_autoscaling_group.main.name } resource "aws_cloudwatch_metric_alarm" "cpu_high" { alarm_name = "cpu-high" comparison_operator = "GreaterThanThreshold" evaluation_periods = "2" metric_name = "CPUUtilization" namespace = "AWS/EC2" period = "60" statistic = "Average" threshold = "80" alarm_actions = [aws_autoscaling_policy.scale_up.arn] }
references/tagging-standards.md - Tagging conventionsassets/cost-analysis-template.xlsx - Cost analysis spreadsheetterraform-module-library - For resource provisioningmulti-cloud-architecture - For cloud selection| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-04 | pass→pass | 6,448 | 1,875 | -71% | 1 | 1 | 0% | 1,055 | 1,968 | +87% | 0 | 0 | — |
case-01 | fail→fail | 8,553 | 9,958 | +16% | 1 | 1 | 0% | 1,698 | 3,569 | +110% | 0 | 0 | — |
case-02 | pass→pass | 5,251 | 2,642 | -50% | 1 | 1 | 0% | 920 | 2,157 | +134% | 0 | 0 | — |
case-03 | pass→pass | 5,385 | 5,300 | -2% | 1 | 1 | 0% | 1,042 | 2,764 | +165% | 0 | 0 | — |
case-05 | pass→pass | 6,932 | 2,411 | -65% | 1 | 1 | 0% | 1,110 | 2,077 | +87% | 0 | 0 | — |
case-06 | pass→pass | 6,160 | 3,101 | -50% | 1 | 1 | 0% | 1,060 | 2,206 | +108% | 0 | 0 | — |
case-07 | pass→pass | 6,172 | 4,156 | -33% | 1 | 1 | 0% | 1,010 | 2,435 | +141% | 0 | 0 | — |
case-08 | fail→pass | 9,714 | 6,199 | -36% | 1 | 1 | 0% | 1,851 | 2,805 | +52% | 0 | 0 | — |
case-09 | fail→fail | 16,626 | 17,432 | +5% | 1 | 1 | 0% | 2,838 | 4,601 | +62% | 0 | 0 | — |
case-10 | pass→pass | 16,318 | 14,718 | -10% | 1 | 1 | 0% | 3,024 | 4,510 | +49% | 0 | 0 | — |
case-11 | pass→pass | 7,933 | 6,060 | -24% | 1 | 1 | 0% | 1,546 | 2,990 | +93% | 0 | 0 | — |
case-12 | pass→pass | 11,478 | 10,676 | -7% | 1 | 1 | 0% | 1,958 | 3,598 | +84% | 0 | 0 | — |
case-13 | pass→pass | 10,025 | 2,620 | -74% | 1 | 1 | 0% | 1,834 | 2,148 | +17% | 0 | 0 | — |
case-14 | pass→pass | 12,272 | 8,353 | -32% | 1 | 1 | 0% | 2,031 | 3,095 | +52% | 0 | 0 | — |
case-15 | pass→pass | 17,209 | 16,835 | -2% | 1 | 1 | 0% | 2,946 | 4,459 | +51% | 0 | 0 | — |
case-16 | pass→pass | 15,219 | 7,643 | -50% | 1 | 1 | 0% | 2,620 | 3,038 | +16% | 0 | 0 | — |
case-17 | pass→pass | 15,094 | 14,298 | -5% | 1 | 1 | 0% | 2,427 | 3,932 | +62% | 0 | 0 | — |
case-18 | pass→pass | 8,353 | 4,855 | -42% | 1 | 1 | 0% | 1,444 | 2,509 | +74% | 0 | 0 | — |
case-19 | pass→pass | 5,212 | 2,128 | -59% | 1 | 1 | 0% | 976 | 2,056 | +111% | 0 | 0 | — |
case-20 | pass→pass | 13,429 | 14,315 | +7% | 1 | 1 | 0% | 3,044 | 4,921 | +62% | 0 | 0 | — |
case-21 | pass→pass | 21,382 | 25,362 | +19% | 1 | 1 | 0% | 3,723 | 6,365 | +71% | 0 | 0 | — |
case-22 | pass→pass | 7,479 | 6,029 | -19% | 1 | 1 | 0% | 1,548 | 2,927 | +89% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 22 cases were attempted. The headline lift of +5 percentage points is the difference between those two pass rates over the 22 comparable cases.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
Other measured skills in the registry, with their headline benchmark lift.