Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

gke-cost-analysis

Skill by google

Answers questions about GKE cluster and workload costs using BigQuery billing exports and live cluster metrics. Built for platform engineers and cloud teams who need to analyze and diagnose GKE spend.

  • Score 94
  • 25k stars
  • Apache-2.0
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install gke-cost-analysis

Built from the published package, never by AI.

git clone --depth 1 https://github.com/google/skills /tmp/skills && mkdir -p ~/.claude/skills && cp -r /tmp/skills/skills/cloud/gke-cost-analysis ~/.claude/skills/gke-cost-analysis

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install gke-cost-analysis in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

The GKE Cost Analysis skill helps an AI assistant answer natural language questions about GKE cluster and workload costs. It explains how to query the GCP Billing Detailed BigQuery Export with the bq CLI, how to check GKE Cost Allocation labels, and how to compare live pod and node utilization with requests using kubectl top. It also explains how Autopilot and Standard pricing drivers affect spend.

It is aimed at users who want to understand GKE spend across projects, namespaces, or workloads. It does not apply cost optimization changes or create rightsizing manifests. The source points to the gke-cost-optimization skill for those tasks. Default queries cover the last 30 days and return 10 rows.

Written from the project's SKILL.md and checked against it.

What it can do

  • Billing export queriesWrites bq query commands against the GCP Billing Detailed BigQuery Export.
  • Cost allocation checksExplains that GKE Cost Allocation must be enabled for namespace and workload labels.
  • Pricing driver analysisExplains Autopilot and Standard cost drivers and compares utilization with requests.
  • Budget listingRuns read-only gcloud billing budgets list commands to view account budgets.
  • Live utilization checksRuns read-only kubectl top commands for nodes and pods across namespaces.
  • Query templatesProvides bq query templates for single workload, per-cluster, and per-namespace breakdowns.

What you need

  • GCP Billing Detailed BigQuery Export
  • BigQuery bq CLI
  • gcloud CLI
  • kubectl access to the cluster

Try asking

  • What is my most expensive GKE namespace over the last 30 days?
  • Check whether GKE cost allocation is enabled on my cluster.
  • Compare my pod CPU requests with actual usage using kubectl top.

Good to know

  • Does not apply cost optimization changes or create rightsizing manifests.
  • Enabling GKE cost allocation modifies the cluster and needs explicit user confirmation.
  • Namespace and workload labels populate only from enablement onward, with no backfill.
  • Budget listing requires the Cost Management API.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: skills/cloud/gke-cost-analysis/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md6 KB
  • references/attribution.md2 KB
  • references/billing-queries.md3 KB

Alternatives to gke-cost-analysis

All alternatives →
deploy-release-testvercel
94

Runs the full Next.js deployment test suite for an internal vercel/next.js pull request. It validates the commit's preview package, then dispatches the test_e2e_deploy_release.yml workflow. Meant for maintainers who explicitly ask for the entire suite.

AAA Skill 144k
deepeval-tracingconfident-ai
94

Instruments Python AI applications with DeepEval's native tracing so their execution appears span by span in Confident AI's Observatory. It is for developers building LLM apps, agents, RAG pipelines and chatbots.

AAA Skill 20k
azure-container-registry-cligithub
94

Manages Azure Container Registry through the az acr Azure CLI command group. It covers registries, images, cloud builds, ACR Tasks, tokens, geo-replication and networking. Built for developers and operators who work with ACR in Azure.

AAA Skill 42k
crabbox-appsopenclaw
94

Opens, runs, and shows apps on a temporary Crabbox machine, including native desktops and web previews. It is for OpenClaw users who want an app running and visible in their chat side panel.

AAA Skill 395k
gke-batch-hpcgoogle
94

Runs batch and HPC workloads on GKE using job queues and parallel processing. Aimed at teams running batch pipelines, HPC simulations, or ML training jobs on Google Kubernetes Engine.

AAA Skill 25k
google-cloud-storage-fusegoogle
94

Guides AI assistants through mounting Google Cloud Storage buckets as POSIX file systems with Cloud Storage FUSE (gcsfuse). It is for engineers running training, checkpointing, or file-path workloads on GKE, Compute Engine, or Cloud Run.

AAA Skill 25k

Compare with deploy-release-test, deepeval-tracing or azure-container-registry-cli

gke-cost-analysis: common questions

Why are namespace labels empty in my billing queries?

GKE Cost Allocation must be enabled on the cluster to populate the k8s-namespace and workload labels in BigQuery. The source says labels populate only from enablement onward.

Which skill handles rightsizing and ComputeClass selection?

The source says to use the gke-cost-optimization skill for rightsizing changes, VPA setup, and ComputeClass or machine type selection.

How does the skill treat Autopilot versus Standard pricing?

Autopilot is billed on pod resource requests, while Standard is billed on provisioned node pool VMs. The skill explains which mode applies when diagnosing cost drivers.

How do I install gke-cost-analysis?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is gke-cost-analysis free?

The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.

Is gke-cost-analysis safe to use?

It scores 94 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to gke-cost-analysis?

Similar skills: deploy-release-test, deepeval-tracing, azure-container-registry-cli, crabbox-apps.

gke-cost-analysis Install

Add to stack

Loading.