From aj-geddes-useful-ai-prompts-4
Optimizes cloud infrastructure costs through resource rightsizing, reserved instances, spot instances, and waste reduction strategies. Includes AWS and Kubernetes cost optimization scripts and dashboards.
How this skill is triggered — by the user, by Claude, or both
Slash command
/aj-geddes-useful-ai-prompts-4:infrastructure-cost-optimizationThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
- [Overview](#overview)
Reduce infrastructure costs through intelligent resource allocation, reserved instances, spot instances, and continuous optimization without sacrificing performance.
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)
Detailed implementations in the references/ directory:
| Guide | Contents |
|---|---|
| AWS Cost Optimization Configuration | AWS Cost Optimization Configuration |
| Kubernetes Cost Optimization | Kubernetes Cost Optimization |
| Cost Monitoring Dashboard | Cost Monitoring Dashboard |
npx claudepluginhub joshuarweaver/cascade-code-languages-misc-1 --plugin aj-geddes-useful-ai-prompts-4Optimizes and manages cloud costs across AWS, Azure, and GCP using reserved instances, spot pricing, right-sizing, and cost monitoring tools.
Optimize cloud costs across AWS, Azure, and GCP via rightsizing, reserved instances, savings plans, tagging, and lifecycle policies. Use when reducing cloud spending or implementing cost governance.
Optimizes cloud costs across AWS, Azure, GCP, and OCI with rightsizing, tagging, reserved instances, and spending analysis. Use for reducing cloud expenses or implementing cost governance.