From aj-geddes-useful-ai-prompts-4
Optimizes and manages cloud costs across AWS, Azure, and GCP using reserved instances, spot pricing, right-sizing, and cost monitoring tools.
How this skill is triggered — by the user, by Claude, or both
Slash command
/aj-geddes-useful-ai-prompts-4:cloud-cost-managementThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
- [Overview](#overview)
Cloud cost management involves monitoring, analyzing, and optimizing cloud spending. Implement strategies using reserved instances, spot pricing, proper sizing, and cost allocation to maximize ROI and prevent budget overruns.
Minimal working example:
# Enable Cost Explorer
aws ce get-cost-and-usage \
--time-period Start=2024-01-01,End=2024-01-31 \
--granularity MONTHLY \
--metrics "UnblendedCost" \
--group-by Type=DIMENSION,Key=SERVICE
# List EC2 instances for right-sizing
aws ec2 describe-instances \
--query 'Reservations[*].Instances[*].[InstanceId,InstanceType,State.Name,LaunchTime,Tag]' \
--output table
# Find unattached EBS volumes
aws ec2 describe-volumes \
--filters Name=status,Values=available \
--query 'Volumes[*].[VolumeId,Size,State,CreateTime]'
# Identify unattached Elastic IPs
aws ec2 describe-addresses \
--query 'Addresses[?AssociationId==null]'
# Get RDS instance costs
aws rds describe-db-instances \
--query 'DBInstances[*].[DBInstanceIdentifier,DBInstanceClass,StorageType,AllocatedStorage]'
// ... (see reference guides for full implementation)
Detailed implementations in the references/ directory:
| Guide | Contents |
|---|---|
| AWS Cost Optimization with AWS CLI | AWS Cost Optimization with AWS CLI |
| Terraform Cost Management Configuration | Terraform Cost Management Configuration |
| Azure Cost Management | Azure Cost Management |
| GCP Cost Optimization | GCP Cost Optimization |
| Cost Monitoring Dashboard | Cost Monitoring Dashboard |
npx claudepluginhub joshuarweaver/cascade-code-languages-misc-1 --plugin aj-geddes-useful-ai-prompts-4Optimize 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.
Analyzes AWS, GCP, Azure costs via APIs; detects idle resources, top spenders; recommends rightsizing, RIs, spot workloads, storage tiering; generates IaC changes, reports, alerts.
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.