kubernetes-cli

kubernetes-cli is a skill for Claude Code, Codex from abdullahkhawer/devops-skills. It costs 31 tokens per session (1,212 once invoked), scanned A, original, Apache-2.0.

A command-line skill for Kubernetes, a system that runs and manages containerised applications across computer clusters. It uses the specified cluster context and namespace for each kubectl command.

In plain words
What is it for?
Use it to inspect and manage workloads, nodes, and other cluster resources, and to troubleshoot Kubernetes deployments.
Why use it?
It helps prevent commands from reaching the wrong cluster or namespace, especially across production, staging, and sandbox environments. It also supports inspection and troubleshooting without relying on the current defaults.

Skill for Claude CodeCodex

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

Good fit Use it to inspect and manage workloads, nodes, and other cluster resources, and to troubleshoot Kubernetes deployments.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/abdullahkhawer/devops-skills/kubernetes-cli
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 abdullahkhawer/devops-skills --skill kubernetes-cli
Clone the repo
git clone --depth 1 https://github.com/abdullahkhawer/devops-skills

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-cli

README.md
[![agentmods](https://agentmods.dev/badge/skills/abdullahkhawer/devops-skills/kubernetes-cli/github.svg)](https://agentmods.dev/skills/abdullahkhawer/devops-skills/kubernetes-cli)
Your own site
<a href="https://agentmods.dev/skills/abdullahkhawer/devops-skills/kubernetes-cli"><img src="https://agentmods.dev/badge/skills/abdullahkhawer/devops-skills/kubernetes-cli/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-cli

Your own site · 80×15
<a href="https://agentmods.dev/skills/abdullahkhawer/devops-skills/kubernetes-cli"><img src="https://agentmods.dev/badge/skills/abdullahkhawer/devops-skills/kubernetes-cli.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 31 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,212 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.00031 $0.01212
Opus 5.5 $0.00012 $0.00485
Sonnet 5.5 $0.00006 $0.00242
Haiku 4.5 $0.00003 $0.00121

Measured 23d ago against content hash fd596dfcf108, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

kubernetes-cli 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 23d 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-cli/SKILL.md · 103 lines

How it starts

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

Kubernetes CLI Skill

Use the context table and rules below when constructing all kubectl commands.

Configuration

Update the table below with your kubeconfig context names before using this skill:

Environment Context Name Default Namespace
Production <your-prod-context> <your-prod-namespace>
Staging / Non-Prod <your-nonprod-context> <your-nonprod-namespace>
Sandbox / Dev <your-sandbox-context> <your-sandbox-namespace>

If the target environment is unclear, ask the user before running any command.

Prerequisites (one-time setup by user)

If kubectl is not installed or no context is configured for the target cluster, inform the user that setup is required and ask them to complete the following steps manually. Do not perform these steps yourself.

brew install kubectl
aws eks update-kubeconfig --name <cluster-name> --profile <profile> --region <region> --alias <your-context-name>
# or for other providers, follow the provider-specific kubeconfig setup
kubectl config get-contexts

Command Format

Always pass --context and --namespace explicitly — never rely on the current context or namespace set in kubeconfig:

kubectl <command> --context <context-name> --namespace <namespace> [options]

Examples

# Production
kubectl get pods --context <your-prod-context> --namespace <your-prod-namespace>

# Staging / Non-Prod
kubectl get pods --context <your-nonprod-context> --namespace <your-nonprod-namespace>

Available Commands

Read-only (safe, no confirmation needed)

Command Description
get <resource> [name] List or show resources (pods, deployments, services, nodes, etc.)
describe <resource> <name> Show detailed information and recent events for a resource
logs <pod> [-c container] [--previous] [--tail=N] Show container logs
top nodes / top pods Show resource usage (requires metrics-server)
get events --sort-by=.lastTimestamp Show recent cluster events
explain <resource> Show API resource schema documentation
api-resources / api-versions List available resource types and API versions
config get-contexts / config current-context Inspect kubeconfig contexts
version Show client and server version
cluster-info Show cluster endpoint information
diff -f <file> Show what would change if a manifest were applied (dry run, no cluster mutation)
get <resource> -o yaml/json Dump full resource manifest

Read the full file on GitHub · 103 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. 23d ago First seen · 103 lines · 31 tokens per session scan A fd596dfcf108

Subscribe to this mod's changes

kubernetes-cli is a skill published in the GitHub repository abdullahkhawer/devops-skills (8 stars, last pushed 24d ago), licensed Apache-2.0. It adds 31 tokens to every session and 1,212 once invoked, about $0.0001 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-23.

Related

Other skills, from other repositories

docker-build-deploy

Use when containerizing a Node.js app and setting up GitHub Actions CI/CD to build, push to GHCR, and deploy via SSH. Multi-stage build, non-root user, caching.

wu529778790/shenzjd-skills · 44 tokens

development-environment

IDE setup, dev containers, and local development tools.

miles990/claude-software-skills · 14 tokens

docs-manage

Manage the Grounded Docs MCP Server documentation index. Covers scraping and indexing documentation from URLs or local files, refreshing existing indexes with changed content, removing libraries from the index, and compacting the SQLite store. Use when you need to add, update, or delete indexed documentation, or…

arabold/docs-mcp-server · 67 tokens

fetch-url

Fetch a single URL and convert its content to Markdown. Use when you need to read a web page, documentation page, or API reference without indexing it. The content is returned as plain Markdown text on stdout.

arabold/docs-mcp-server · 45 tokens

implementing-container-image-minimal-base-with-distroless

Reduce container attack surface by building application images on Google distroless base images that contain only the application runtime with no shell, package manager, or unnecessary OS utilities.

xalgorix/xalgorix · 45 tokens

dokploy-deploy

This skill should be used when user asks to "deploy with Dokploy", "use Dokploy Cloud", "manage self-hosted Dokploy", "deploy Docker Compose on Dokploy", "manage Dokploy databases", "configure Dokploy domains", or "look up Dokploy CLI commands".

fcakyon/claude-codex-settings · 63 tokens