Provides direct CLI access to inspect and manage fundamental Kubernetes objects.

Install

mkdir -p .claude/skills/k8s-core && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/8290" && unzip -o skill.zip -d .claude/skills/k8s-core && rm skill.zip

Installs to .claude/skills/k8s-core

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.

Core Kubernetes resource management for pods, namespaces, configmaps, secrets, and nodes. Use when listing, inspecting, or managing fundamental K8s objects.
156 chars✓ has a “when” trigger
Beginner

Key capabilities

  • List and describe pods, namespaces, and nodes
  • Retrieve and monitor pod logs
  • Manage configmaps and secrets
  • Cordon, uncordon, and drain nodes
  • Filter resources using label selectors

How it works

The skill uses kubectl-mcp-server tools to interact with core Kubernetes objects, supporting namespace-scoped operations and multi-cluster contexts.

Inputs & outputs

You give it
Kubernetes resource name and namespace
You get back
Resource metadata, logs, or status events

When to use k8s-core

  • Listing pods in namespaces
  • Checking pod logs
  • Managing configmaps and secrets

About this skill

Core Kubernetes Resources

Manage fundamental Kubernetes objects using kubectl-mcp-server's core tools.

When to Apply

Use this skill when:

  • User mentions: "pods", "namespaces", "configmaps", "secrets", "nodes", "events"
  • Operations: listing resources, describing objects, creating/deleting resources
  • Keywords: "show me", "list", "get", "describe", "create", "delete"

Priority Rules

PriorityRuleImpactTools
1Check namespace exists before operationsCRITICALget_namespaces
2Never expose secrets in plain textCRITICALHandle get_secret output carefully
3Use labels for filteringHIGHlabel_selector parameter
4Check events after changesMEDIUMget_events

Quick Reference

TaskToolExample
List podsget_podsget_pods(namespace="default")
Describe poddescribe_poddescribe_pod(name, namespace)
Get logsget_pod_logsget_pod_logs(name, namespace)
List namespacesget_namespacesget_namespaces()
Get configmapget_configmapget_configmap(name, namespace)
List nodesget_nodesget_nodes()

Pods

get_pods(namespace="default")
get_pods(namespace="kube-system", label_selector="app=nginx")

describe_pod(name="my-pod", namespace="default")

get_pod_logs(name="my-pod", namespace="default")
get_pod_logs(name="my-pod", namespace="default", previous=True)

delete_pod(name="my-pod", namespace="default")

Namespaces

get_namespaces()

create_namespace(name="my-namespace")

delete_namespace(name="my-namespace")

ConfigMaps

get_configmaps(namespace="default")

get_configmap(name="my-config", namespace="default")

create_configmap(
    name="app-config",
    namespace="default",
    data={"key": "value", "config.yaml": "setting: true"}
)

Secrets

get_secrets(namespace="default")

get_secret(name="my-secret", namespace="default")

create_secret(
    name="db-credentials",
    namespace="default",
    data={"username": "admin", "password": "secret123"}
)

Nodes

get_nodes()

describe_node(name="node-1")

get_nodes_summary()

cordon_node(name="node-1")
uncordon_node(name="node-1")

drain_node(name="node-1", ignore_daemonsets=True)

Events

get_events(namespace="default")

get_events(namespace="default", field_selector="involvedObject.name=my-pod")

Multi-Cluster Support

All tools support context parameter:

get_pods(namespace="default", context="production-cluster")
get_nodes(context="staging-cluster")

Related Skills

When not to use it

  • Managing non-Kubernetes infrastructure
  • Exposing secrets in plain text

Limitations

  • Never expose secrets in plain text

How it compares

It abstracts standard kubectl commands into specific tool functions with built-in safety checks for sensitive data.

Compared to similar skills

k8s-core side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
k8s-core (this skill)06moNo flagsBeginner
debug-cluster28moReviewIntermediate
lucas-runbook16moNo flagsBeginner
k8s-service-mesh16moReviewAdvanced

Try saying

Example prompts that trigger this skill in your AI assistant.

More by rohitg00

View all by rohitg00

Search skills

Search the agent skills registry