Skip to content
Back to skills

Aws Scan Cost

ASecurity

Query current AWS billing data and identify top cost drivers using Cost Explorer.

  • 3 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 7, 2026
devopsaws

Security analysis

A100/100

Scanned November 7, 2026

npx -y skills add nirecom/agents --skill aws-scan-cost --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Aws Scan Cost?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Aws Scan Cost
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/nirecom-aws-scan-cost/badge)](https://www.skillsdirectory.com/skills/nirecom-aws-scan-cost)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: aws-scan-cost
description: Query current AWS billing data and identify top cost drivers using Cost Explorer.
model: sonnet
context: fork
---

## Procedure

ASC-1. Verify prerequisites. Requires ce:GetCostAndUsage.
ASC-2. Query (pass `--profile $AWS_PROFILE`; Cost Explorer ignores region):
   - Current month: `aws ce get-cost-and-usage --time-period Start=<YYYY-MM-01>,End=<today> --granularity MONTHLY --metrics BlendedCost --group-by Type=DIMENSION,Key=SERVICE`
   - Previous month: same with prior month range
ASC-3. Identify top 5 cost drivers; calculate MoM delta.
ASC-4. Write raw data to `$AWS_STATE_DIR/cost-<YYYYMMDD>.json`.
ASC-5. Write human-readable summary to `$AWS_STATE_DIR/cost-<YYYYMMDD>.md`:
   - Top 5 services ranked by cost (no dollar amounts — relative % or rank only)
   - MoM trend per service (up/down/flat)
ASC-6. Print: rank 1–5 only (no dollar amounts in conversation).

## Rules

- Read-only. Dollar amounts must NOT appear in conversation.
- Skip gracefully if Cost Explorer disabled or access denied.
- Time ranges in UTC YYYY-MM-DD.

## Skip Conditions

Skip if `$AWS_STATE_DIR/cost-<YYYYMMDD>.json` exists and is less than 4 hours old.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in devops →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.