Agent skill

Optimizing Costs

by ancoleman in ancoleman/ai-design-components

Optimize cloud infrastructure costs through FinOps practices, commitment discounts, right-sizing, and automated cost management.

MITAuto-check passedDevOps & Cloud

Install Optimizing Costs

skills CLI
$ npx skills add ancoleman/ai-design-components --skill optimizing-costs -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install ancoleman/ai-design-components optimizing-costs --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/ancoleman/ai-design-components.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/optimizing-costs .claude/skills/optimizing-costs && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
optimizing-costs
GitHub stars
526
Token cost
~5.1k tokens
SKILL.md length
1,966 words
Files
14 (incl. scripts, references)
Skills in repo
75
Repo updated
First seen
Licence
MIT

At a glance

Optimize cloud infrastructure costs through FinOps practices, commitment discounts, right-sizing, and automated cost management.

  • Works in 10 steps: Commitment-Based Discounts → Spot and Preemptible Instances → Right-Sizing Strategies → …
  • Reducing cloud spend
  • SKILL.md covers Purpose, When to Use This Skill, FinOps Principles and Cost Optimization Strategies, plus 5 more sections
  • Runs Python scripts from its folder

What it does

Optimizing Costs is an agent skill from ancoleman/ai-design-components. Optimize cloud infrastructure costs through FinOps practices, commitment discounts, right-sizing, and automated cost management. Use when reducing cloud spend, implementing budget controls, or establishing cost visibility across AWS, Azure, GCP, and Kubernetes environments.

Its SKILL.md is about 5.1k tokens, which your agent loads only when the skill is triggered. The skill folder holds 19 other files, including scripts and reference files (for example `examples/ci-cd/infracost-github-action.yml`, `examples/kubernetes/kubecost-values.yaml` and `examples/kubernetes/resource-quotas.yaml`).

It sits in DevOps & Cloud, covering Cloud cost optimization. It works with Kubernetes, Amazon Web Services, Google Cloud and Microsoft Azure. The repository describes itself as: Comprehensive UI/UX and Backend component design skills for AI-assisted development with Claude. The licence is MIT.

When your agent uses it

  • Reducing cloud spend
  • Implementing budget controls
  • Establishing cost visibility across AWS
  • Kubernetes environments

Example prompts

  • “/optimizing-costs”

Requirements

  • Python 3

Workflow steps

10 steps, taken from the step headings in SKILL.md.

  1. Commitment-Based Discounts
  2. Spot and Preemptible Instances
  3. Right-Sizing Strategies
  4. Kubernetes Cost Management
  5. Establish Visibility (Week 1-2)
  6. Set Up Governance (Week 2-3)
  7. Quick Wins (Week 3-4)
  8. Commitment Discounts (Month 2)
  9. Automation (Month 2-3)
  10. Continuous Optimization (Ongoing)

What it can do on your machine

Read from SKILL.md and the folder at commit 76551b7. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 2 files in scripts/ (Python), which the agent can run.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Optimizing Costs loads about 5.1k tokens when it runs, and up to ~24k if it reads all its reference files. Until then it costs about 73 tokens; SKILL.md has 1,966 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~73
When it runs · the whole SKILL.md, loaded when a task matches
~5.1k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~24k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from ancoleman/ai-design-components at commit 76551b7, republished under its MIT licence (© ancoleman). 1,966 words, ~5,146 tokens.

