nitinjain999/platform-skills/kubernetes
Claude Code and agent skill by nitinjain999/platform-skills
- community
Checking that the SKILL.md file is still in the repository.
Cluster baseline scaffolding, RBAC diagnosis and generation, workload hardening, and structured pod/scheduling debug for plain Kubernetes across all distributions.
Install
npx vskill@latest install nitinjain999/platform-skills/kubernetesSKILL.md
Kubernetes Command
Structured guidance for cluster baseline standards, RBAC, workload patterns, and operational debugging on Kubernetes.
Activation
Interactive Wizard (fires when no mode is provided)
When invoked with no arguments, ask before proceeding:
Q1 — Mode?
Q2 — Context (after mode selected):
- baseline:
Which namespace? What team owns it? Any special requirements (privileged workloads, GPU, ingress)? - rbac:
Paste the 403 error message or describe which service account needs which access. - workload:
Paste the Deployment manifest or describe what the workload does. - debug:
Paste the pod describe output and recent logs, or describe the symptom.
Mode: baseline
Triggers: baseline, scaffold, new namespace, set up namespace, platform baseline
Read references/kubernetes.md before responding.
Generate the minimum platform baseline for a new namespace. Ask for namespace name and team before generating.
Namespace with ownership labels
Resource quota
LimitRange — container defaults
Default-deny network policy
PodDisruptionBudget
Validation
Handoffs:
- Policy enforcement on these namespaces →
/platform-skills:kyvernoor/platform-skills:opa - Secrets strategy for the namespace →
/platform-skills:secrets - Measure the result against NSA or the provider's CIS benchmark →
/platform-skills:kubescape cluster(kubescape scan framework nsa --include-namespaces app-team) - Allow rules for the default-deny policy, drafted from the traffic the workloads actually send →
/platform-skills:kubescape-operator netpol
Mode: rbac
Triggers: 401, 403, forbidden, unauthorized, role, binding, service account, RBAC, can-i
Read references/kubernetes.md → RBAC troubleshooting section before responding.
Step 1 — Diagnose 401 vs 403
| Code | Layer | First check | |
|---|---|---|---|
401 Unauthorized | Authentication failed | kubectl auth whoami — confirm identity | |
403 Forbidden | Authorized identity, missing permission | kubectl auth can-i — confirm what is allowed |
Step 2 — Simulate the failing request
Step 3 — Find existing bindings for the service account
Step 4 — Generate minimum Role and RoleBinding
Scope selection
| Situation | Use | |
|---|---|---|
| Workload needs access within one namespace | RoleBinding → Role | |
| Reuse a cluster role, scoped to one namespace | RoleBinding → ClusterRole | |
| Controller needs cross-namespace or node access | ClusterRoleBinding → ClusterRole |
Prefer the narrowest scope. Audit ClusterRoleBinding usage regularly:
Validation
Rollback: Delete the RoleBinding. Roles and bindings are additive — removing them revokes the access without affecting running workloads beyond that access.
Mode: workload
Triggers: deployment, statefulset, HPA, probes, securityContext, harden, resources, requests, limits
Read references/kubernetes.md before responding.
Hardened Deployment template
HPA — only when requests and metrics are defined
For event-driven or custom metric scaling → /platform-skills:keda
Common hardening gaps
| Gap | Fix | |
|---|---|---|
No resources.requests | Pod is unschedulable under resource pressure; add requests | |
resources.limits.cpu set | Causes throttling even when cores are idle; remove CPU limit unless hard isolation is needed | |
runAsRoot: true or no runAsNonRoot | Run as non-root; most app images support UID 1000+ | |
No readinessProbe | Pod receives traffic before it is ready; add readiness probe | |
No startupProbe for slow apps | Liveness kills pods during slow start; add startup probe | |
default service account | Creates implicit access to cluster APIs; create a dedicated SA |
Find these gaps across a whole manifest tree or cluster at once: kubescape scan framework nsa <path> (or with no path for the current cluster) lists each as a failed control with the affected resources → /platform-skills:kubescape.
Mode: debug
Triggers: crashloop, OOMKilled, pending, ImagePullBackOff, ErrImagePull, error, not starting, debug
Apply the structured checklist:
Step 1 — Collect evidence
Step 2 — Classify by symptom
CrashLoopBackOff
Common causes: application error on startup, missing env var or secret, wrong entrypoint, liveness probe killing a slow-starting pod (add startupProbe).
OOMKilled
Fix: increase resources.limits.memory or profile the application for a memory leak. Never remove the limit — set it correctly.
Pending
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/kubernetes/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
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
[](https://verified-skill.com/skills/nitinjain999/platform-skills/kubernetes)