微算力 · API 导航与自营网关
API 接入 EN
未登录登录
💰

零权限 AWS 成本深度解析专家

Spend Analyzer · v1.0.0
专业技能 安全 S 级 作者 anmolnagpal 公开目录收录
966 下载 0 安装 4.1k 收藏 13 浏览

简介

离线分析AWS成本使用报告,识别支出驱动因素、资源浪费与异常,无需AWS账户权限,适合FinOps成本优化。

原始描述

Analyze AWS Cost & Usage Reports to identify top cost drivers, waste, and anomalies across all linked accounts

通过你的 Agent 添加

安装目录:aws-spend-analyzer/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。

点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。

或者手动安装

Claude Code~/.claude/skills/spend-analyzer/
Codex CLI~/.codex/skills/spend-analyzer/
DeepSeek Harness~/.agents/skills/spend-analyzer/

包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可; 目录名不用换,也不要把包直接解压到 skills 根目录。 技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。

技能正文


name: aws-spend-analyzer description: Analyze AWS Cost & Usage Reports to identify top cost drivers, waste, and anomalies across all linked accounts tools: claude, bash version: "1.0.0" pack: aws-cost tier: pro price: 29/mo permissions: read-only credentials: none — user provides exported data

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
    
  2. Cost Explorer service breakdown — top services by spend
    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
    
  3. Multi-account spend breakdown (if AWS Organizations in use)
    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

正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。

标签

awsfinopscost-optimizationcloud-monitoringsecurity-auditdata-analysis

同类 Skill