Skills

AWS Billing And Cost Management

Analyze AWS costs, find savings, manage budgets, evaluate Savings Plans and Reserved...

Install

npx skills add aws/agent-toolkit-for-aws --skill aws-billing-and-cost-management -g -a claude-code -y
Category
DevOps
Updated
5d ago
License
Apache-2.0
Context cost
Mediumabout 2,120 tokens
Runs scripts
No, instructions only

What it does

Analyze AWS costs, find savings, manage budgets, evaluate Savings Plans and Reserved Instances, right-size EC2/Lambda/RDS/EBS with Compute Optimizer, look up service pricing, query CUR with Athena, detect cost anomalies, scope costs to billing views, and monitor Free Tier usage. Triggers on: AWS bill, cost analysis, reduce spend, savings plan, reserved instance, right-size, budget alert, cost optimization, pricing, free tier, cost anomaly, CUR, cost audit, billing view, billing view ARN.

Billing and Cost Management

Overview

Analyze, optimize, and manage AWS costs. This skill encodes domain expertise from AWS's cost management products, gotchas, correct API usage patterns, and optimization workflows that models frequently get wrong.

Usage

Use this skill when:

  • Analyzing AWS spending, cost trends, or cost breakdowns
  • Setting up or managing budget alerts
  • Evaluating Savings Plans or Reserved Instance purchases
  • Right-sizing EC2, Lambda, RDS, or EBS resources
  • Looking up AWS service pricing
  • Running cost audits or investigating cost spikes
  • Querying CUR data with Athena
  • Scoping cost analysis to a specific billing view
  • Checking Free Tier usage

Core Concepts

  • Cost Explorer, query cost/usage data by service, account, tag, or time range
  • Budgets, set spending thresholds with alerts; supports billing view scoping
  • Billing Views, scope cost data to a subset of billing (custom view, billing group, or primary)
  • Compute Optimizer, right-sizing recommendations for EC2, Lambda, EBS, RDS
  • Cost Optimization Hub, aggregated savings recommendations across services
  • Savings Plans / Reserved Instances, commitment-based discounts
  • CUR 2.0, detailed line-item billing data queryable via Athena

Recommended setup: Use the AWS MCP server for sandboxed execution, audit logging, and enterprise controls. See: https://docs.aws.amazon.com/aws-mcp/

Without AWS MCP: All commands use standard AWS CLI syntax and work with any agent that has CLI access.

Critical Rule: Always Check the Current Date

Before making ANY Cost Explorer, Budgets, or Savings Plans API call, you MUST determine the current date. Use a tool to get the current date and time, do NOT assume or guess the year. LLMs frequently default to dates from their training data instead of the actual current date, producing analyses of stale data that appear correct but are completely wrong.

Critical Rule: Deterministic Calculations

Read the whole SKILL.md on GitHub

More in DevOps