Skip to content

Guide · Agent skill

How to use the GKE Workload Scaling agent skill

Updated · written with AI from the project's own documentation and checked against our catalogue data

The gke-workload-scaling skill is a set of instructions that an AI agent, such as Claude, reads before helping with scaling on Google Kubernetes Engine (GKE). It covers manual scaling, Horizontal Pod Autoscaler (HPA) for adding or removing pod replicas, and Vertical Pod Autoscaler (VPA) for adjusting each pod's CPU and memory reservations. After this guide you will know how to install the skill, ask for scaling help in plain language, and check the agent's work before it touches your cluster.

GKE Workload Scalinggoogle/skills · Apache-2.0

Quick start

  1. 1Download and unzip. Download the ZIP from this skill's page and unzip it into ~/.claude/skills/ for personal use, or into .claude/skills/ in your project.
  2. 2Confirm the folder. Check that SKILL.md sits at the top of the gke-workload-scaling folder, with assets/ and references/ beside it.
  3. 3Check cluster prerequisites. Make sure kubectl can reach your GKE cluster and that Metrics Server is running, which is enabled by default on GKE.
  4. 4Enable VPA if needed. On a Standard cluster, enable VPA with the gcloud command in the skill. Autopilot clusters have it on by default.
  5. 5Ask for what you need. Describe the workload, namespace and goal in plain language, such as setting up HPA or reviewing requests.
  6. 6Review before applying. Read the commands and manifests the agent proposes, and start VPA in Off mode before any Auto changes.

What the skill makes the agent do

Agent skills are folders of instructions and templates that an agent loads when a task matches their description. With this skill installed, the agent follows built-in workflows for scaling applications on GKE: scaling a deployment to a fixed number of replicas, setting up HPA to scale on observed CPU or memory utilization or custom metrics, and setting up VPA to match pod resource requests to actual usage.

The skill also covers rightsizing. The agent can compare VPA recommendations against current requests and suggest new values with a 20% buffer. It flags common pitfalls, such as configuring HPA and VPA on the same metric, which the skill says causes thrashing, and running VPA in Auto mode without graceful shutdown handling.

Install the gke-workload-scaling skill

You can install the skill in one of three ways. Download the ZIP from the skill's page on this directory and unzip it into your personal skills folder, ~/.claude/skills/. To scope it to one project, unzip it into the .claude/skills/ folder inside that project instead. You can also upload the ZIP in the Claude apps under Settings → Capabilities → Skills.

After installing, check that the folder contains SKILL.md at its top level, along with the assets/ and references/ folders the skill uses.

  • Personal: ~/.claude/skills/
  • Project: .claude/skills/ in your project folder
  • Claude apps: Settings → Capabilities → Skills (upload the ZIP)

Trigger the skill with natural requests

You do not need to name the skill. The agent loads it when your request matches its description, which covers configuring HPA, configuring VPA, and applying best practices for GKE workload autoscaling. Describe your goal in plain words and mention the workload and namespace if you have them.

The skill's description also says when not to use it: cluster-level autoscaling (Cluster Autoscaler), static cluster sizing, and configuring node machine types directly. Ask those questions separately.

  • Set up autoscaling for my checkout deployment in the shop namespace so it scales between 2 and 10 replicas on CPU.
  • Show me how to turn on VPA in Off mode for my api deployment and read its recommendations.
  • Review the resource requests in my GKE deployments and tell me where I am overprovisioned.

Example workflows the skill covers

The skill gives a quick command for HPA: kubectl autoscale with a CPU target and minimum and maximum replica counts. For version-controlled setups it points to a manifest template at assets/hpa-example.yaml, which the agent applies with kubectl apply and checks with kubectl get hpa.

For rightsizing, the skill describes a sequence: run VPA in Off mode for 24 hours or more, read the recommendations with kubectl describe vpa, compare target values against current requests, and apply new requests with a 20% buffer. A table in the skill maps conditions to recommendations, for example reducing a CPU request that is more than five times the P95 actual usage to P95 × 1.2.

kubectl autoscale deployment {deployment_name} --cpu-percent=50 --min=1 --max=10

What the skill needs and safety notes

You need kubectl access to a GKE cluster. The gcloud CLI is needed for enabling VPA on Standard clusters and for the attribution prefix the skill adds to gcloud commands. HPA requires Metrics Server, which is enabled by default on GKE. VPA is enabled by default on Autopilot but must be enabled manually on Standard clusters.

The skill does not run scripts and does not use the network, according to its listing. It does tell the agent to tag gcloud commands run in the terminal with a usage attribution variable that identifies only the skill and its version. Commands in generated scripts, Terraform, or user code are not tagged.

Be careful with VPA in Auto mode. The skill says it restarts pods to change resources, so a single-replica production service can have downtime. VPA by default requires at least two replicas before it evicts pods. Make sure your application handles SIGTERM. Use Pod Disruption Budgets during scaling and node upgrades.

  • Requires: kubectl access to a GKE cluster, gcloud CLI, Metrics Server
  • Runs scripts: no
  • Uses network: no

Tips for good results

Define resource requests and limits in your containers first. The skill states that HPA and VPA rely on accurate requests. Start VPA in Off mode so you can review recommendations before anything restarts. Read each command the agent proposes before running it against a live cluster.

For application metrics such as Pub/Sub queue length, the skill recommends the External metric type. For Prometheus metrics, it mentions Google Cloud Managed Service for Prometheus or the Prometheus Adapter.

  • Start with VPA in Off mode and review recommendations first.
  • Never point HPA and VPA at the same metric.
  • Confirm your app handles graceful shutdown before enabling Auto mode.

What people use it for

  • Setting up HPA on CPU utilization for a web deployment with a minimum and maximum replica count.
  • Running VPA in Off mode for 24 hours or more to collect right-sizing recommendations.
  • Reviewing deployments for missing resource requests or limits.
  • Scaling a Pub/Sub consumer using the External metric type on Cloud Monitoring metrics.

Frequently asked questions

Is the gke-workload-scaling skill free?

The skill is published under the Apache-2.0 licence in the google/skills repository. Its listing does not state any price, and you still pay for your own GKE cluster and Google Cloud usage.

How do I install the gke-workload-scaling skill?

Download the ZIP from this page and unzip it into ~/.claude/skills/ for personal use or into .claude/skills/ in a project. You can also upload the ZIP in the Claude apps under Settings → Capabilities → Skills.

What do I need to use this skill?

You need kubectl access to a GKE cluster and the gcloud CLI for enabling VPA on Standard clusters. HPA needs Metrics Server, which is enabled by default on GKE.

Does the skill run scripts or use the network?

According to its listing, the skill does not run scripts and does not use the network. It instructs the agent to tag gcloud terminal commands with a usage attribution variable.

Can this skill scale GKE nodes or clusters?

No. The skill excludes cluster-level autoscaling such as Cluster Autoscaler, and it does not cover static cluster sizing or node machine types.

Does this work on EKS or AKS?

The skill is written for GKE. Its gcloud steps and GKE-specific defaults would not apply to other Kubernetes services or clouds.

New agent skills, repos and AI tools — every week

The best new skills and open-source projects, the fastest-growing repos, and one free prompt. Five minutes to read. Unsubscribe anytime.

Our verdict

Use this skill if you run workloads on GKE and want HPA and VPA set up correctly, or if you want a second look at resource requests across deployments. Skip it if you need node-level autoscaling, work on non-GKE Kubernetes, or plan to run VPA in Auto mode on a single-replica production service without a careful review.

Download the skill