技能 aws-cost-optimizer
📦

aws-cost-optimizer

安全

分析和优化AWS云成本

如果没有适当的监控,云成本往往会失控。此技能可识别资源浪费、分析支出模式,并提供使用AWS原生工具的可执行成本优化策略。

支持: Claude Codex Code(CC)
🥉 73 青铜
1

下载技能 ZIP

2

在 Claude 中上传

前往 设置 → 功能 → 技能 → 上传技能

3

开启并开始使用

测试它

正在使用“aws-cost-optimizer”。 Find all unattached EBS volumes and unused Elastic IPs

预期结果:

Found 3 unattached EBS volumes totaling 500 GB ($50/month) and 2 unused Elastic IPs ($7.20/month). Total potential savings: $57.20/month. Volume vol-abc123 created 45 days ago, 200 GB gp2. Volume vol-def456 created 30 days ago, 100 GB gp2...

正在使用“aws-cost-optimizer”。 Compare this month spending to last month

预期结果:

Current month (partial): $3,247. Last month: $2,891. Increase: $356 (12.3%). Top increases: EC2 +$210 (15%), RDS +$89 (8%), Data Transfer +$57 (22%). Primary driver: New m5.xlarge instances launched in us-east-1.

安全审计

安全
v1 • 2/24/2026

All 40 static analysis findings are false positives. The skill is documentation containing AWS CLI command examples. Shell command substitutions are bash date formatting in CLI examples, not executable code. URLs are documentation references. Keyword matches for 'C2' and 'weak crypto' are false positives from 'CPU utilization' terminology. No actual code execution or network calls present.

1
已扫描文件
193
分析行数
0
发现项
1
审计总数
未发现安全问题
审计者: claude

质量评分

38
架构
100
可维护性
87
内容
50
社区
100
安全
83
规范符合性

你能构建什么

月度成本审查

财务团队分析AWS月度支出,识别主要成本驱动因素,并为领导层准备云支出趋势报告。

迁移前评估

DevOps工程师在迁移项目前评估当前AWS资源利用率,以在工作负载迁移前识别并消除浪费。

成本优化审计

解决方案架构师进行全面审计,以发现优化机会,如未使用的资源、调整大小候选对象和预留实例缺口。

试试这些提示

基本成本查询
Show me AWS costs for the last 30 days broken down by service, and highlight any services with spending increases over 20% compared to the previous period.
未使用资源检测
Find all unattached EBS volumes, unused Elastic IPs, and EC2 instances with average CPU utilization below 5% over the past 7 days. Calculate the monthly cost savings if these resources are removed or stopped.
调整大小分析
Analyze my EC2 and RDS instances using CloudWatch metrics from the past 30 days. Recommend specific instance type changes for any resources consistently using less than 40% of their capacity, and estimate the cost difference.
高管成本报告
Generate a cost optimization report suitable for leadership that includes: total monthly spend, top 5 cost categories, identified waste with dollar amounts, recommended actions with estimated savings, and a 3-month cost trend visualization.

最佳实践

  • 在删除前务必通过检查标签和咨询团队成员来验证资源确实未使用
  • 启用AWS成本异常检测并设置预算警报以进行主动监控
  • 在将调整大小建议应用于生产工作负载之前,先在非生产环境中测试

避免

  • 在未验证资源是否被灾难恢复或备份进程使用的情况下删除资源
  • 仅关注成本降低而不考虑性能和可靠性影响
  • 在没有回滚计划的情况下在工作时间进行优化更改

常见问题

使用此技能需要哪些AWS权限?
需要只读权限:ce:GetCostAndUsage用于Cost Explorer,ec2:Describe*用于资源发现,cloudwatch:GetMetricStatistics用于利用率数据。分析不需要写权限。
此技能是否可以自动删除未使用的资源?
不可以。此技能仅提供分析和建议。所有删除或修改命令必须由用户手动审查和执行,以防止意外数据丢失。
AWS Cost Explorer可以追溯多早的数据?
AWS Cost Explorer最多保留12个月的历史成本数据。对于更早的数据,需要将报告导出到S3并单独分析。
此技能是否适用于AWS Organizations?
是的,当从管理账户使用适当权限运行时,它可以分析组织中所有成员账户的合并账单数据。
BlendedCost和UnblendedCost指标之间有什么区别?
BlendedCost使用组织内账户的混合费率。UnblendedCost反映每个账户的实际费率。进行准确的每账户成本分析时使用UnblendedCost。
我应该多久运行一次成本优化分析?
每周运行快速检查以发现未使用的资源。每月进行全面分析以进行预算审查。在重大基础设施更改之前或每季度进行深度优化审计。

开发者详情

文件结构

📄 SKILL.md