---
name: "kube-capacity-resource-inspector"
description: "View a clear CLI summary of CPU and Memory requests, limits, and utilization across cluster nodes."
metadata:
  author: "Rob Scott"
  version: "1.0.0"
  runtime_compatibility:
    - "codex"
    - "claude-code"
    - "cursor"
    - "windsurf"
triggers:
  - "run kube-capacity"
  - "inspect k8s node requests limits"
  - "find overcommitted k8s nodes"
permissions:
  fs_read: true
  fs_write: "workspace"
  shell_exec: false
  net_access: false
---

# kube-capacity Resource Requests & Limits Overview

Audits cluster resources with kube-capacity: outputting node-level and pod-level summaries, highlighting over-committed nodes, viewing utilization percentages, and identifying resource hoarders.

## When to Invoke
Invoke this skill whenever you need to:
- run kube-capacity
- inspect k8s node requests limits
- find overcommitted k8s nodes

## Execution SOP & Rules
1. Install kube-capacity via Homebrew, Krew, or direct binary download.
2. Run basic summary: kube-capacity --pods to view nodes and their running pods.
3. Include live utilization metrics: kube-capacity --util to compare actual usage vs requests.
4. Filter by namespace or node labels to isolate specific tenant capacity.

## Verification Checklist
- Run local linting, syntax validation, and type-checks before reporting completion.
- Ensure all created or modified files adhere to workspace boundaries and avoid uncommitted secrets.
- Verify tests or build commands exit cleanly with return code 0.
