triage-leaked-infra
Installation
SKILL.md
Triage Leaked Infrastructure
Assess whether an AWS infrastructure set (VPC + associated resources) from HyperShift CI is safe to delete. Every claim must be backed by an empirical AWS query — never assume, always verify.
Input
The user provides one of:
- cleanleaked tool output (an infra set block)
- A VPC ID (e.g.,
vpc-0abc123...) - An infraID (e.g.,
00ab3695c5f73d4354b9ornode-pool-78vcg)
Extract the infraID and VPC ID from the input. If only one is given, derive the other:
- VPC ID →
aws ec2 describe-vpcs --vpc-ids <VPC> --query 'Vpcs[0].Tags'→ extract infraID fromkubernetes.io/cluster/<infraID>tag orNametag (strip-vpcsuffix) - infraID →
aws ec2 describe-vpcs --filters "Name=tag:Name,Values=<infraID>-vpc"→ get VPC ID
Checks
Run these in order. For each, report PASS (safe signal), FAIL (do NOT delete), or UNKNOWN (could not determine). Use --region us-east-1 for all commands.