Kubernetes Workload Optimizer

Kubernetes Workload Optimizer is a skill for Claude Code, Codex from Cletrics/finops-agents. It costs 54 tokens per session (1,550 once invoked), scanned A, original, MIT.

A guide to tuning Kubernetes, the system that runs containers, at both the application and machine levels. It adjusts container CPU and memory settings alongside automatic node scaling.

In plain words
What is it for?
It helps right-size Kubernetes workloads, tune Karpenter or Cluster Autoscaler, review VPA recommendations, and set safer consolidation and spot-instance policies.
Why use it?
It helps prevent wasted cloud capacity, slow scheduling, CPU throttling, out-of-memory crashes, and unnecessary pod movement. Treating both levels together avoids fixing one source of waste while leaving the other unchanged.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit It helps right-size Kubernetes workloads, tune Karpenter or Cluster Autoscaler, review VPA recommendations, and set safer consolidation and spot-instance policies.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/cletrics/finops-agents/kubernetes-workload-optimizer
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 Cletrics/finops-agents --skill kubernetes-workload-optimizer
Clone the repo
git clone --depth 1 https://github.com/Cletrics/finops-agents

Made for: Claude Code, Codex.

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 Kubernetes Workload Optimizer

README.md
[![agentmods](https://agentmods.dev/badge/skills/cletrics/finops-agents/kubernetes-workload-optimizer/github.svg)](https://agentmods.dev/skills/cletrics/finops-agents/kubernetes-workload-optimizer)
Your own site
<a href="https://agentmods.dev/skills/cletrics/finops-agents/kubernetes-workload-optimizer"><img src="https://agentmods.dev/badge/skills/cletrics/finops-agents/kubernetes-workload-optimizer/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 Kubernetes Workload Optimizer

Your own site · 80×15
<a href="https://agentmods.dev/skills/cletrics/finops-agents/kubernetes-workload-optimizer"><img src="https://agentmods.dev/badge/skills/cletrics/finops-agents/kubernetes-workload-optimizer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 54 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,550 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.00054 $0.01550
Opus 5.5 $0.00022 $0.00620
Sonnet 5.5 $0.00011 $0.00310
Haiku 4.5 $0.00005 $0.00155

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

Security

Grade A, and why

Kubernetes Workload Optimizer 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.

integrations/gemini-cli/skills/kubernetes-workload-optimizer/SKILL.md · 159 lines

How it starts

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

Kubernetes Workload Optimizer

Identity & Memory

You optimize Kubernetes workloads at two coupled layers:

  1. Container rightsizing -- CPU and memory requests / limits tuned to observed p95/p99 usage, with safety margin, rolled out per workload to avoid OOMKills and CPU throttling.
  2. Node-level autoscaling -- Karpenter / Cluster Autoscaler tuned for the right balance of consolidation aggressiveness, scheduling latency, and spot diversification.

You know these layers are coupled: rightsizing without autoscaling returns "more headroom on the same nodes." Autoscaling without rightsizing chases consolidation against bloated requests. Doing both well together typically reclaims 30-50% of cluster spend without degrading SLOs.

You know the landmines:

  • Memory requests below true usage cause OOMKills and pager storms
  • CPU limits below burstable demand cause throttling that silently slows APIs
  • Aggressive Karpenter consolidation causes unnecessary pod churn
  • A single-node-pool spot setup is asking for simultaneous termination
  • VPA is a recommender, not an oracle

Core Mission

Reduce CPU and memory requests across workloads to match observed usage with appropriate safety margins, AND minimize cluster idle capacity, without regressing reliability or scheduling latency SLOs.

Critical Rules

Rightsizing

  1. Base requests on p95 (CPU) and p99 (memory) of real usage, not p50. Memory OOMs are worse than over-provisioning.
  2. Never remove memory limits without careful consideration. They are the last line of defense against runaway processes.
  3. Beware CPU limits. Many engineering teams choose to set CPU requests but NOT CPU limits to avoid throttling; evaluate per workload.
  4. Roll out per-workload, not cluster-wide. Canary your resource changes like any deploy.
  5. Safety margins: typically 1.3x on memory, 1.5x on CPU above the p99 / p95 reading.

Autoscaling

  1. Pod Disruption Budgets are non-negotiable. Every workload with SLOs has a PDB. No exceptions.
  2. Karpenter consolidation is powerful but chatty. consolidationPolicy: WhenUnderutilized with aggressive consolidateAfter causes unnecessary churn.
  3. Respect the scheduling-latency SLO. Scale-up delay over 90s usually means your pending-pod threshold is wrong or your node provisioner is slow.
  4. Spot requires spread. Diversify instance types and AZs. A single-instance-type spot setup is fragile.
  5. Don't chase 100% utilization. Target 70-80% steady-state utilization to keep headroom for bursts.
  6. Karpenter beats Cluster Autoscaler on cost efficiency in most modern AWS EKS clusters because it provisions the right shape node, not just "a node." Measure node efficiency (requested CPU / provisioned CPU) and make the case with data.

Read the full file on GitHub · 159 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 · 159 lines · 54 tokens per session scan A 78afc684e111

Subscribe to this mod's changes

Kubernetes Workload Optimizer is a skill published in the GitHub repository Cletrics/finops-agents (47 stars, last pushed 5mo ago), licensed MIT. It adds 54 tokens to every session and 1,550 once invoked, about $0.0002 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-09-03.

Related

Other skills, from other repositories

cis-aws-foundations-2.2

Maintain current AWS account contact details.

CyberStrikeus/CyberStrike · 16 tokens

azure-mgmt-applicationinsights-dotnet

Azure Application Insights SDK for .NET. Application performance monitoring and observability resource management. Use for creating Application Insights components, web tests, workbooks, analytics items, and API keys. Triggers: "Application Insights", "ApplicationInsights", "App Insights", "APM", "application…

microsoft/skills · 82 tokens

azure-resource-manager-mysql-dotnet

Azure MySQL Flexible Server SDK for .NET. Database management for MySQL Flexible Server deployments. Use for creating servers, databases, firewall rules, configurations, backups, and high availability. Triggers: "MySQL", "MySqlFlexibleServer", "MySQL Flexible Server", "Azure Database for MySQL", "MySQL database…

microsoft/skills · 87 tokens

scaffold

Generate deployment-ready infrastructure code from an architecture plan, verify it with adversarial self-review, and bridge to validation — all without deploying.

microsoft/skills · 0 tokens

azure-mgmt-fabric-dotnet

Azure Resource Manager SDK for Fabric in .NET. Use for MANAGEMENT PLANE operations: provisioning, scaling, suspending/resuming Microsoft Fabric capacities, checking name availability, and listing SKUs via Azure Resource Manager. Triggers: "Fabric capacity", "create capacity", "suspend capacity", "resume capacity"…

microsoft/skills · 88 tokens

azure-mgmt-mongodbatlas-dotnet

Manage MongoDB Atlas Organizations as Azure ARM resources using Azure.ResourceManager.MongoDBAtlas SDK. Use when creating, updating, listing, or deleting MongoDB Atlas organizations through Azure Marketplace integration. This SDK manages the Azure-side organization resource, not Atlas clusters/databases directly.

microsoft/skills · 64 tokens