kubectx

Switch Kubernetes contexts and namespaces with kubectx CLI tools.

Updated Apr 3, 2026
One-click install
npx skills add https://github.com/kettleofketchup/KettleOfSkills --skill kubectx
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: kubectx
Source: https://github.com/kettleofketchup/KettleOfSkills/tree/main/plugins/kubectx/skills/kubectx
Command: npx skills add https://github.com/kettleofketchup/KettleOfSkills --skill kubectx

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Manually switching Kubernetes contexts and namespaces via long kubectl config commands is slow and error-prone, especially when working across multiple clusters. This skill eliminates that friction by providing fast, purpose-built CLI tools for cluster navigation.

Core Features & Use Cases

  • Fast Context & Namespace Switching: Use single commands to switch between Kubernetes contexts and namespaces, with optional fzf interactive fuzzy selection for even faster picks.
  • Multi-Cluster Management: Seamlessly work with multiple kubeconfig files via the KUBECONFIG environment variable to manage all your clusters from a single tool.
  • Shell Integration: Add completions, kube-ps1 prompt displays, and convenient aliases to your shell config to streamline your daily Kubernetes workflow.
  • Use Case: If you regularly toggle between development, staging, and production Kubernetes clusters, use this skill to switch contexts and namespaces in seconds instead of typing out full kubectl config commands.

Quick Start

Use the kubectx skill to switch to your staging Kubernetes context and then switch to the default namespace.

Frequently Asked Questions about kubectx

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I switch Kubernetes contexts and namespaces faster than using kubectl config commands?

Switch Kubernetes contexts and namespaces in seconds using purpose-built CLI tools that replace long kubectl config commands with single commands and optional interactive fzf selection.

What is the best way to manage multiple Kubernetes clusters with different kubeconfig files?

Manage multiple Kubernetes clusters by leveraging the KUBECONFIG environment variable to support multi-file kubeconfig setups, allowing you to navigate across all clusters from a single tool interface.

Can I use interactive fuzzy search to select Kubernetes namespaces?

Yes, you can use interactive fzf fuzzy selection to quickly pick Kubernetes contexts and namespaces, eliminating the need to manually type out full names during cluster operations.

Does kubectx support shell integration for displaying the current Kubernetes context?

Yes, it supports shell integration by adding completions, kube-ps1 prompt displays, and convenient aliases to your shell config to streamline your daily Kubernetes workflow.

How do I toggle between development, staging, and production Kubernetes environments quickly?

Toggle between development, staging, and production Kubernetes clusters instantly by executing a single command to switch contexts and namespaces without typing out full kubectl config commands.

What are the limitations of using kubectx for kubeconfig administration?

As a purpose-built CLI tool for fast context and namespace switching, it focuses on streamlining navigation rather than advanced kubeconfig administration, multi-cluster security policies, or deep cluster resource management.