# Kubectl

> Kubernetes CLI operations and cluster management

- Skill: `majiayu000/kubectl` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add majiayu000/kubectl`
- Raw SKILL.md: https://api.skillmd.com/api/skills/majiayu000/kubectl/raw
- Safety review: pending (external: skill-scanner PASS, skillspector CAUTION)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: DevOps & Infra
- Author: majiayu000 (https://skillmd.com/u/majiayu000)
- Updated: 2026-09-09
- Page: https://skillmd.com/skills/majiayu000/kubectl

---


# Kubectl Skill

## Overview

Kubernetes cluster management via kubectl. 90%+ context savings.

## Requirements

- kubectl CLI installed
- KUBECONFIG environment variable or ~/.kube/config

## Tools (Progressive Disclosure)

### Pods

| Tool         | Description   | Confirmation |
| ------------ | ------------- | ------------ |
| get-pods     | List pods     | No           |
| describe-pod | Pod details   | No           |
| logs         | View pod logs | No           |
| delete-pod   | Delete pod    | **REQUIRED** |

### Deployments

| Tool            | Description         | Confirmation |
| --------------- | ------------------- | ------------ |
| get-deployments | List deployments    | No           |
| scale           | Scale deployment    | Yes          |
| rollout         | Rollout status      | No           |
| rollback        | Rollback deployment | Yes          |

### Services

| Tool         | Description     |
| ------------ | --------------- |
| get-services | List services   |
| get-ingress  | List ingresses  |
| port-forward | Port forwarding |

### BLOCKED

| Tool             | Status      |
| ---------------- | ----------- |
| delete namespace | **BLOCKED** |
| delete cluster   | **BLOCKED** |

## Agent Integration

- **devops** (primary): Cluster operations
- **developer** (secondary): App deployment

