Skip to content
Skill Authoring
Skill

/infrastructure-cost-optimization

Optimize cloud infrastructure costs through resource rightsizing, reserved instances, spot instances, and waste reduction strategies.

From plugin
useful-ai-prompts
309200 skills
Install
$ npx -y skills add aj-geddes/useful-ai-prompts --skill infrastructure-cost-optimization --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.
  • Slash command/infrastructure-cost-optimization

Context preview

The summary Claude sees to decide when to auto-load this skill.

Optimize cloud infrastructure costs through resource rightsizing, reserved instances, spot instances, and waste reduction strategies.

SKILL.md

infrastructure-cost-optimization.SKILL.md
name: infrastructure-cost-optimization
description: >
  Optimize cloud infrastructure costs through resource rightsizing, reserved
  instances, spot instances, and waste reduction strategies.

Infrastructure Cost Optimization

Table of Contents

  • [Overview](#overview)
  • [When to Use](#when-to-use)
  • [Quick Start](#quick-start)
  • [Reference Guides](#reference-guides)
  • [Best Practices](#best-practices)

Overview

Reduce infrastructure costs through intelligent resource allocation, reserved instances, spot instances, and continuous optimization without sacrificing performance.

When to Use

  • Cloud cost reduction
  • Budget management and tracking
  • Resource utilization optimization
  • Multi-environment cost allocation
  • Waste identification and elimination
  • Reserved instance planning
  • Spot instance integration

Quick Start

Minimal working example:

# cost-optimization-setup.yaml
apiVersion: v1
kind: ConfigMap
metadata:
  name: cost-optimization-scripts
  namespace: operations
data:
  analyze-costs.sh: |
    #!/bin/bash
    set -euo pipefail

    echo "=== AWS Cost Analysis ==="

    # Get daily cost trend
    echo "Daily costs for last 7 days:"
    aws ce get-cost-and-usage \
      --time-period Start=$(date -d '7 days ago' +%Y-%m-%d),End=$(date +%Y-%m-%d) \
      --granularity DAILY \
      --metrics "BlendedCost" \
      --group-by Type=DIMENSION,Key=SERVICE \
      --query 'ResultsByTime[*].[TimePeriod.Start,Total.BlendedCost.Amount]' \
      --output table

    # Find unattached resources
    echo -e "\n=== Unattached EBS Volumes ==="
// ... (see reference guides for full implementation)

Reference Guides

Detailed implementations in the `references/` directory:

| Guide | Contents | |---|---| | [AWS Cost Optimization Configuration](references/aws-cost-optimization-configuration.md) | AWS Cost Optimization Configuration | | [Kubernetes Cost Optimization](references/kubernetes-cost-optimization.md) | Kubernetes Cost Optimization | | [Cost Monitoring Dashboard](references/cost-monitoring-dashboard.md) | Cost Monitoring Dashboard |

Best Practices

✅ DO

  • Follow established patterns and conventions
  • Write clean, maintainable code
  • Add appropriate documentation
  • Test thoroughly before deploying

❌ DON'T

  • Skip testing or validation
  • Ignore error handling
  • Hard-code configuration values
Read more
Ships withuseful-ai-prompts

488 production-ready AI prompts, all following a standardized template with validated quality gates. Transform ChatGPT, Claude, and other AI assistants into expert consultants.

Get the whole plugin