Cost Optimization — Production Best Practices

Analyze AWS EC2 utilization and CloudWatch metrics to right-size instances.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/DoanNgocCuong/working --skill cost-optimization-production-best-practices
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Cost Optimization — Production Best Practices
Source: https://github.com/DoanNgocCuong/working/tree/main/3.2%20%5BSTRUCTURES%20-%20B-%20MILESTONES%5D/3.2.1%20%5BMONEYGAME%5D/3.2.1.1%20KI%E1%BA%BEM%20TI%E1%BB%80N%20-%20SKILL/your_project/claude/skills/DataScienceAndAI/5%20-%20Production%20Systems%20%26%20MLOps/5.20%20-%20SPECIALIZED%20-%20Cost%20Optimization
Command: npx skills add https://github.com/DoanNgocCuong/working --skill cost-optimization-production-best-practices

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires boto3, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill helps you identify and eliminate unnecessary cloud spending by implementing FinOps best practices, reducing waste, and optimizing resource utilization.

Core Features & Use Cases

  • Right-Sizing Instances: Analyzes EC2 instance utilization to recommend downsizing or upsizing.
  • Commitment Optimization: Compares Reserved Instances and Savings Plans to find the best cost-saving strategy for your workload.
  • Spot Instance Management: Guides the use of Spot Instances for fault-tolerant workloads to achieve significant discounts.
  • Storage Tiering: Implements lifecycle policies to move data to cheaper storage classes over time.
  • Tagging Enforcement: Ensures resources are tagged for accurate cost allocation and tracking.
  • Use Case: A team notices their AWS bill is unexpectedly high. They use this Skill to right-size their EC2 instances, switch to a 3-year Reserved Instance for their stable database, and implement S3 lifecycle policies to archive old logs, resulting in a 30% reduction in their monthly cloud spend.

Quick Start

Use the Cost Optimization skill to analyze your EC2 fleet for right-sizing opportunities.

Frequently Asked Questions about Cost Optimization — Production Best Practices

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I identify idle AWS resources and right-size EC2 instances to reduce cloud cost?

To reduce cloud cost, this Skill analyzes CloudWatch metrics via boto3 to detect idle resources and evaluates EC2 utilization, recommending instance right-sizing to eliminate waste and optimize spend.

Should I use AWS Reserved Instances or Savings Plans for my production systems?

For production systems, this Skill compares Reserved Instances and Savings Plans against your workload patterns to identify the best commitment strategy, maximizing cloud cost discounts for stable usage.

Do I need boto3 to analyze EC2 fleet utilization and enforce tagging for cost allocation?

Yes, you need boto3 to interact with AWS APIs for analyzing EC2 fleet utilization and enforcing resource tagging, ensuring accurate cost allocation and tracking across your infrastructure.

What is the best way to implement S3 storage tiering and lifecycle policies for archiving old logs?

The best way to implement storage tiering is using this Skill's scripts to apply S3 lifecycle policies, automatically moving older data to cheaper storage classes to optimize cloud cost.

How does serverless cost modeling impact auto-scaling cost in AWS?

Serverless cost modeling evaluates auto-scaling cost impacts by analyzing resource utilization patterns, helping you balance performance and cloud cost efficiency in AWS production environments.