cluster-context-manager

List, switch, export, and merge kubectl and talosctl contexts across workstations.

Updated Mar 13, 2026
One-click install
npx skills add https://github.com/knowledgexhunta/devops-toolkit --skill cluster-context-manager
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cluster-context-manager
Source: https://github.com/knowledgexhunta/devops-toolkit/tree/main/plugins/devops-toolkit/skills/cluster-context-manager
Command: npx skills add https://github.com/knowledgexhunta/devops-toolkit --skill cluster-context-manager

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Unified management of Kubernetes contexts across multiple workstations by coordinating kubectl contexts with talosctl contexts through kubecm, enabling seamless cross-device operations and configuration sharing.

Core Features & Use Cases

  • Unified context management for kubectl and talosctl.
  • Safe, auto-execute read-only tasks and confirm-before-run for mutations.
  • Pass-based distribution and merging of kubeconfigs and talosconfigs for multi-workstation setups.
  • Post-bootstrap context setup and stale-context cleanup workflows to maintain hygiene.

Quick Start

List your kubectl contexts, then switch to a target context to verify unified context management across kubectl and talosctl.

Frequently Asked Questions about cluster-context-manager

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

FAQPage Schema
How do I manage kubectl contexts across multiple workstations?

Pass distributes and merges kubeconfigs and talosconfigs across workstations by acting as the cross-device distribution mechanism for context configurations. It enables secure sharing of kubectl and talosctl contexts between multiple machines.

Can I synchronize talosctl contexts with kubectl contexts?

Yes, you can synchronize talosctl contexts with kubectl contexts using unified context management. This coordination allows you to list, switch, and export both context types together, maintaining consistency across your Kubernetes and Talos OS environments.

What is the safest way to switch kubectl contexts?

The safest way to switch kubectl contexts is using a system that enforces auto-execute read-only tasks for listing and confirm-before-run for mutations. This ensures destructive context switches require explicit approval before execution.

How do I clean up stale Kubernetes contexts in my kubeconfig?

You can clean up stale Kubernetes contexts using stale-context cleanup workflows that maintain configuration hygiene. This removes outdated entries from your kubeconfig, keeping your context list accurate and manageable across workstations.

Does kubecm support exporting kubeconfigs for cross-workstation distribution?

Yes, kubecm supports exporting kubeconfigs for cross-workstation distribution by integrating with pass. This allows you to export, merge, and share kubectl and talosctl configurations securely across multiple devices.