kubectl

Manage Kubernetes clusters with kubectl commands for workloads, logs, and resources.

Updated Apr 9, 2026
One-click install
npx skills add https://github.com/nist0/CoDev --skill kubectl-nist0
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: kubectl
Source: https://github.com/nist0/CoDev/tree/main/.github/skills/kubectl
Command: npx skills add https://github.com/nist0/CoDev --skill kubectl-nist0

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires kubectl, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill provides a comprehensive operational guide for Kubernetes cluster management, offering quick commands and workflows for common tasks.

Core Features & Use Cases

  • Context and Namespace Management: Quickly switch between Kubernetes contexts and manage namespaces.
  • Workload Triage: Retrieve and monitor workload information efficiently.
  • Logs and Events: Access and analyze logs and events for troubleshooting.
  • Rollouts and Rollbacks: Manage Kubernetes rollouts and rollbacks safely.
  • Resource Usage and Scaling: Monitor resource usage and scale workloads as needed.
  • Patch Resources: Modify resources in-place with ease.
  • Debugging: Execute commands for debugging and port-forwarding.
  • Secrets and ConfigMaps: Manage Kubernetes secrets and config maps securely.
  • Node Operations: Perform node maintenance operations like cordon, drain, and uncordon.
  • Resource Quotas and Limits: Set and manage resource quotas and limits.
  • Labels, Annotations, and Field-Selectors: Apply labels, annotations, and use field-selectors for filtering resources.
  • Apply, Diff, and Delete: Safely apply changes, diff manifests, and delete resources.
  • Service and Endpoint Inspection: Inspect services, endpoints, and ingress resources.
  • Quick DNS Resolution Test: Perform quick DNS resolution tests from a pod.
  • Self-check: Provides a checklist for common safety checks.
  • Quick Triage Command Set: Offers a minimal set of commands for quick cluster triage.

Quick Start

Use the kubectl skill to get a list of all pods in the current namespace.

Frequently Asked Questions about kubectl

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

FAQPage Schema
How do I troubleshoot Kubernetes workloads using kubectl commands?

Troubleshoot Kubernetes workloads by retrieving workload information, accessing logs, analyzing events, and executing debugging commands like port-forwarding to identify and resolve cluster issues efficiently.

What is the best way to manage Kubernetes rollouts and scale resources?

Manage Kubernetes rollouts and scale resources by using specific commands to monitor rollout status, execute rollbacks safely, track resource usage, and apply horizontal scaling to workloads as demand changes.

Can I safely patch resources and manage secrets in a Kubernetes cluster?

Yes, you can safely patch resources to modify them in-place and securely manage Kubernetes secrets and config maps to control sensitive configuration data across your cluster environments.

How do I switch Kubernetes contexts and perform node maintenance operations?

Switch Kubernetes contexts to change target clusters and perform node maintenance operations like cordon, drain, and uncordon to safely prepare nodes for maintenance or bring them back online.

Does the kubectl skill require a specific environment to manage cluster resources?

Yes, this skill requires a functioning Kubernetes cluster and the kubectl command-line tool to execute operations like resource patching, DNS resolution testing, and quota management effectively.

Why run a self-check before applying changes to Kubernetes resources?

Run a self-check to execute a checklist of common safety validations before applying changes, diffing manifests, or deleting resources to prevent accidental disruption to cluster workloads.