kubernetes-skills/claude/k8s-diagnostics/SKILL.md
Kubernetes diagnostics for metrics, health checks, resource comparisons, and cluster analysis. Use when analyzing cluster health, comparing environments, or gathering diagnostic data.
npx skillsauth add rohitg00/kubectl-mcp-server k8s-diagnosticsInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Analyze cluster health and compare resources using kubectl-mcp-server's diagnostic tools.
Use this skill when:
| Priority | Rule | Impact | Tools |
|----------|------|--------|-------|
| 1 | Check metrics-server before using metrics | CRITICAL | get_resource_metrics |
| 2 | Run health check before deployments | HIGH | cluster_health_check |
| 3 | Compare staging vs prod before release | MEDIUM | compare_namespaces |
| 4 | Document baseline metrics | LOW | get_nodes_summary |
| Task | Tool | Example |
|------|------|---------|
| Cluster health | cluster_health_check | cluster_health_check() |
| Pod metrics | get_resource_metrics | get_resource_metrics(namespace) |
| Node summary | get_nodes_summary | get_nodes_summary() |
| Compare envs | compare_namespaces | compare_namespaces(ns1, ns2, type) |
| List CRDs | list_crds | list_crds() |
get_resource_metrics(namespace="default")
get_node_metrics()
get_top_pods(namespace="default", sort_by="cpu")
get_top_pods(namespace="default", sort_by="memory")
cluster_health_check()
get_cluster_info()
compare_namespaces(
namespace1="staging",
namespace2="production",
resource_type="deployment"
)
compare_namespaces(
namespace1="default",
namespace2="default",
resource_type="deployment",
context1="staging-cluster",
context2="prod-cluster"
)
get_api_versions()
check_crd_exists(crd_name="certificates.cert-manager.io")
list_crds()
get_nodes_summary()
kubeconfig_view()
list_contexts_tool()
cluster_health_check()
get_nodes_summary()
get_events(namespace="")
list_crds()
get_resource_metrics(namespace="production")
get_nodes_summary()
compare_namespaces(namespace1="staging", namespace2="prod", resource_type="deployment")
get_events(namespace)
get_pod_logs(name, namespace, previous=True)
get_resource_metrics(namespace)
describe_node(name)
development
Manage vCluster (virtual Kubernetes clusters) instances using vind. Use when creating, managing, or operating lightweight virtual clusters for development, testing, or multi-tenancy.
development
Debug Kubernetes pods, nodes, and workloads. Use when pods are failing, containers crash, nodes are unhealthy, or users mention debugging, troubleshooting, or diagnosing Kubernetes issues.
devops
Kubernetes storage management for PVCs, storage classes, and persistent volumes. Use when provisioning storage, managing volumes, or troubleshooting storage issues.
testing
Manage Istio service mesh for traffic management, security, and observability. Use for traffic shifting, canary releases, mTLS, and service mesh troubleshooting.