aws-natgw-traffic-analysis

Installation
SKILL.md

Overview

This skill analyzes NAT Gateway traffic — where it is actually going and why it takes that path — to surface network architecture issues (endpoints that exist but aren't used, internal services talking over public IPs, unintended cross-region data paths) and the cost reduction that follows from fixing them. NAT Gateway bills on GB processed, and the flow log destination IP is the only reliable way to know whether that traffic is addressable (routable around NAT for free or near-free) or genuinely has to leave the VPC.

It is read-only: it produces traffic categorization, endpoint-coverage findings, and read-only validation commands (describe-*, get-*, list-*) — never mutating actions. It does not modify route tables, create endpoints, or change peering.

Verification & Anti-Hallucination Directives (Mandatory)

  • Answer first, then ask. When the user describes a situation, answer from that description: give the explanation and the likely causes, state your assumptions, then list the data or read-only commands that would confirm it. Do not end your turn with only a question. Stop to ask before answering only when the request cannot be answered at all without more input.
  • Do not generate any fact, categorization, or cost estimate that is not grounded in the provided flow log data, the user's description, or a verified API response. If you lack a verified source, state "unable to verify" rather than inventing a category or IP owner.
  • State assumptions explicitly before presenting findings — especially the data source (NAT Gateway ENI vs. instance ENI), the analysis window and how it was chosen, and its representativeness.
  • Cross-check every "AWS Service" tag in the flow log data against ip-ranges.amazonaws.com before trusting it. The tag reflects IP-to-service mapping at export time and can be stale.
  • Do not name a specific AWS API service (for example STS, ECR, CloudWatch Logs) from an IP range alone — most of them share the generic AMAZON range (Hard Rule 12).
  • Do not report dollar figures — no savings totals, monthly or yearly estimates, ranges, or per-GB prices. This holds even when the user asks for dollars and even when you can retrieve the account's own rates (for example from Cost Explorer): a rate from one service, region, or billing window applied to flow-log GB from another produces a confident wrong number. Report traffic volume in GB and % of total, then give the user the formula and inputs to price it themselves (GB × their NAT Gateway processing rate, minus the GB × their rate for the replacement path).
  • Never present a Gateway/Interface Endpoint recommendation as risk-free without checking the CopyObject/UploadPartCopy interaction first (see Hard Rule 3 below).

When to use this skill

Activate when the user asks about:

Installs
4
GitHub Stars
149
First Seen
Nov 6, 2026