k8s-core
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.zipInstalls 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.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
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
| Priority | Rule | Impact | Tools |
|---|---|---|---|
| 1 | Check namespace exists before operations | CRITICAL | get_namespaces |
| 2 | Never expose secrets in plain text | CRITICAL | Handle get_secret output carefully |
| 3 | Use labels for filtering | HIGH | label_selector parameter |
| 4 | Check events after changes | MEDIUM | get_events |
Quick Reference
| Task | Tool | Example |
|---|---|---|
| List pods | get_pods | get_pods(namespace="default") |
| Describe pod | describe_pod | describe_pod(name, namespace) |
| Get logs | get_pod_logs | get_pod_logs(name, namespace) |
| List namespaces | get_namespaces | get_namespaces() |
| Get configmap | get_configmap | get_configmap(name, namespace) |
| List nodes | get_nodes | get_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
- k8s-troubleshoot - Debug failing pods
- k8s-operations - kubectl apply/patch/delete
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.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| k8s-core (this skill) | 0 | 6mo | No flags | Beginner |
| debug-cluster | 2 | 8mo | Review | Intermediate |
| lucas-runbook | 1 | 6mo | No flags | Beginner |
| k8s-service-mesh | 1 | 6mo | Review | Advanced |
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.
lucas-runbook
a2wio
Lucas runbook-driven troubleshooting for Kubernetes issues. Use when investigating pod errors, crashes, restarts, or any Kubernetes problem. Automatically search runbooks before taking action.
k8s-service-mesh
rohitg00
Manage Istio service mesh for traffic management, security, and observability. Use for traffic shifting, canary releases, mTLS, and service mesh troubleshooting.
skill-aks-health
microsoft
[Skill] aks, aks health, cluster health, node pool, activity logs - Inspect Koji AKS cluster health, node pool status, autoscaling, activity logs, deployment failures, and Azure control-plane operations.
kubernetes-specialist
agisota
Use when a task needs Kubernetes manifest review, rollout safety analysis, or cluster workload debugging.
k8s-debug
doleval013
Kubernetes debugging commands and troubleshooting for the K3s cluster