autoscaling

autoscaling is a skill for Claude Code from arjunprabhulal/devops-skills. It costs 107 tokens per session (1,412 once invoked), scanned A, original, MIT.

A set of automatic controls that adjusts the number of application copies or the machines available to run them as demand changes. In Kubernetes, these controls can use signals such as CPU, queue depth, latency, or memory use.

In plain words
What is it for?
Use it to configure horizontal or vertical pod scaling, cluster node scaling, custom metrics, stabilization periods, and the resource requests that scaling decisions depend on.
Why use it?
It can add capacity during busy periods and reduce it when demand falls, but the result depends on accurate resource requests and a metric that reflects real saturation. Poor signals can cause delayed reactions or constant fluctuation.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the devops-skills plugin — 56 skills shipped together

Good fit Use it to configure horizontal or vertical pod scaling, cluster node scaling, custom metrics, stabilization periods, and the resource requests that scaling decisions depend on.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/arjunprabhulal/devops-skills/autoscaling
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add arjunprabhulal/devops-skills --skill autoscaling
Clone the repo
git clone --depth 1 https://github.com/arjunprabhulal/devops-skills

Made for: Claude Code.

Or install devops-skills, the plugin that ships this one along with the rest of its 56 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for autoscaling

README.md
[![agentmods](https://agentmods.dev/badge/skills/arjunprabhulal/devops-skills/autoscaling/github.svg)](https://agentmods.dev/skills/arjunprabhulal/devops-skills/autoscaling)
Your own site
<a href="https://agentmods.dev/skills/arjunprabhulal/devops-skills/autoscaling"><img src="https://agentmods.dev/badge/skills/arjunprabhulal/devops-skills/autoscaling/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for autoscaling

Your own site · 80×15
<a href="https://agentmods.dev/skills/arjunprabhulal/devops-skills/autoscaling"><img src="https://agentmods.dev/badge/skills/arjunprabhulal/devops-skills/autoscaling.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 107 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,412 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00107 $0.01412
Opus 5.5 $0.00043 $0.00565
Sonnet 5.5 $0.00021 $0.00282
Haiku 4.5 $0.00011 $0.00141

Measured 1mo ago against content hash 5e19cee84042, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

autoscaling scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/kubernetes/autoscaling/SKILL.md · 109 lines

How it starts

The opening of the file, as written. The whole thing — 109 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Autoscaling

Autoscaling in Kubernetes is a control loop stacked on a control loop: the HPA watches a metric and adjusts replica count, the scheduler places those replicas, and the cluster autoscaler watches for unschedulable pods and adds nodes. Every layer depends on the one below reporting truthfully — an HPA scaling on a metric that doesn't reflect real load, or replicas whose requests don't reflect real usage, produces scaling decisions that look active but don't fix anything.

Autoscaling amplifies whatever signal you point it at — a good signal gives you elastic capacity, a bad one gives you expensive noise. Get requests right first; every autoscaler downstream is only as accurate as the numbers it's reading.

1. Scale on the metric that actually predicts saturation

CPU utilization is the default HPA metric because it's always available, not because it's usually the right one. A queue-processing service saturates on queue depth; an API saturates on request latency or in-flight requests; a memory-bound service doesn't reflect load in CPU at all. Scaling on the wrong metric means the HPA reacts late or not at all to the thing that's actually hurting users.

  • CPU/memory (autoscaling/v2 resource metrics) work when the workload's bottleneck genuinely is CPU or memory — verify this, don't assume it.
  • Custom and external metrics (via a metrics adapter — Prometheus Adapter, KEDA, cloud-provider metrics) let you scale on queue depth, request rate, or a business metric — worth the setup cost when the resource metrics don't correlate with actual saturation.
  • Target utilization should leave headroom for the scale-up lag — if pods take 30s to become Ready, targeting 90% CPU means you're already in trouble before new replicas can help.

Done when: the HPA's target metric has been checked against real saturation data, not chosen by default.

2. Don't run HPA and VPA on the same metric for the same workload

HPA changes replica count; VPA changes each replica's requests/limits. Pointed at the same resource dimension on the same workload, they fight — VPA resizing a pod's CPU request changes the value HPA's percentage target is computed against, producing scaling decisions neither system intended.

Read the full file on GitHub · 109 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 109 lines · 107 tokens per session scan A 5e19cee84042

Subscribe to this mod's changes

autoscaling is a skill published in the GitHub repository arjunprabhulal/devops-skills (5 stars, last pushed 2mo ago), licensed MIT. It adds 107 tokens to every session and 1,412 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

agent-platform-tuning

Agent Platform Model Tuning. Use when you need to fine-tune open models or Gemini models using Agent Platform infrastructure. Don't use for model training outside Agent Platform, model deployment to endpoints (use agent-platform-deploy), or managing serving endpoints (use agent-platform-endpoint-management).

google/skills · 64 tokens

google-cloud-solution-guided-gke-ai-migration

Guides the migration of existing AI workloads (Cloud Run, Gemini API, Gemini Enterprise Agent Platform) to self-hosted GKE inference using gcloud and kubectl. Use when the user has an existing AI inference workload (on Cloud Run, the Gemini API, Gemini Enterprise Agent Platform, or a custom VM) and wants to move it to…

google/skills · 157 tokens

application-integration-authoring

Builds, versions, publishes, tests, and executes Google Cloud Application Integration workflows through the REST API and Python discovery client, and promotes versions across environments. Use when listing integrations, downloading or uploading integration versions as JSON, configuring API triggers or config…

google/skills · 103 tokens

gke-compute-classes

Configures, optimizes, and troubleshoots GKE ComputeClasses. Use when configuring Spot VMs with on-demand fallback, targeting specific accelerators (GPUs/TPUs) or machine families, restricting ComputeClass access, or debugging pending pods related to node pool auto-creation. Do not use for cluster-level Node Auto…

google/skills · 83 tokens

assuredworkloads-environment-assessor

Discover Google Cloud resource telemetry and effective Org Policies, evaluate brownfield workloads against sovereign data boundary and compliance standards (EU Data Boundary with Support, FedRAMP Moderate/High, DoD IL4/IL5, ITAR, CJIS, US/EU Regional Data Boundaries), and recommend the optimal Assured Workloads…

google/skills · 165 tokens

apigee-agent-gateway-governance

Stands up an Apigee API proxy that a Google Cloud Agent Gateway calls as an ext-proc (Service Extension) callout on an agent's LLM traffic, to meter token usage per model, extract caller identity, and apply Model Armor prompt screening or a semantic cache. Use when wiring Apigee in as an AI gateway behind an Agent…

google/skills · 222 tokens