/aws-cost-audit:idle [--profile member] [--region us-east-1]from AWS Cost Audit
Scans AWS accounts for idle, cost-incurring resources with evidence: NAT gateways with zero traffic, unattached EBS volumes, unassociated Elastic IPs, load balancers with no healthy targets, underutilized EC2 instances, ECR repos without lifecycle policies, and CloudWatch log groups without retention. Read-only; recommends deletions.
Ships in AWS Cost Audit. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Profiles from the configuration (${user_config.member_profiles}, and the payer too, which often
holds forgotten networking) and the region (${user_config.region}), unless given as arguments.
Run for every account; idle resources live where nobody looks.
Standard of proof, before calling anything idle: metrics with datapoints present at zero for the window (not missing); the same query against an active resource returns data (control); the topology shows nothing that could use it. Missing data is reported as "unknown", never as idle.
# NAT gateways: three independent evidences (CloudWatch 180d, route tables → subnets → ENIs, consumers)
python3 -I "${CLAUDE_PLUGIN_ROOT}/scripts/nat_idle_check.py" --profile <p> --region <r> --days 180
# volumes, addresses, load balancers
aws ec2 describe-volumes --profile <p> --region <r> --filters Name=status,Values=available --query 'Volumes[].{id:VolumeId,gb:Size,type:VolumeType,created:CreateTime}' --output table
aws ec2 describe-addresses --profile <p> --region <r> --query 'Addresses[?AssociationId==null].{ip:PublicIp,alloc:AllocationId}' --output table
for lb in $(aws elbv2 describe-load-balancers --profile <p> --region <r> --query 'LoadBalancers[].LoadBalancerArn' --output text); do
for tg in $(aws elbv2 describe-target-groups --profile <p> --region <r> --load-balancer-arn $lb --query 'TargetGroups[].TargetGroupArn' --output text); do
aws elbv2 describe-target-health --profile <p> --region <r> --target-group-arn $tg --query 'length(TargetHealthDescriptions)' --output text
done
done
# instances: 14-day average CPU per instance (hour-of-day table; look at the avg)
python3 -I "${CLAUDE_PLUGIN_ROOT}/scripts/cw_hod.py" --profile <p> --region <r> '[{"ns":"AWS/EC2","metric":"CPUUtilization","dims":{"InstanceId":"<id>"},"label":"<name> CPU %"}]'
# registries and logs that grow forever
aws ecr describe-repositories --profile <p> --region <r> --query 'repositories[].repositoryName' --output text | tr '\t' '\n' | while read repo; do aws ecr get-lifecycle-policy --profile <p> --region <r> --repository-name "$repo" >/dev/null 2>&1 || echo "no lifecycle: $repo"; done
aws logs describe-log-groups --profile <p> --region <r> --query 'logGroups[?retentionInDays==null].[logGroupName,storedBytes]' --output table
Answer with one table: resource, account, evidence (the numbers), monthly cost (NAT USD 0.045/h ≈
33/month; EBS gp3 USD 0.08/GB-month; EIP USD 3.65/month; ALB/NLB ≈ USD 16/month plus LCU;
instance by on-demand price; ECR USD 0.10/GB-month; logs USD 0.03/GB-month), verdict (idle
proven / likely idle, unproven / in use), and the production impact of removing it
(none for volumes not attached, NAT with zero traffic, loose EIPs; window for anything that
still has a route or a DNS name pointing at it).
Before recommending a deletion, always say what to export first (describe-* output to JSON, a
snapshot for volumes) and what else to clean (blackhole routes after a NAT, DNS records after a
load balancer). Never run the deletion; the guard would deny it anyway.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
4 skills in this plugin
/auditRead-only cost audit of an AWS account (with or without Kubernetes) that ends in an HTML report - the bill classified into fixed categories, the biggest lines, and a four-stage cuts plan (do now / engineering / architecture / contracts) with a monthly savings forecast and the production impact of every action. Use whenever the user asks to reduce the AWS bill, where the money goes, how production is scaled at peak, savings by time of day, Savings Plans, cross-zone traffic, idle NAT, right-sizing or FinOps, even without the word "report". Never changes the account./bill-mapWhere the AWS money goes, in two minutes and in the same shape for every company - the bill of the last 30 days classified into fixed categories (Compute, Network, Data & databases, Storage, SaaS & Marketplace, Commitments, Observability, Security, Tax, Other) with the biggest lines, read from Cost Explorer in the payer account. Use when the user asks "where does our AWS money go", "what is the biggest line", "how much is data transfer / NAT / marketplace", or wants the bill breakdown before deciding whether to run the full audit. Read-only./checkChecks what the AWS cost audit needs before it starts - AWS CLI v2, Python 3.8+, kubectl when there is EKS, valid credentials per profile, Cost Explorer enabled and readable in the payer, Savings Plans visibility, the read-only API families the scripts use, and the cluster metrics endpoint. Use right after installing the plugin, when an audit fails on access, or when the user asks what they need to set up. Read-only; changes nothing.npx claudepluginhub whitebeardit/claude-plugins --plugin aws-cost-auditOther plugins' skills for the same job