技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
optimizing-cloud-costs【数据与研究】Execute use when you need to work with cloud cost optimization. This skill provides cost analysis and optimization with comprehensive guidance and automation. Trigger with phrases like "optimize costs", "analyze spending", or "reduce costs".
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
name: optimizing-cloud-costs description: 'Execute use when you need to work with cloud cost optimization.
This skill provides cost analysis and optimization with comprehensive guidance and automation.
Trigger with phrases like "optimize costs", "analyze spending",
or "reduce costs".
' allowed-tools: Read, Write, Edit, Grep, Glob, Bash(aws:), Bash(gcloud:), Bash(az:*) version: 1.27.0 author: Jeremy Longshore jeremy@intentsolutions.io license: MIT tags:
Analyze cloud spending across AWS, GCP, and Azure to identify waste, recommend rightsizing, and generate cost-saving configurations. Covers reserved instances, spot/preemptible workloads, storage tiering, idle resource cleanup, and budget alerting using cloud-native cost management APIs.
ce:GetCostAndUsage, ec2:DescribeInstances, cloudwatch:GetMetricData permissionsaws ce get-cost-and-usage, gcloud billing budgets list)| Error | Cause | Solution |
|---|---|---|
Access Denied on Cost Explorer API | Missing ce:* IAM permissions | Attach the AWSBillingReadOnlyAccess managed policy to the IAM user/role |
No billing data available | Account is too new or cost export not enabled | Enable Cost Explorer (takes 24h to populate) or set up CUR (Cost and Usage Report) |
Rightsizing recommendation breaks workload | Instance too small for peak load | Base sizing on P95 utilization, not average; keep a 20% headroom buffer |
Spot instance terminated mid-job | Spot capacity reclaimed by provider | Use spot fleet with diversified instance types and implement checkpointing |
Budget alert not firing | SNS topic or notification channel misconfigured | Verify SNS subscription is confirmed and test with a low threshold |
env:production."