Analyzes GCP costs and provides optimization recommendations including committed use discounts, rightsizing, and unused resources.
Ships in gcp-toolkit. 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.
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
What SKILL.md sets; muted values are Claude Code's defaults
/gcp-toolkit:gcp-cost-optimizerfrom gcp-toolkit
npx claudepluginhub armanzeroeight/fastagent-plugins --plugin gcp-toolkit2 skills in this plugin
Other plugins' skills for the same job