All skills
nodnarbnitram avatar

/kubernetes-operations

@1ac816c

Assist with Kubernetes interactions including debugging (kubectl logs, describe, exec, port-forward), resource management (deployments, services, configmaps, secrets), and cluster operations (scaling, rollouts, node management). Use when working with kubectl, pods, deployments, services, or troubleshooting Kubernetes issues.

Use this Skill: https://skilld.dev/gh/nodnarbnitram/claude-code-extensions/kubernetes-operations

This session only. Nothing lands on disk.

README.md

≈953 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Kubernetes Operations

Comprehensive kubectl assistance for debugging, resource management, and cluster operations with token-efficient scripts.

Status Active
Version 1.0.0
Last Updated 2025-11-22
Confidence 4/5
Production Tested Yes

What This Skill Does

Provides intelligent assistance for Kubernetes operations using kubectl. Includes token-efficient Python scripts that condense verbose kubectl output into actionable summaries.

Core Capabilities

  • Debug pods with condensed status, events, and logs
  • Manage resources (deployments, services, configmaps, secrets)
  • Monitor cluster health and resource usage
  • Troubleshoot common Kubernetes issues

Auto-Trigger Keywords

Primary Keywords

Exact terms that strongly trigger this skill:

  • kubectl
  • kubernetes
  • k8s
  • pods
  • deployments

Secondary Keywords

Related terms that may trigger in combination:

  • cluster
  • namespace
  • service
  • configmap
  • secret
  • nodes
  • replicas
  • rollout

Error-Based Keywords

Common error messages that should trigger this skill:

  • "CrashLoopBackOff"
  • "ImagePullBackOff"
  • "Pending"
  • "OOMKilled"
  • "connection refused"
  • "no endpoints available"
  • "forbidden"

Known Issues Prevention

Issue Root Cause Solution
Wrong cluster context Not verifying before commands Always check kubectl config current-context
Verbose output flooding Using default kubectl output Use scripts or jsonpath for minimal output
Missing debug info Incomplete investigation Use debug_pod.py for comprehensive view
Secret exposure Outputting secrets as YAML Never output secrets in plain text

When to Use

Use This Skill For

  • Debugging pod startup issues
  • Checking cluster health
  • Managing Kubernetes resources
  • Troubleshooting service connectivity
  • Viewing logs and events

Don't Use This Skill For

  • Creating Helm charts (use helm-chart-scaffolding skill)
  • ArgoCD/GitOps workflows (use argocd agents)
  • Terraform/IaC for cluster provisioning
  • Custom Resource Definition development

Quick Usage

# Debug a pod
uv run scripts/debug_pod.py my-pod -n my-namespace

# List resources compactly
uv run scripts/get_resources.py pods -n my-namespace

# Check cluster health
uv run scripts/cluster_health.py

Token Efficiency

Approach Estimated Tokens Time
Manual kubectl commands ~1200 5+ min
With This Skill ~400 1 min
Savings 67% 4 min

File Structure

kubernetes-operations/
├── SKILL.md        # Detailed instructions and patterns
├── README.md       # This file - discovery and quick reference
├── scripts/        # Token-efficient automation scripts
│   ├── debug_pod.py
│   ├── get_resources.py
│   └── cluster_health.py
├── references/     # Supporting documentation
│   ├── kubectl-cheatsheet.md
│   ├── jsonpath-patterns.md
│   └── debugging-flowchart.md
└── assets/         # Templates and resources

Dependencies

Package Version Verified
kubectl 1.25+ 2024-11-22
jq 1.6+ 2024-11-22

Official Documentation

Related Skills

  • helm-chart-scaffolding - Helm chart creation and management
  • k8s-manifest-generator - Generate Kubernetes YAML manifests
  • gitops-workflow - ArgoCD/Flux GitOps patterns

License: MIT

Source: SKILL.md on GitHub

1 warning6mo4 checks · Risk SAFE
  • Gen Agent Trust Hub7mo

    This skill provides a robust set of tools and instructions for managing Kubernetes clusters via kubectl. It emphasizes security best practices, such as verifying cluster context and using dry-runs for destructive operations. The included Python scripts are designed for token efficiency and do not utilize external dependencies or network calls outside of standard kubectl operations.

  • Socket6mo

    No alerts

  • Snyk7mo

    Risk: LOW · No issues

  • Runlayer7mo

    8/8 files flagged

Signed by skilld at 1ac816c. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 months ago.

Steadyupdated 6 months ago
What it can do
Reads files Runs commands
All 4 allowed tools
ReadGrepGlobBash

README badge

README badge for nodnarbnitram/claude-code-extensions/kubernetes-operations