From gcp-toolkit
Guides GCP cost analysis with BigQuery/gcloud and Recommender API, recommending discounts, rightsizing, preemptible VMs, and unused resource cleanup.
How this skill is triggered — by the user, by Claude, or both
Slash command
/gcp-toolkit:gcp-cost-optimizerThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Analyze GCP costs and implement optimization strategies to reduce spending.
Analyze GCP costs and implement optimization strategies to reduce spending.
# View billing data
gcloud billing accounts list
# Export billing data to BigQuery
gcloud billing accounts projects link PROJECT_ID \
--billing-account=BILLING_ACCOUNT_ID
# Query costs
bq query --use_legacy_sql=false \
'SELECT service.description, SUM(cost) as total_cost
FROM `project.dataset.gcp_billing_export`
WHERE DATE(_PARTITIONTIME) >= DATE_SUB(CURRENT_DATE(), INTERVAL 30 DAY)
GROUP BY service.description
ORDER BY total_cost DESC'
Committed Use Discounts:
Sustained Use Discounts:
Preemptible VMs:
Rightsizing:
# Get rightsizing recommendations
gcloud recommender recommendations list \
--project=PROJECT_ID \
--location=us-central1 \
--recommender=google.compute.instance.MachineTypeRecommender
# Apply recommendation
gcloud recommender recommendations mark-claimed \
RECOMMENDATION_ID \
--project=PROJECT_ID \
--location=us-central1 \
--recommender=google.compute.instance.MachineTypeRecommender
npx claudepluginhub p/armanzeroeight-gcp-toolkit-plugins-gcp-toolkitAnalyzes GCP billing exports, optimizes CUD/SUD coverage, designs cost attribution labels, investigates budget alerts, and recommends rightsizing for Compute, GKE, and BigQuery.
Optimizes GCP resource allocation and cloud credits with strategies for right-sizing Compute Engine instances, Spot VMs, Cloud Run configs, and Storage classes. Use for cost analysis, deployments, and burn planning.
Analyzes cloud spending across AWS, Azure, and GCP to identify savings opportunities, rightsize resources, and implement cost controls.