Download SKILL.mdSave it as .claude/skills/optimizing-costs/SKILL.md (or your agent's skills folder). This skill also uses 13 other files; get the full folder from GitHub.
name
optimizing-costs
description
Optimize cloud infrastructure costs through FinOps practices, commitment discounts, right-sizing, and automated cost management. Use when reducing cloud spend, implementing budget controls, or establishing cost visibility across AWS, Azure, GCP, and Kubernetes environments.

Cost Optimization

Purpose

Cloud cost optimization transforms uncontrolled spending into strategic resource allocation through the FinOps lifecycle: Inform, Optimize, and Operate. This skill provides decision frameworks for commitment-based discounts (Reserved Instances, Savings Plans), right-sizing strategies, Kubernetes cost management, and automated cost governance across multi-cloud environments.

When to Use This Skill

Invoke cost-optimization when:

  • Reducing cloud spend by 15-40% through systematic optimization
  • Implementing cost visibility dashboards and allocation tracking
  • Establishing budget alerts and anomaly detection
  • Optimizing Kubernetes resource requests and cluster efficiency
  • Managing Reserved Instances, Savings Plans, or Committed Use Discounts
  • Automating idle resource cleanup and right-sizing recommendations
  • Setting up showback/chargeback models for internal teams
  • Preventing cost overruns through CI/CD cost estimation (Infracost)
  • Responding to finance team requests for cloud cost reduction

FinOps Principles

The FinOps Lifecycle
┌─────────────────────────────────────────────────────┐
│  INFORM → OPTIMIZE → OPERATE (continuous loop)      │
│    ↓         ↓           ↓                          │
│ Visibility  Action   Automation                     │
└─────────────────────────────────────────────────────┘

Inform Phase: Establish cost visibility

  • Enable cost allocation tags (Owner, Project, Environment)
  • Deploy real-time cost dashboards for engineering teams
  • Integrate cloud billing data (AWS CUR, Azure Consumption API, GCP BigQuery)
  • Set up Kubernetes cost monitoring (Kubecost, OpenCost)

Optimize Phase: Take action on cost drivers

  • Purchase commitment-based discounts (40-72% savings)
  • Right-size over-provisioned resources (target 60-80% utilization)
  • Implement spot/preemptible instances for fault-tolerant workloads
  • Clean up idle resources (unattached volumes, old snapshots)

Operate Phase: Automate and govern

  • Budget alerts with cascading notifications (50%, 75%, 90%, 100%)
  • Automated cleanup scripts for idle resources
  • CI/CD cost estimation to prevent surprise increases
  • Continuous monitoring with anomaly detection
Core FinOps Principles
  1. Collaboration: Cross-functional teams (finance, engineering, operations, product)
  2. Accountability: Teams own the cost of their services
  3. Transparency: All costs visible and understandable to stakeholders
  4. Optimization: Continuous improvement of cost efficiency

For detailed FinOps maturity models and organizational structures, see references/finops-foundations.md.

Cost Optimization Strategies

1. Commitment-Based Discounts

Reserved Instances (RIs): 40-72% discount for 1-3 year commitments

  • Standard RI: Instance type locked, highest discount (60% for 3-year)
  • Convertible RI: Flexible instance types, moderate discount (54% for 3-year)
  • Use for: Databases (RDS, ElastiCache), stable production EC2 workloads

Savings Plans: Flexible compute commitments

  • Compute Savings Plans: Applies to EC2, Fargate, Lambda (54% discount for 3-year)
  • EC2 Instance Savings Plans: Tied to instance family (66% discount for 3-year)
  • Use for: Workloads that change instance types or regions

GCP Committed Use Discounts (CUDs): 25-70% discount

  • Resource-based CUDs: Commit to vCPU, memory, GPUs
  • Spend-based CUDs: Commit to dollar amount (flexible)
  • Sustained Use Discounts: Automatic 20-30% discount for sustained usage (no commitment)

Decision Framework:

Reserve when:
├─ Workload is production-critical (24/7 uptime required)
├─ Usage is predictable (stable baseline over 6+ months)
├─ Architecture is stable (unlikely to change instance types)
└─ Financial commitment acceptable (1-3 year lock-in)

Use On-Demand when:
├─ Development/testing environments
├─ Unpredictable spiky workloads
├─ Short-term projects (<6 months)
└─ Evaluating new instance types

For detailed commitment strategies and RI coverage analysis, see references/commitment-strategies.md.

2. Spot and Preemptible Instances

Discount: 70-90% off on-demand pricing (interruptible with 2-minute warning)

Use Spot For: CI/CD workers, batch jobs, ML training (with checkpointing), Kubernetes workers, data analytics Avoid Spot For: Stateful databases, real-time services, long-running jobs without checkpointing

Best Practices:

  • Diversify instance types and spread across Availability Zones
  • Implement graceful shutdown handlers
  • Auto-fallback to on-demand when capacity unavailable
  • Kubernetes: Mix 70% spot + 30% on-demand nodes with taints/tolerations
3. Right-Sizing Strategies

Target Utilization: 60-80% average (leave headroom for spikes)

Compute Right-Sizing:

  • Analyze actual CPU/memory utilization over 30+ days
  • Downsize instances with <40% average utilization
  • Consolidate underutilized workloads
  • Switch instance families (compute-optimized vs. memory-optimized)

Database Right-Sizing:

  • Analyze connection pool usage (max connections vs. allocated)
  • Downgrade storage IOPS if utilization <50%
  • Evaluate read replica necessity (can caching replace it?)
  • Consider serverless options (Aurora Serverless, Azure SQL Serverless)

Kubernetes Right-Sizing:

  • Set requests = average usage (not peak)
  • Set limits = 2-3x requests (allow bursting)
  • Use Vertical Pod Autoscaler (VPA) for automated recommendations
  • Identify pods with 0% CPU usage (candidates for consolidation)

Storage Right-Sizing:

  • Delete unattached volumes (EBS, Azure Disks, GCP Persistent Disks)
  • Delete old snapshots (>90 days, retention policy not required)
  • Implement lifecycle policies (S3 Intelligent-Tiering, Azure Blob Lifecycle)
  • Compress/deduplicate data

Right-Sizing Tools:

  • AWS Compute Optimizer: ML-based EC2, Lambda, EBS recommendations
  • Azure Advisor: VM rightsizing, reserved instance advice
  • GCP Recommender: VM, disk, commitment recommendations
  • VPA (Vertical Pod Autoscaler): Automated container resource requests
4. Kubernetes Cost Management

Resource Requests and Limits:

yaml
# Set requests = average usage (enables efficient bin-packing)
resources:
  requests:
    cpu: 500m        # 0.5 CPU cores (average usage)
    memory: 1Gi      # 1 GiB memory (average usage)
  limits:
    cpu: 1500m       # 1.5 CPU cores (3x requests, allows bursting)
    memory: 3Gi      # 3 GiB memory (3x requests)

Namespace Quotas: Prevent runaway resource consumption

  • ResourceQuota: Limit total CPU/memory per namespace
  • LimitRange: Default/max requests per pod
  • PriorityClass: Ensure critical pods get resources

Cluster Autoscaling:

  • Scale down idle nodes to reduce costs
  • Scale-to-zero for dev clusters during off-hours
  • Use multiple node pools (spot + on-demand mix)
  • Set max node limits to prevent overspend

Cost Visibility:

  • Deploy Kubecost or OpenCost for namespace-level cost tracking
  • Allocate costs by labels (team, project, environment)
  • Track idle cost (cluster capacity not allocated to workloads)
  • Generate showback/chargeback reports

For detailed Kubernetes cost optimization patterns, see references/kubernetes-cost-optimization.md.

Cost Visibility and Monitoring

Tagging for Cost Allocation

Required Tags:

  • Owner or Team - Responsible team/department
  • Project or Application - Business unit or application name
  • Environment - prod, staging, dev, test
  • CostCenter - Finance cost center code

Enable Cost Allocation Tags:

  • AWS: Activate tags in Cost Allocation Tags console
  • Azure: Apply tags via Azure Policy enforcement
  • GCP: Use labels on all resources, export to BigQuery

For comprehensive tagging strategies, see references/tagging-for-cost-allocation.md.

Monitoring and Dashboards

Native Cloud Tools:

  • AWS Cost Explorer: Analyze spending patterns, forecast costs
  • Azure Cost Management + Billing: Budget tracking, cost analysis
  • GCP Cloud Billing: BigQuery export for custom analysis

Third-Party Platforms:

  • Kubecost: Kubernetes cost visibility and optimization
  • CloudZero: Unit cost economics, anomaly detection
  • CloudHealth: Multi-cloud cost management
  • Infracost: Terraform cost estimation in CI/CD

Key Metrics to Track:

  • Total monthly cloud spend (trend over time)
  • Cost per service/team/project (allocation accuracy)
  • Unit cost metrics (cost per customer, cost per transaction)
  • Reserved Instance/Savings Plan utilization (target >95%)
  • Idle resource waste (target <5% of total spend)
  • Budget variance (forecasted vs. actual)
Budget Alerts and Anomaly Detection

Cascading Budget Alerts:

50% of budget  → Email to team lead (informational)
75% of budget  → Email + Slack to team (warning)
90% of budget  → Email + Slack + PagerDuty (urgent)
100% of budget → Automated shutdown (non-prod only) or escalation

Anomaly Detection: Alert on unexpected cost spikes

  • 20% cost increase week-over-week

  • $500 unexpected daily cost spike

  • New resource types (unusual spend patterns)

Budget Granularity:

  • Organization-level (total cloud spend)
  • Department-level (engineering, data, marketing)
  • Project-level (per application/service)
  • Environment-level (prod vs. dev/staging)

Decision Frameworks

Framework 1: Commitment Discount Decision Tree
Should we purchase Reserved Instances / Savings Plans?

STEP 1: Analyze Historical Usage (6-12 months)
├─ Identify steady-state baseline (minimum usage)
├─ Exclude spiky/seasonal workloads
└─ Calculate: (baseline usage) / (total usage) = commitment %

STEP 2: Choose Commitment Type
├─ RESERVED INSTANCES
│   ├─ Pros: Highest discount (up to 72%)
│   ├─ Cons: Instance type locked (unless convertible)
│   └─ Use for: Databases, stable production workloads
│
├─ SAVINGS PLANS
│   ├─ Pros: Flexible (across instance types, regions)
│   ├─ Cons: Slightly lower discount than RI
│   └─ Use for: Compute workloads, Lambda, Fargate
│
└─ COMMITTED USE DISCOUNTS (GCP)
    ├─ Resource-based: vCPU/memory commitments
    └─ Spend-based: Dollar amount commitments

STEP 3: Determine Commitment Period
├─ 1-year commitment
│   ├─ Lower discount (40-50%)
│   └─ Less risk if architecture changes
│
└─ 3-year commitment
    ├─ Higher discount (60-72%)
    └─ Only for mature, stable workloads

STEP 4: Monitor and Optimize
├─ Target >95% RI/Savings Plan utilization
├─ Sell unused RIs on AWS Reserved Instance Marketplace
└─ Adjust commitments quarterly based on usage trends
Framework 2: Right-Sizing Priority Matrix

Cost Impact vs. Effort:

High Impact, Low Effort (DO FIRST):

  • Idle resources (100% waste): Stopped instances, unattached volumes, old snapshots
  • Unused NAT Gateways ($32/month each)
  • Over-provisioned databases (<20% CPU for 30 days)
  • Kubernetes pods with no resource requests set

High Impact, Medium Effort (DO SECOND):

  • Over-provisioned compute (<40% CPU/memory for 30 days)
  • Lambda functions with max memory >2x used memory
  • Storage optimization (S3 Intelligent-Tiering, gp3 vs. gp2)

Low Impact, High Effort (DO LAST):

  • Application code optimization (requires profiling, refactoring)
  • Architecture redesign (serverless migration, multi-region optimization)

Weekly Optimization Routine:

  1. Delete idle resources (automated script)
  2. Review top 10 cost drivers (manual analysis)
  3. Right-size 3-5 instances/week (incremental approach)
  4. Monitor impact (cost trend over 4 weeks)
Framework 3: Spot vs. On-Demand Decision
Should this workload use Spot/Preemptible instances?

├─ Is the workload fault-tolerant?
│   ├─ NO → Use On-Demand
│   └─ YES → Continue
│
├─ Is the workload stateless (or has checkpointing)?
│   ├─ NO → Use On-Demand (data loss risk)
│   └─ YES → Continue
│
├─ Can the workload handle interruptions gracefully?
│   ├─ NO → Use On-Demand
│   └─ YES → Continue
│
└─ Workload Type Assessment:
    ├─ Batch Jobs / CI/CD → ✅ Use Spot (70-90% savings)
    ├─ ML Training → ✅ Use Spot (with checkpointing)
    ├─ Kubernetes Workers → ✅ Use Spot (mixed with on-demand)
    ├─ Production API Servers → ⚠️ Mixed fleet (70% spot, 30% on-demand)
    ├─ Databases → ❌ Use On-Demand (or Reserved)
    └─ Real-time Services → ❌ Use On-Demand (or Reserved)

Tool Selection Guide

By Platform
PlatformCost VisibilityRight-SizingAutomation
AWSCost Explorer, CURCompute OptimizerAWS Budgets, Lambda cleanup
AzureCost ManagementAzure AdvisorAzure Policy, Automation
GCPCloud BillingRecommenderBudget Alerts, Cloud Functions
KubernetesKubecost, OpenCostVPACluster Autoscaler
Multi-CloudCloudZero, CloudHealthDensifyParkMyCloud
By Use Case
Use CaseRecommended ToolKey Feature
K8s cost visibilityKubecostReal-time namespace cost allocation
Terraform cost estimationInfracostPR comments with cost diffs
Multi-cloud aggregationCloudHealthUnified cost view across AWS/Azure/GCP
Automated optimizationnOps (AWS), CAST AI (K8s)ML-based automation
Unit cost economicsCloudZeroCost per customer/transaction tracking
Spot instance managementSpot.ioAutomated spot orchestration

For detailed tool comparisons and selection criteria, see references/tools-comparison.md.

Show full SKILL.md (781 more words)Show less

Cloud-Specific Tactics

AWS Optimization Tactics
  1. Enable Cost & Usage Reports (CUR): Export detailed billing to S3
  2. Use AWS Compute Optimizer: ML-based EC2 rightsizing recommendations
  3. Implement Savings Plans: More flexible than Reserved Instances
  4. S3 Intelligent-Tiering: Automatic storage class optimization
  5. Lambda Right-Sizing: Adjust memory allocation (CPU scales proportionally)
  6. EBS gp3 Migration: 20% cheaper than gp2 with same performance
Azure Optimization Tactics
  1. Enable Azure Advisor: VM rightsizing and reserved instance recommendations
  2. Azure Hybrid Benefit: Bring Windows Server licenses for discounts
  3. Dev/Test Pricing: Reduced rates for non-production workloads
  4. Azure Spot VMs: Up to 90% discount for interruptible workloads
  5. Storage Lifecycle Management: Auto-tier blobs to cool/archive tiers
GCP Optimization Tactics
  1. Export Billing to BigQuery: Custom cost analysis with SQL
  2. Sustained Use Discounts: Automatic 20-30% discount (no commitment)
  3. Committed Use Discounts: 52-70% savings for 3-year commitments
  4. Preemptible VMs: Up to 91% discount for batch workloads
  5. GCP Recommender: Idle VM detection and rightsizing advice

For cloud-specific deep dives, see references/cloud-specific-tactics.md.

Implementation Checklist

Phase 1: Establish Visibility (Week 1-2)
  • Enable cost allocation tags (Owner, Project, Environment)
  • Activate cost allocation tags in cloud billing console
  • Deploy Kubecost for Kubernetes cost visibility (if using K8s)
  • Create cost dashboards (Grafana, CloudWatch, Azure Monitor, GCP)
  • Set up weekly cost reports (emailed to team leads)
Phase 2: Set Up Governance (Week 2-3)
  • Create budget alerts (50%, 75%, 90%, 100% thresholds)
  • Enable anomaly detection (>20% WoW increase)
  • Implement tagging policy enforcement (Azure Policy, AWS Config, GCP Org Policy)
  • Establish showback reports (cost by team/project)
  • Document cost ownership (who owns which services)
Phase 3: Quick Wins (Week 3-4)
  • Delete idle resources (unattached volumes, old snapshots)
  • Stop/terminate unused development instances
  • Right-size top 10 over-provisioned instances (<40% utilization)
  • Implement S3 Intelligent-Tiering or lifecycle policies
  • Evaluate Reserved Instance/Savings Plan coverage
Phase 4: Commitment Discounts (Month 2)
  • Analyze 6-12 months usage history
  • Calculate baseline usage for commitment sizing
  • Purchase Reserved Instances for databases
  • Purchase Savings Plans for compute workloads
  • Monitor RI/SP utilization (target >95%)
Phase 5: Automation (Month 2-3)
  • Deploy automated cleanup scripts (weekly schedule)
  • Integrate Infracost into CI/CD pipelines
  • Implement auto-shutdown for dev/test environments (off-hours)
  • Enable Vertical Pod Autoscaler (VPA) for K8s rightsizing
  • Set up Spot instance automation (Spot.io, CAST AI, or native)
Phase 6: Continuous Optimization (Ongoing)
  • Weekly cost reviews with engineering teams
  • Monthly optimization sprints (top cost drivers)
  • Quarterly commitment adjustments (RI/SP coverage)
  • Annual FinOps maturity assessment

Common Pitfalls

Pitfall 1: No Cost Visibility

❌ Problem: Finance team sees cloud bill at end of month, surprises everywhere ✅ Solution: Deploy real-time cost dashboards, daily Slack reports to engineering teams

Pitfall 2: Reserved Instance Underutilization

❌ Problem: Purchased 100 RIs, only using 60 (40% wasted commitment) ✅ Solution: Monitor RI utilization weekly (target >95%), sell unused RIs on marketplace

Pitfall 3: Missing Kubernetes Resource Requests

❌ Problem: Pods with no requests set → inefficient bin-packing → wasted nodes ✅ Solution: Use VPA to auto-generate recommendations, enforce via admission control

Pitfall 4: Idle Resources Not Cleaned Up

❌ Problem: 50 stopped EC2 instances (still paying for EBS), 200 unattached volumes ✅ Solution: Weekly automated cleanup of idle resources >7 days old

Pitfall 5: No Budget Alerts

❌ Problem: Accidentally left test cluster running, $10K bill surprise ✅ Solution: Budget alerts at 50%, 75%, 90%, 100% with Slack/PagerDuty notifications

  • resource-tagging: Cost allocation tags enable showback/chargeback models
  • kubernetes-operations: K8s rightsizing, VPA, cluster autoscaling for cost optimization
  • infrastructure-as-code: Infracost for Terraform cost estimation and policy-as-code
  • aws-patterns: AWS-specific cost optimization tactics (EC2, RDS, S3, Lambda)
  • gcp-patterns: GCP-specific optimizations (Compute Engine, BigQuery, Cloud Storage)
  • azure-patterns: Azure-specific optimizations (VMs, Storage, App Service, Functions)
  • platform-engineering: Internal FinOps platforms and self-service cost dashboards
  • disaster-recovery: Balance cost vs. RTO/RPO (warm standby vs. cold standby)

Examples

See examples/ directory for:

  • terraform/: AWS, Azure, GCP cost optimization infrastructure (budgets, alerts)
  • kubernetes/: Kubecost deployment, resource quotas, VPA configurations
  • ci-cd/: Infracost GitHub Actions, cost approval workflows
  • dashboards/: Grafana cost dashboards, CloudWatch alarms

Scripts

See scripts/ directory for:

  • cleanup_idle_resources.py: Automated AWS/Azure/GCP idle resource cleanup
  • ri_coverage_report.py: Reserved Instance coverage analysis
  • cost_allocation_report.py: Generate showback/chargeback reports
  • spot_savings_calculator.py: Estimate savings from spot instances
  • k8s_rightsizing_audit.py: Find K8s pods with missing resource requests

Key Takeaways

  1. FinOps is a Culture: Collaboration between finance, engineering, and operations
  2. Visibility First: Can't optimize what can't measure (tags + dashboards mandatory)
  3. Commitment = Savings: Reserved Instances/Savings Plans provide 40-72% discounts
  4. Right-Size Continuously: Target 60-80% utilization (leave headroom for spikes)
  5. Automate Cleanup: Idle resources are 100% waste (weekly automated deletion)
  6. Kubernetes Costs Hidden: Use Kubecost/OpenCost for namespace-level visibility
  7. Shift-Left Cost Awareness: Infracost in CI/CD prevents surprise cost increases
  8. Budget Alerts Prevent Overspend: Cascading notifications at 50%, 75%, 90%, 100%
  9. Spot for Fault-Tolerant Workloads: 70-90% discount (CI/CD, batch jobs, ML training)
  10. Unit Cost Metrics Drive Value: Track cost per customer, cost per transaction

© ancoleman, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 13 other files (scripts, references) in skills/optimizing-costs of ancoleman/ai-design-components.

  • SKILL.md
  • examples/ci-cd/infracost-github-action.yml
  • examples/kubernetes/kubecost-values.yaml
  • examples/kubernetes/resource-quotas.yaml
  • examples/terraform/aws-cost-optimization.tf
  • outputs.yaml
  • references/cloud-specific-tactics.md
  • references/commitment-strategies.md
  • references/finops-foundations.md
  • references/kubernetes-cost-optimization.md
  • references/tagging-for-cost-allocation.md
  • references/tools-comparison.md
  • scripts/cleanup_idle_resources.py
  • scripts/ri_coverage_report.py

Open the folder on GitHubat commit 76551b7

Compare with similar skills

Optimizing Costs next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Optimizing Costs compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Optimizing Costs this skillancoleman/ai-design-components526—~5.1kAutomated safety check: PassMIT
Infrastructure Devops Cloud Architectchendongqi/OPB-Skills125—~1.1kAutomated safety check: PassNone
SkyPilot Multi-Cloud OrchestrationOrchestra-Research/AI-Research-SKILLs13k4 repos~2.4kAutomated safety check: PassMIT
Cloud Cost Optimizationwshobson/agents40k13 repos~1.7kAutomated safety check: PassMIT
Spotinfoalexei-led/spotinfo164—~1.8kAutomated safety check: PassApache-2.0
Provider Bug Reviewmondoohq/mql411—~2.9kAutomated safety check: PassCustom licence

Similar skills

  • 云架构助手 - 专业的云计算架构设计与优化专家。适用场景: (1) 云架构设计与方案规划 (2) 云资源选型与容量规划 (3) 云成本优化与FinOps实践 (4) 多云/混合云策略设计 (5) 云迁移方案与实施 (6) 云安全架构设计 (7) 云原生架构转型 触发关键词:云架构、AWS、阿里云、Azure、GCP、云迁移、云成本、多云、混合云、云安全、云原生、Kubernetes、容器

    125 GitHub stars~1.1k tokensUpdated 7 mo ago
    DevOps & CloudAuto-check passed
  • SkyPilot Multi-Cloud Orchestration

    Orchestra-Research/AI-Research-SKILLs

    Runs ML training and batch jobs across clouds with SkyPilot, using spot instances, automatic region selection and managed recovery to cut GPU cost.

    13k GitHub starsUsed in 4 repos~2.4k tokens
    DevOps & CloudAuto-check passed
  • Cuts cloud spend across AWS, Azure, GCP and OCI with cost tagging, rightsizing, commitment and spot pricing models, and architecture changes.

    40k GitHub starsUsed in 13 repos~1.7k tokens
    DevOps & CloudAuto-check passed
  • Spotinfo

    alexei-led/spotinfo

    Query Spot/preemptible VM prices, savings and interruption risk across AWS, GCP and Azure with the spotinfo CLI.

    164 GitHub stars~1.8k tokensUpdated 2 days ago
    DevOps & CloudAuto-check passed
  • Deep static code review of an mql provider for logic errors, nil-handling bugs, pagination truncation, caching/id collisions, and other defects that silently give users wrong data.

    411 GitHub stars~2.9k tokensUpdated today
    DevOps & CloudAuto-check passed
  • Frugal

    yuanboP/frugal

    Cloud cost awareness for agents. An agent skill from yuanboP/frugal.

    198 GitHub stars~2.1k tokensUpdated 2 mo ago
    DevOps & CloudAuto-check passed

More from ancoleman/ai-design-components

All 75 skills in this repo
  • Building AI Chat

    ancoleman/ai-design-components

    Builds AI chat interfaces and conversational UI with streaming responses, context management, and multi-modal support.

    526 GitHub starsUsed in 1 repo~3.4k tokens
    Auto-check passed
  • Building Forms

    ancoleman/ai-design-components

    Builds form components and data collection interfaces including contact forms, registration flows, checkout processes, surveys, and settings pages.

    526 GitHub stars~3.7k tokensUpdated 10 mo ago
    Auto-check passed
  • Building Tables

    ancoleman/ai-design-components

    Builds tables and data grids for displaying tabular information, from simple HTML tables to complex enterprise data grids.

    526 GitHub stars~1.8k tokensUpdated 10 mo ago
    Auto-check passed
  • Creating Dashboards

    ancoleman/ai-design-components

    Creates comprehensive dashboard and analytics interfaces that combine data visualization, KPI cards, real-time updates, and interactive layouts.

    526 GitHub stars~3.5k tokensUpdated 10 mo ago
    Auto-check passed
  • Designing Layouts

    ancoleman/ai-design-components

    Designs layout systems and responsive interfaces including grid systems, flexbox patterns, sidebar layouts, and responsive breakpoints.

    526 GitHub stars~1.7k tokensUpdated 10 mo ago
    Auto-check passed
  • Displaying Timelines

    ancoleman/ai-design-components

    Displays chronological events and activity through timelines, activity feeds, Gantt charts, and calendar interfaces.

    526 GitHub stars~2.7k tokensUpdated 10 mo ago
    Auto-check passed

Categories

Questions about Optimizing Costs

What does Optimizing Costs do?

Optimize cloud infrastructure costs through FinOps practices, commitment discounts, right-sizing, and automated cost management. Optimizing Costs is an agent skill from ancoleman/ai-design-components. Optimize cloud infrastructure costs through FinOps practices, commitment discounts, right-sizing, and automated cost management.

When should I use Optimizing Costs?

Optimizing Costs fits situations like: reducing cloud spend; implementing budget controls; establishing cost visibility across AWS; Kubernetes environments.

How do I install Optimizing Costs in Claude Code?

Run `npx skills add ancoleman/ai-design-components --skill optimizing-costs -a claude-code`. Or copy the skill folder (skills/optimizing-costs in ancoleman/ai-design-components) into .claude/skills/optimizing-costs in your project. Claude Code loads it when a task matches its description.

How do I install Optimizing Costs in Codex?

Run `npx skills add ancoleman/ai-design-components --skill optimizing-costs -a codex`. Or copy the skill folder (skills/optimizing-costs in ancoleman/ai-design-components) into .agents/skills/optimizing-costs in your project. Codex loads it when a task matches its description.

Can I use Optimizing Costs in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add ancoleman/ai-design-components --skill optimizing-costs -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/optimizing-costs, .gemini/skills/optimizing-costs, .github/skills/optimizing-costs and .opencode/skills/optimizing-costs in your project.

What does Optimizing Costs need to run?

Going by SKILL.md and its folder, Optimizing Costs needs Python for the scripts in its folder. Our summary lists: Python 3.

Does Optimizing Costs access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Optimizing Costs safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Optimizing Costs use?

Optimizing Costs is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Optimizing Costs use?

About 5.1k tokens (SKILL.md is roughly 21k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 19k tokens, read only when the agent opens those files.

What are the alternatives to Optimizing Costs?

Skills that share tags, products or a category with Optimizing Costs: Infrastructure Devops Cloud Architect (chendongqi/OPB-Skills, 125 stars), SkyPilot Multi-Cloud Orchestration (Orchestra-Research/AI-Research-SKILLs, 13k stars), Cloud Cost Optimization (wshobson/agents, 40k stars) and Spotinfo (alexei-led/spotinfo, 164 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Optimizing Costs?

ancoleman (a GitHub user) maintains it in ancoleman/ai-design-components, which has 526 GitHub stars. The repository holds 75 skills in this directory. The repository was last updated on December 11, 2025.

Source: ancoleman/ai-design-components on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.