gcp-cleanup
CommunitySafely inventory and flag unused GCP resources.
System Documentation
What problem does it solve?
This Skill performs a read-only scan of Google Cloud Platform resources to identify unused or orphaned assets, enabling safe cleanup planning without making changes.
Core Features & Use Cases
- Read-only resource inventory: Lists active projects, terminated VMs, orphaned disks, and unused static IPs to inform remediation decisions.
- Safety-first guidance: Highlights potentially sensitive or prod-like projects and provides commands for manual cleanup.
- Use Case: An operator wants to audit a GCP environment to determine candidate resources for cleanup and establish a restore plan if needed.
Quick Start
Run the following commands to start a safe, read-only scan: gcloud projects list --format="table(projectId,name,lifecycleState)" for PROJECT in $(gcloud projects list --format="value(projectId)" --filter="lifecycleState:ACTIVE"); do echo "=== $PROJECT ==="
TERMINATED VM (stopped instances)
echo "TERMINATED VMs:"
gcloud compute instances list --project=$PROJECT
--filter="status:TERMINATED"
--format="table(name,zone,status)" 2>/dev/null || echo " (access denied)"
Orphaned disks
echo "Orphaned Disks:"
gcloud compute disks list --project=$PROJECT
--filter="-users:*"
--format="table(name,zone,sizeGb,type)" 2>/dev/null || echo " (access denied)"
Unused static IPs
echo "Unused Static IPs:"
gcloud compute addresses list --project=$PROJECT
--filter="status:RESERVED"
--format="table(name,region,status)" 2>/dev/null || echo " (access denied)"
done
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: gcp-cleanup Download link: https://github.com/kubony/openclaw-gcp-setup/archive/main.zip#gcp-cleanup Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.