mcpField
I
infrastructure-cost-optimization

infrastructure-cost-optimization

github.com/aj-geddesCloud & DevOps373442 installsUpdated 34w ago
Repository

About infrastructure-cost-optimization

A skill for reducing infrastructure spending through resource allocation, reserved and spot instances, and ongoing optimization. It includes guidance for cloud cost management, Kubernetes, and cost monitoring.

Key features

  1. 01Resource utilization optimization
  2. 02Reserved and spot instance planning
  3. 03Cloud budget tracking
  4. 04Waste identification and reduction
  5. 05AWS and Kubernetes reference guides

Use cases

  1. 01Reduce cloud infrastructure costs
  2. 02Track budgets across environments
  3. 03Identify underused resources
  4. 04Plan reserved or spot instances

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/aj-geddes/useful-ai-prompts --skill infrastructure-cost-optimization

After installing, type/infrastructure-cost-optimizationin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

references/
aws-cost-optimization-configuration.md
cost-monitoring-dashboard.md
kubernetes-cost-optimization.md
scripts/
validate-config.sh
templates/
config-starter.yaml

Details

From the project README

Infrastructure Cost Optimization

Table of Contents

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:

GuideContents
AWS Cost Optimization ConfigurationAWS Cost Optimization Configuration
Kubernetes Cost OptimizationKubernetes Cost Optimization
Cost Monitoring DashboardCost 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

Comments

Markdown supported