Token导航 LogoToken导航TokenDH.com
研究检索权限需确认github未标认证来源可访问clear审计通过

aws-cost-explorerAWS cost explorer 搜索

Agent Skill

用于辅助云资源、部署、容器、基础设施和运维自动化任务。它适合让 Agent 检查配置、整理部署步骤、分析资源状态、生成排障思路或辅助云服务接入。使用时需要明确目标环境、账号权限、区域和资源组,区分本地测试与生产操作;涉及删除资源、重启服务、修改网络或权限配置时,应先确认影响范围。

总安装

1,004

周安装

41

GitHub Stars

3

下载量

325
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:aws-cost-explorer(AWS cost explorer 搜索)
来源仓库:https://github.com/oldwinter/skills
仓库路径:skills/aws-cost-explorer
安装命令:
npx skills add https://github.com/oldwinter/skills --skill aws-cost-explorer
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/oldwinter/skills --skill aws-cost-explorer

简介

用于灵活查询 AWS 账单明细,从服务概览到具体用量类型的逐层下钻分析。

  • 支持按天粒度统计 EC2、S3 等服务成本,并可筛选最低消费阈值过滤小额条目。
  • 输出格式可选人类可读表格或结构化 JSON,适配不同下游系统集成需求。
  • 查询范围可通过相对日期(如过去7天)或绝对日期精确指定,便于周期性报告生成。
  • 注意 UnblendedCost 反映实际计费周期,BlendedCost 为加权平均值,使用时应区分场景。

SKILL.md

AWS Cost Explorer

Query AWS costs and usage details with flexible granularity - from service-level overview to detailed usage type breakdown.

Capabilities

  • Query daily AWS costs by service (e.g., EC2, S3, OpenSearch, DocumentDB)
  • Drill down to usage type details for specific services (e.g., instance types, storage, data transfer)
  • Filter results by minimum cost threshold
  • Support both relative dates (days ago) and absolute dates (YYYY-MM-DD)
  • Output in human-readable table or JSON format

Usage

Quick Commands

To query costs, use the bundled script at scripts/cost_query.py:

# Query costs from 2 days ago (default) by service
python3 <skill-path>/scripts/cost_query.py

# Query yesterday's costs, show items > $5
python3 <skill-path>/scripts/cost_query.py --days-ago 1 --min-cost 5

# Query specific date
python3 <skill-path>/scripts/cost_query.py --date 2026-01-15

# Query specific service's usage breakdown
python3 <skill-path>/scripts/cost_query.py --service "Amazon OpenSearch Service" --min-cost 1

# Query all services with usage type details
python3 <skill-path>/scripts/cost_query.py --detailed --min-cost 5

# Output as JSON
python3 <skill-path>/scripts/cost_query.py --json --min-cost 5

Script Options

OptionShortDescription
--days-ago-dQuery N days ago (default: 2, i.e., day before yesterday)
--dateQuery specific date (YYYY-MM-DD format)
--min-cost-mMinimum cost threshold to display (default: 0)
--service-sQuery usage type breakdown for a specific service
--detailedShow all services with usage type breakdown
--json-jOutput in JSON format

Common Service Names

When using --service, use the exact AWS service names:

Common NameAWS Service Name
OpenSearchAmazon OpenSearch Service
DocumentDB/MongoDBAmazon DocumentDB (with MongoDB compatibility)
EC2 ComputeAmazon Elastic Compute Cloud - Compute
EC2 Other (EBS, NAT)EC2 - Other
EFSAmazon Elastic File System
S3Amazon Simple Storage Service
RDSAmazon Relational Database Service
EKSAmazon Elastic Container Service for Kubernetes
VPCAmazon Virtual Private Cloud
BedrockAmazon Bedrock
LambdaAWS Lambda
CloudWatchAmazonCloudWatch

Understanding Usage Types

Common usage type patterns:

PatternMeaning
BoxUsage:*EC2 instance hours (e.g., BoxUsage:m7i.large)
ESInstance:*OpenSearch instance hours
EBS:VolumeUsage.*EBS storage (e.g., EBS:VolumeUsage.gp3)
TimedStorage-ByteHrsS3/EFS storage capacity
DataTransfer-*Data transfer costs
NatGateway-*NAT Gateway costs
VpcEndpoint-*VPC Endpoint costs
*-input-tokens / *-output-tokensBedrock token usage
Elastic*UsageDocumentDB Elastic costs

Prerequisites

  • AWS CLI configured with appropriate credentials
  • IAM permissions for ce:GetCostAndUsage

Example Workflow

  1. First, get service-level overview: python3 <skill-path>/scripts/cost_query.py --min-cost 5
  2. Identify high-cost services, then drill down: python3 <skill-path>/scripts/cost_query.py --service "Amazon OpenSearch Service" --min-cost 1
  3. For comprehensive analysis, use detailed mode: python3 <skill-path>/scripts/cost_query.py --detailed --min-cost 5

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Claude Code

28.36%
按下载量换算92

windsurf

21.68%
按下载量换算70

Antigravity

16.48%
按下载量换算54

trae

13.27%
按下载量换算43

OpenCode

8.94%
按下载量换算29

Gemini CLI

3.47%
按下载量换算11

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

权限需确认

当前来源未能明确判断权限范围,默认进入异常复核队列。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

来源信息

继续浏览同类 Skills