AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Kubectl

skill-greedychipmunk-agent-skills-kubectl · by greedychipmunk

Manage Kubernetes resources, contexts, and workloads with kubectl. Use when tasks mention kubectl, Kubernetes resources, kubeconfig, kubectl apply, kubectl get pods, Kubernetes contexts, or KUBECONFIG.

No reviews yet
0 installs
13 views
0.0% view→install

Install

$ agentstack add skill-greedychipmunk-agent-skills-kubectl

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-greedychipmunk-agent-skills-kubectl)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
1mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Kubectl? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

kubectl

Use this skill to keep Kubernetes resource management deterministic and safe across clusters and namespaces.

Intent Router

| Request | Reference | Load When | | --- | --- | --- | | Install, kubeconfig setup, contexts, env vars | resources/install-and-setup.md | User needs to install kubectl or configure KUBECONFIG/contexts | | Core commands: get/describe/apply/delete/logs/exec | resources/command-cookbook.md | User needs daily kubectl operations | | Resources, labels, namespaces, explain | resources/resource-management.md | User asks about resource types, labels, selectors, or declarative workflows | | Pod crashes, ImagePull errors, events, debug | resources/troubleshooting.md | User encounters CrashLoopBackOff, OOMKilled, or needs cluster diagnostics |

Quick Start

# Verify connectivity
kubectl cluster-info
kubectl get nodes

# Confirm active context and namespace
kubectl config current-context
kubectl config view --minify

# List pods in all namespaces
kubectl get pods -A

# Apply a manifest
kubectl apply -f deployment.yaml --dry-run=client
kubectl apply -f deployment.yaml

Core Command Tracks

  • Read state: kubectl get/describe — inspect current cluster state
  • Apply changes: kubectl apply -f — declarative reconciliation
  • Logs: kubectl logs [-c ] [-f] [--previous]
  • Shell: kubectl exec -it -- bash
  • Port forward: kubectl port-forward 8080:80
  • Rollout: kubectl rollout status/history/undo deployment/
  • Scale: kubectl scale deployment/ --replicas=3
  • Output formats: -o wide, -o json, -o yaml, -o jsonpath

Safety Guardrails

  • Always confirm active context (kubectl config current-context) before applying changes to prevent applying to the wrong cluster.
  • Always specify namespace explicitly with -n for production operations; never rely on default namespace alone.
  • Use --dry-run=client -o yaml to preview resources before applying.
  • Use kubectl diff -f to see what will change before applying.
  • Confirm before running kubectl delete — especially with label selectors (-l) which can match many resources.
  • Never run kubectl delete namespace without explicit user confirmation; it deletes all resources in the namespace.
  • Prefer kubectl rollout undo over direct manifest rewrites for reverting deployments.
# Troubleshoot a crashing pod: check recent events then inspect previous container logs
kubectl get events --sort-by=.lastTimestamp -n my-namespace
kubectl logs my-pod --previous -n my-namespace

Workflow

  1. Confirm context: kubectl config current-context and kubectl config get-contexts.
  2. Inspect current state with kubectl get and kubectl describe before making changes.
  3. Preview changes with kubectl diff -f or --dry-run=client.
  4. Apply changes with kubectl apply -f .
  5. Monitor rollout with kubectl rollout status deployment/.
  6. On failure, check events with kubectl get events --sort-by=.lastTimestamp.

Related Skills

  • helm — package manager for Kubernetes applications
  • docker — container image building for Kubernetes workloads

References

  • resources/install-and-setup.md
  • resources/command-cookbook.md
  • resources/resource-management.md
  • resources/troubleshooting.md
  • Official docs:
  • Command reference:

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.