devops-skills/aws-cost-explorer/SKILL.md
This skill should be used when users need to query AWS cost and usage details for a specific date. It supports querying costs at service level (e.g., EC2, S3, RDS) and drilling down to usage type level (e.g., instance types, storage classes, data transfer). Triggers on requests mentioning AWS costs, billing, spending, cost breakdown, or fee analysis.
npx skillsauth add oldwinter/skills aws-cost-explorerInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Query AWS costs and usage details with flexible granularity - from service-level overview to detailed usage type breakdown.
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
| Option | Short | Description |
|--------|-------|-------------|
| --days-ago | -d | Query N days ago (default: 2, i.e., day before yesterday) |
| --date | | Query specific date (YYYY-MM-DD format) |
| --min-cost | -m | Minimum cost threshold to display (default: 0) |
| --service | -s | Query usage type breakdown for a specific service |
| --detailed | | Show all services with usage type breakdown |
| --json | -j | Output in JSON format |
When using --service, use the exact AWS service names:
| Common Name | AWS Service Name |
|-------------|------------------|
| OpenSearch | Amazon OpenSearch Service |
| DocumentDB/MongoDB | Amazon DocumentDB (with MongoDB compatibility) |
| EC2 Compute | Amazon Elastic Compute Cloud - Compute |
| EC2 Other (EBS, NAT) | EC2 - Other |
| EFS | Amazon Elastic File System |
| S3 | Amazon Simple Storage Service |
| RDS | Amazon Relational Database Service |
| EKS | Amazon Elastic Container Service for Kubernetes |
| VPC | Amazon Virtual Private Cloud |
| Bedrock | Amazon Bedrock |
| Lambda | AWS Lambda |
| CloudWatch | AmazonCloudWatch |
Common usage type patterns:
| Pattern | Meaning |
|---------|---------|
| BoxUsage:* | EC2 instance hours (e.g., BoxUsage:m7i.large) |
| ESInstance:* | OpenSearch instance hours |
| EBS:VolumeUsage.* | EBS storage (e.g., EBS:VolumeUsage.gp3) |
| TimedStorage-ByteHrs | S3/EFS storage capacity |
| DataTransfer-* | Data transfer costs |
| NatGateway-* | NAT Gateway costs |
| VpcEndpoint-* | VPC Endpoint costs |
| *-input-tokens / *-output-tokens | Bedrock token usage |
| Elastic*Usage | DocumentDB Elastic costs |
ce:GetCostAndUsageFirst, get service-level overview:
python3 <skill-path>/scripts/cost_query.py --min-cost 5
Identify high-cost services, then drill down:
python3 <skill-path>/scripts/cost_query.py --service "Amazon OpenSearch Service" --min-cost 1
For comprehensive analysis, use detailed mode:
python3 <skill-path>/scripts/cost_query.py --detailed --min-cost 5
devops
Deploy applications and infrastructure to Cloudflare using Workers, Pages, and related platform services. Use when the user asks to deploy, host, publish, or set up a project on Cloudflare.
tools
This skill should be used when users need to manage AWS Support cases via CLI. It handles listing cases (recent 2 weeks, unresolved), viewing case details with bilingual display (English-Chinese line by line), creating new cases with auto-detected service/category, replying to cases, and attachment handling. Triggers on requests mentioning "AWS support", "support case", "工单", "support ticket", or AWS technical support inquiries.
tools
This skill should be used when users need to interact with AWS services via CLI. It covers all AWS services including EC2, ECS, EKS, Lambda, S3, RDS, DynamoDB, VPC, Route53, CloudFront, Bedrock, Support, Billing, and more. Supports querying, creating, modifying, deleting resources, monitoring, debugging, and cost analysis. Triggers on requests mentioning AWS, cloud resources, or specific AWS service names.
development
This skill should be used when the user requests to add a new third-party API service to the AWS billing/quota monitoring system. It handles the complete onboarding process including adapter creation, Lambda deployment, CloudWatch alarms, Dashboard updates, and verification. Triggers on requests mentioning "add service monitoring", "monitor API balance", "setup quota alerts", "add to billing dashboard", or similar service integration requests.