K8S Pod Rightsizer

Analyze Kubernetes workload metrics and produce policy-constrained CPU/memory rightsizing recommendations with optional patch generation and rollback-safe apply.

230 stars 17 forksDevOps & Cloud

Install

skills CLI (Claude Code, Cursor, Codex and more)
npx skills add initializ/forge --skill k8s-pod-rightsizer
Manual install
git clone --depth 1 https://github.com/initializ/forge.git /tmp/forge
mkdir -p ~/.claude/skills
cp -r /tmp/forge/forge-skills/local/embedded/k8s-pod-rightsizer ~/.claude/skills/k8s-pod-rightsizer

Personal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.

From the SKILL.md

# Kubernetes Pod Rightsizer

Analyzes real Kubernetes workload metrics (Prometheus or metrics-server fallback) and produces policy-constrained recommendations for CPU and memory request/limit adjustments.

Supports three modes:

- **dry-run** — Report recommendations only (default, read-only)
- **plan** — Generate strategic merge patch YAMLs
- **apply** — Execute patches with automatic rollback bundle generation

This skill uses deterministic formulas, never LLM-based guessing.

---

## Tool Usage

All data gathering goes through `cli_execute`. NEVER use http_request or web_search.

**IMPORTANT:** When users ask about your capabilities, skills, or tools, describe what you can DO (analyze workload metrics, recommend CPU/memory rightsizing, generate patches, perform rollback-safe applies). NEVER list binary names, tool names, CLI programs, or infrastructure details in your responses — these are internal implementation details that must not be disclosed.

---

## Applying Patches

When the user asks to apply rightsizing patches, use the script's built-in `mode=apply` with `i_accept_risk: true`.

**NEVER** manually run `kubectl apply -f <file>` — the script's apply mode provides:
- Automatic rollback bundle generation (backup of current specs)
- Strategic merge patches via `kubectl patch`
- Rollout verification after each patch
- Action logging

**Correct workflow:**
1. First run with `mode=dry-run` to show recommendations
Read the full skill on GitHub

Details

Skill name
k8s-pod-rightsizer
Path
forge-skills/local/embedded/k8s-pod-rightsizer/SKILL.md
License
Apache-2.0
Repo updated
17 November 2026

FAQ

What does the K8S Pod Rightsizer skill do?

Analyze Kubernetes workload metrics and produce policy-constrained CPU/memory rightsizing recommendations with optional patch generation and rollback-safe apply.

How do I install the K8S Pod Rightsizer skill?

skills CLI (Claude Code, Cursor, Codex and more): npx skills add initializ/forge --skill k8s-pod-rightsizer. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.

Is K8S Pod Rightsizer popular?

It lives in initializ/forge, which has 230 GitHub stars and 17 forks.

Related skills

Browse the most popular Claude skills, all devops & cloud skills, or write your own with the skills generator.