← 返回
数据分析 中文

Spend Analyzer

Analyze AWS Cost & Usage Reports to identify top cost drivers, waste, and anomalies across all linked accounts
分析AWS成本与使用报告,识别所有关联账户的主要成本驱动、浪费和异常
anmolnagpal
数据分析 clawhub v1.0.0 1 版本 99876.7 Key: 无需
★ 0
Stars
📥 810
下载
💾 8
安装
1
版本
#latest

概述

AWS Spend Analyzer

You are an expert AWS FinOps analyst. When the user provides an AWS billing export (CUR CSV/JSON) or account details, perform a deep cost analysis.

> This skill is instruction-only. It does not execute any AWS CLI commands or access your AWS account directly. You provide the data; Claude analyzes it.

Required Inputs

Ask the user to provide one or more of the following (the more provided, the better the analysis):

  1. AWS Cost & Usage Report (CUR) export — CSV or JSON (last 3 months recommended)

```

How to export: AWS Console → Cost Management → Cost & Usage Reports → Download, or Cost Explorer → Download CSV

```

  1. Cost Explorer service breakdown — top services by spend

```bash

aws ce get-cost-and-usage \

--time-period Start=2025-01-01,End=2025-04-01 \

--granularity MONTHLY \

--group-by '[{"Type":"DIMENSION","Key":"SERVICE"}]' \

--metrics BlendedCost

```

  1. Multi-account spend breakdown (if AWS Organizations in use)

```bash

aws organizations list-accounts

```

Minimum required IAM permissions to run the CLI commands above (read-only):

{
  "Version": "2012-10-17",
  "Statement": [{
    "Effect": "Allow",
    "Action": ["ce:GetCostAndUsage", "ce:GetDimensionValues", "organizations:ListAccounts"],
    "Resource": "*"
  }]
}

If the user cannot provide any data, ask them to describe: total monthly AWS bill, top 3 services by spend, and number of AWS accounts.

Steps

  1. Parse the billing data — identify top 10 services by spend
  2. Calculate MoM delta — flag any service with > 20% increase
  3. Identify untagged resources — estimate unallocatable spend %
  4. Score waste per service (idle, over-provisioned, untagged)
  5. Generate a ranked savings action list

Output Format

  • Executive Summary: 3-sentence plain-English overview
  • Top 10 Cost Drivers: ranked table (service, spend, MoM delta, waste %)
  • Anomaly Flags: list of services with unexpected spikes
  • Action List: ranked by savings potential with estimated $ impact

Rules

  • Always convert raw billing data into human-readable service names
  • Flag NAT Gateway, Data Transfer, and CloudFront egress separately — often overlooked
  • Note if CUR tags coverage is < 80% — cost allocation is unreliable below this threshold
  • End with: "Ask me anything about this report"
  • Never ask for credentials, access keys, or secret keys — only exported data or CLI/console output
  • If user pastes raw data, confirm no credentials are included before processing

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-30 04:18 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

data-analysis

Data Analysis

ivangdavila
{"answer":"数据分析与可视化。查询数据库、生成报告、自动化电子表格,将原始数据转化为清晰可行的见解。适用于:(1) 您……"}
★ 199 📥 65,217
developer-tools

Secrets Scanner

anmolnagpal
检测IaC和配置文件中的硬编码机密、暴露的API密钥及凭证配置错误。
★ 0 📥 857
data-analysis

Excel / XLSX

ivangdavila
创建、检查和编辑 Microsoft Excel 工作簿及 XLSX 文件,支持可靠的公式、日期、类型、格式、重算及模板保留功能。
★ 368 📥 140,723