rohitg00/kubectl-mcp-server/k8s-operations

Claude Code and agent skill by rohitg00/kubectl-mcp-server

Trust tier 2
  • community
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

kubectl operations for applying, patching, deleting, and executing commands on Kubernetes resources. Use when modifying resources, running commands in pods, or managing resource lifecycle.

Install

npx vskill@latest install rohitg00/kubectl-mcp-server/k8s-operations

SKILL.md

kubectl Operations

Execute kubectl commands using kubectl-mcp-server's operations tools.

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

When to Apply

Use this skill when:

  • User mentions: "apply", "patch", "delete", "exec", "scale", "rollout"
  • Operations: modifying resources, running commands, scaling workloads
  • Keywords: "update", "change", "modify", "run command", "restart"

Priority Rules

PriorityRuleImpactTools
1Compare with live state before apply in productionCRITICALkubectl_get(resource_type, name, output="yaml")
2Check current state before patchingHIGHkubectl_describe
3Avoid force delete unless necessaryHIGHdelete_resource
4Verify rollout status after changesMEDIUMkubectl_rollout

Quick Reference

TaskToolExample
Apply manifestkubectl_applykubectl_apply(manifest=yaml)
Patch resourcekubectl_patchkubectl_patch(type, name, namespace, patch)
Delete resourcedelete_resourcedelete_resource(type, name, namespace)
Exec commandexec_in_podexec_in_pod(pod, namespace, command)
Scale deploymentkubectl_scalekubectl_scale(resource_type="deployment", name, namespace, replicas)

Apply Resources

python
kubectl_apply(manifest="""
apiVersion: apps/v1
kind: Deployment
metadata:
name: nginx
namespace: default
spec:
replicas: 3
selector:
matchLabels:
app: nginx
template:
metadata:
labels:
app: nginx
spec:
containers:
- name: nginx
image: nginx:latest
""")

Patch Resources

python
kubectl_patch(
resource_type="deployment",
name="nginx",
namespace="default",
patch={"spec": {"replicas": 5}}
)
kubectl_patch(
resource_type="deployment",
name="nginx",
namespace="default",
patch=[{"op": "replace", "path": "/spec/replicas", "value": 5}],
patch_type="json"
)
kubectl_patch(
resource_type="service",
name="my-svc",
namespace="default",
patch={"metadata": {"annotations": {"key": "value"}}},
patch_type="merge"
)

Delete Resources

python
delete_resource(resource_type="pod", name="my-pod", namespace="default")
delete_resource(resource_type="deployment", name="old-app", namespace="default")

Execute Commands

python
exec_in_pod(
pod_name="my-pod",
namespace="default",
command="ls -la /app"
)
exec_in_pod(
pod_name="my-pod",
namespace="default",
container="sidecar",
command="cat /etc/config/settings.yaml"
)
exec_in_pod(
pod_name="my-pod",
namespace="default",
command="sh -c 'curl -s localhost:8080/health'"
)

Scale Resources

python
kubectl_scale(resource_type="deployment", name="nginx", namespace="default", replicas=5)
kubectl_scale(resource_type="deployment", name="nginx", namespace="default", replicas=0)
kubectl_scale(
resource_type="statefulset",
name="mysql",
namespace="default",
replicas=3
)

Rollout Management

python
kubectl_rollout(action="status",
resource_type="deployment",
name="nginx",
namespace="default"
)
kubectl_rollout(action="history",
resource_type="deployment",
name="nginx",
namespace="default"
)
kubectl_rollout(action="restart",
resource_type="deployment",
name="nginx",
namespace="default"
)
kubectl_rollout(action="undo", resource_type="deployment", name="nginx", namespace="default")

Labels and Annotations

python
label_resource(
resource_type="pod",
name="my-pod",
namespace="default",
labels={"env": "production"}
)
annotate_resource(
resource_type="deployment",
name="nginx",
namespace="default",
annotations={"description": "Main web server"}
)

Related Skills

Security

  • Security scanPassed, 96 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
853
Repository forks
166
Repository npm downloads, 7 days
360
7-day trend score
48

Stars and forks are for the whole GitHub repository, not this skill alone. Downloads are for the repository's npm package. Refreshed 20 Mar 2026, 8 months ago.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/rohitg00/kubectl-mcp-server/k8s-operations/badge)](https://verified-skill.com/skills/rohitg00/kubectl-mcp-server/k8s-operations)

Something wrong with this skill or its page? Tell us.