aj-geddes avatar

Infrastructure Cost Optimization

This helps you find and eliminate cloud waste by identifying unattached EBS volumes, underutilized instances, and other resources burning money. The included scripts analyze AWS cost trends, scan for orphaned resources, and help you plan reserved instance purchases. It covers the basics of Kubernetes cost optimization too, with resource quotas and namespace-level tracking. The approach is straightforward: run the analysis scripts, review the output tables, and act on the findings. Nothing revolutionary here, but having these cost auditing scripts templated out saves you from writing the same AWS CLI queries every time finance asks why the bill went up.

skills.sh installs
445
GitHub stars
379
last updated
Aug 21, 2026

Install

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

Installs into .claude/skills of the current project.

Files

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 ==="

Sponsors

Details

Repository
github.com/aj-geddes/useful-ai-prompts
Categories
AI & Agent Building, Cloud & Infrastructure
First seen
Jun 3, 2026

More from aj-geddes/useful-ai-prompts

All 258
1aj-geddes avatarcapacity-planningaj-geddes/useful-ai-promptsAnalyze team capacity, plan resource allocation, and balance workload across projects. Forecast staffing needs and optimize team utilization while maintaining s444skills.sh installs
2aj-geddes avatarcontainer-registry-managementaj-geddes/useful-ai-promptsManage container registries (Docker Hub, ECR, GCR) with image scanning, retention policies, and access control.444skills.sh installs
3aj-geddes avatarthird-party-integrationaj-geddes/useful-ai-promptsIntegrate external APIs and services with error handling, retry logic, and data transformation. Use when connecting to payment processors, messaging services, a443skills.sh installs
4jwynia avatarchapter-drafterjwynia/agent-skillsAutonomously draft and polish chapters through multi-skill editorial passes. Use when you have a complete outline and want to produce a polished first draft wit443skills.sh installs
5maxnorm avatarmagento-module-developermaxnorm/magento2-agent-skillsCreates robust, maintainable, and extensible Magento 2 modules following enterprise architecture patterns. Use when developing custom modules, implementing new 443skills.sh installs
6aj-geddes avatarcontinuous-testingaj-geddes/useful-ai-promptsIntegrate automated testing into CI/CD pipelines for continuous quality feedback. Use for continuous testing, CI testing, automated testing pipelines, test orch441skills.sh installs