k8s-diagnostics
Analyzes cluster health, compares resource usage across environments, and gathers diagnostic metrics.
Install
mkdir -p .claude/skills/k8s-diagnostics && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/5973" && unzip -o skill.zip -d .claude/skills/k8s-diagnostics && rm skill.zipInstalls to .claude/skills/k8s-diagnostics
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Kubernetes diagnostics for metrics, health checks, resource comparisons, and cluster analysis. Use when analyzing cluster health, comparing environments, or gathering diagnostic data.Key capabilities
- →Assess cluster health using health checks
- →Compare resource usage between namespaces
- →Analyze pod CPU and memory metrics
- →List and verify Custom Resource Definitions
- →Gather node summaries and cluster information
How it works
It executes diagnostic tools to query cluster metrics, events, and resource configurations for analysis.
Inputs & outputs
When to use k8s-diagnostics
- →Assessing overall cluster health
- →Comparing staging vs production resource usage
- →Analyzing pod CPU and memory metrics
- →Planning node capacity
About this skill
Kubernetes Diagnostics
Analyze cluster health and compare resources using kubectl-mcp-server's diagnostic tools.
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
| 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 |
Quick Reference
| 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() |
Resource Metrics
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
cluster_health_check()
get_cluster_info()
Compare Environments
compare_namespaces(
namespace1="staging",
namespace2="production",
resource_type="deployment"
)
compare_namespaces(
namespace1="default",
namespace2="default",
resource_type="deployment",
context1="staging-cluster",
context2="prod-cluster"
)
API Discovery
get_api_versions()
check_crd_exists(crd_name="certificates.cert-manager.io")
list_crds()
Resource Analysis
get_nodes_summary()
kubeconfig_view()
list_contexts_tool()
Diagnostic Workflows
Cluster Overview
cluster_health_check()
get_nodes_summary()
get_events(namespace="")
list_crds()
Pre-deployment Check
get_resource_metrics(namespace="production")
get_nodes_summary()
compare_namespaces(namespace1="staging", namespace2="prod", resource_type="deployment")
Post-incident Analysis
get_events(namespace)
get_pod_logs(name, namespace, previous=True)
get_resource_metrics(namespace)
describe_node(name)
Related Skills
- k8s-troubleshoot - Debug issues
- k8s-cost - Cost analysis
- k8s-incident - Incident response
When not to use it
- →When metrics-server is not available in the cluster
Prerequisites
Limitations
- →Requires metrics-server for resource metrics
- →Limited to tools provided by kubectl-mcp-server
How it compares
It provides automated diagnostic workflows for cluster health and environment comparison rather than manual kubectl commands.
Compared to similar skills
k8s-diagnostics side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| k8s-diagnostics (this skill) | 1 | 6mo | No flags | Intermediate |
| debug-cluster | 2 | 8mo | Review | Intermediate |
| k8s-debug | 0 | 6mo | Review | Intermediate |
| health-checks | 3 | 6mo | Review | Intermediate |
Try saying
Example prompts that trigger this skill in your AI assistant.
More by rohitg00
View all by rohitg00 →You might also like
debug-cluster
openshift
Provides systematic debugging approaches for HyperShift hosted-cluster issues. Auto-applies when debugging cluster problems, investigating stuck deletions, or troubleshooting control plane issues.
k8s-debug
doleval013
Kubernetes debugging commands and troubleshooting for the K3s cluster
health-checks
dadbodgeoff
Implement health check endpoints for load balancers, Kubernetes, and monitoring. Covers liveness, readiness, and dependency checks.
homelab-investigator
macgregor
>
storage-networking
pluginagentmarketplace
Master Kubernetes storage management and networking architecture. Learn persistent storage, network policies, service discovery, and ingress routing.
k8s-helm
rohitg00
Manage Helm charts, releases, and repositories. Use for Helm installations, upgrades, rollbacks, chart development, and release management.