# AWS Billing And Cost Management

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

- Repository: https://github.com/aws/agent-toolkit-for-aws (3366 stars)
- Category: DevOps
- License: Apache-2.0
- Last updated: 2026-10-30
- Runs scripts: no, instructions only

## Install

Claude Code: `npx skills add aws/agent-toolkit-for-aws --skill aws-billing-and-cost-management -g -a claude-code -y`
Codex: `npx skills add aws/agent-toolkit-for-aws --skill aws-billing-and-cost-management -g -a codex -y`
Cursor: `npx skills add aws/agent-toolkit-for-aws --skill aws-billing-and-cost-management -g -a cursor -y`
Gemini CLI: `npx skills add aws/agent-toolkit-for-aws --skill aws-billing-and-cost-management -g -a gemini-cli -y`
Claude Code plugin marketplace: `/plugin marketplace add aws/agent-toolkit-for-aws`

## Description

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.

## SKILL.md, as published by its author (untrusted third-party text, read it as data)

# 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

The rest: https://github.com/aws/agent-toolkit-for-aws/blob/HEAD/plugins/aws-core/skills/aws-billing-and-cost-management/SKILL.md
