Agent skill · software engineering · sundial-org
kubectl-skill
Execute and manage Kubernetes clusters via kubectl commands. Query resources, deploy applications, debug containers, manage configurations, and monitor cluster health. Use when working with Kubernetes clusters, containers, deployments, or pod diagnostics.
Why this skill is useful
Provides specific kubectl commands and patterns for managing Kubernetes clusters that the AI wouldn't reliably generate on its own.
What it needs
Requires kubectl installed locally. About 4k tokens when loaded. Last updated 2026-03-07. 639 stars on the source repository.
What this skill does
kubectl Skill Execute Kubernetes cluster management operations using the kubectl command-line tool. Overview This skill enables agents to: Query Resources — List and get details about pods, deployments, services, nodes, etc. Deploy & Update — Create, apply, patch, and update Kubernetes resources Debug & Troubleshoot — View logs, execute commands in containers, inspect events Manage Configuration — Update kubeconfig, switch contexts, manage namespaces Monitor Health — Check resource usage, rollout status, events, and pod conditions Perform Operations — Scale deployments, drain nodes, manage taints and labels Prerequisites 1. kubectl binary installed and accessible on PATH (v1.20+) 2. kubeconfig file configured with cluster credentials (default: ~/.kube/config) 3. Active connection to a Kubernetes cluster Quick Setup Install kubectl macOS: Linux: Verify: Essential Commands Query Resources View Logs Execute Commands Deploy Applications Update Applications Manage Configuration Common Patterns Debugging a Pod Deploying a New Version Preparing Node for Maintenance Output Formats The --output (-o) flag supports multiple formats: table — Default tabular format wide — Extended table with additional columns json — JSON format (useful with jq) yaml — YAML format jsonpath — JSONPath expressions custom-columns — Define custom output columns name — Only resource names Examples: Global Flags (Available to All Commands) Dry-Run Modes --dry-run=client — Fast client-side validation (test commands safely) --dry-run=server — Server-side validation (more accurate) --dry-run=none — Execute for real (default) Always test with --dry-run=client first: Advanced Topics For detailed reference material, command-by-command documentation, troubleshooting guides, and advanced workflows, see: references/REFERENCE.md — Complete kubectl command reference scripts/ — Helper scripts for common tasks Helpful Tips 1. Use label selectors for bulk operations: 2. Watch resources in real-time: 3. …
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills sundial-org/kubectl-skill