<< All versions

Skill v2.0.0

currentAutomated scan96/100
rohitg00/kubectl-mcp-server/k8s-diagnostics

+4 new

──Details
PublishedNovember 8, 2026 at 06:32 AM
Content Hashsha256:d62acb14487ac735...
Git SHAa3fef9fe2310
Bump Typepatch
Compare with v1.0.1
──Files
Files (1 file, 3.2 KB)
SKILL.md3.2 KBactive
SKILL.md · 130 lines · 3.2 KB

name: k8s-diagnostics description: Kubernetes diagnostics for metrics, health checks, resource comparisons, and cluster analysis. Use when analyzing cluster health, comparing environments, or gathering diagnostic data. license: MIT-0 metadata: author: rohitg00 version: "2.0.0" tools: 10 category: observability


Kubernetes Diagnostics

Analyze cluster health and compare resources using kubectl-mcp-server's diagnostic tools.

Requires the diagnostics, multicluster toolsets: start kubectl-mcp-server with --toolsets default,diagnostics,multicluster (or MCP_TOOLSETS=default,diagnostics,multicluster).

When to Apply

Use this skill when:

  • User mentions: "metrics", "health check", "compare", "analysis", "capacity"
  • Operations: cluster health assessment, environment comparison, resource analysis
  • Keywords: "how much", "usage", "difference between", "capacity planning"

Priority Rules

PriorityRuleImpactTools
1Check metrics-server before using metricsCRITICALkubectl_top
2Run health check before deploymentsHIGHhealth_check
3Compare staging vs prod before releaseMEDIUMcompare_namespaces
4Document baseline metricsLOWget_nodes_summary

Quick Reference

TaskToolExample
Cluster healthhealth_checkhealth_check()
Pod metricskubectl_topkubectl_top(namespace)
Node summaryget_nodes_summaryget_nodes_summary()
Compare envscompare_namespacescompare_namespaces(ns1, ns2, type)
List CRDskubectl_getkubectl_get(resource_type="crds")

Resource Metrics

python
kubectl_top(namespace="default")
kubectl_top(resource="nodes")
kubectl_top(resource="pods", namespace="default", sort_by="cpu")
kubectl_top(resource="pods", namespace="default", sort_by="memory")

Cluster Health Check

python
health_check()
health_check()

Compare Environments

python
compare_namespaces(
namespace1="staging",
namespace2="production",
resource_type="deployment"
)
kubectl_get(resource_type="deployments", namespace="default", context="staging-cluster")
kubectl_get(resource_type="deployments", namespace="default", context="prod-cluster")

API Discovery

python
get_api_resources()
kubectl_get(resource_type="crds", name="certificates.cert-manager.io")
kubectl_get(resource_type="crds")

Resource Analysis

python
get_nodes_summary()
kubeconfig_view()
list_contexts()

Diagnostic Workflows

Cluster Overview

python
health_check()
get_nodes_summary()
kubectl_get(resource_type="events", namespace="")
kubectl_get(resource_type="crds")

Pre-deployment Check

python
kubectl_top(namespace="production")
get_nodes_summary()
compare_namespaces(namespace1="staging", namespace2="prod", resource_type="deployment")

Post-incident Analysis

python
kubectl_get(resource_type="events", namespace)
kubectl_logs(name, namespace, previous=True)
kubectl_top(namespace)
kubectl_describe(name)

Related Skills

← v1.0.1All versions