kubectl-cli
Skill2 starsChanged 10 months agoMITView on GitHub
Kubernetes CLI operations for AKS and ARO cluster management
1 other project uses a version of this.
Adopted by
Most recently taken up by
- DataKnifeAI/agent-skillstheir own version, first seen Apr 11, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- DataKnifeAI/agent-skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository19 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .github/copilot-instructions.mdCopilot instructions
- ai-foundry-operationsSkill
- argocd-cliSkill
- aro-deploymentSkill
- azure-cliSkill
- azure-infrastructureSkill
- database-managementSkill
- deploy-orchestrationSkill
- github-cliSkill
- helm-cliSkill
- mcp-cliSkill
- observability-stackSkill
- oc-cliSkill
- openshift-operationsSkill
- prerequisitesSkill
- rhdh-portalSkill
- terraform-cliSkill
- validation-scriptsSkill
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 5 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 82
ALWAYS use --dry-run=client before apply
- Distinctive: line 83
ALWAYS specify namespace with -n
- Distinctive: line 84
Use labels for selection: -l app=myapp
- Distinctive: line 85
Check events when pods fail
- Distinctive: line 86
Use kubectl diff for change preview
- Distinctive: line 87
NEVER delete without explicit namespace
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
When to Use
- Cluster health verification
- Resource deployment and management
- Troubleshooting pod issues
- Viewing logs and events
Prerequisites
- kubectl installed and configured
- KUBECONFIG set to valid config
- kubelogin for Azure AD authentication
- Appropriate RBAC permissions
Commands
Cluster Health
# Cluster info
kubectl cluster-info
# Node status
kubectl get nodes -o wide
# System pods
kubectl get pods -n kube-system
# Unhealthy pods across all namespaces
kubectl get pods -A --field-selector=status.phase!=Running,status.phase!=SucceededResource Management
# Dry-run before apply
kubectl apply -f manifest.yaml --dry-run=client -o yaml
# Diff changes
kubectl diff -f manifest.yaml
# Apply with recording
kubectl apply -f manifest.yaml --record
# Delete with grace
kubectl delete -f manifest.yaml --grace-period=30Troubleshooting
# Describe pod
kubectl describe pod <pod-name> -n <namespace>
# Pod logs (current)
kubectl logs -f <pod-name> -n <namespace>
# Pod logs (previous crash)
kubectl logs <pod-name> -n <namespace> --previous
# Events by time
kubectl get events -n <namespace> --sort-by='.lastTimestamp'
# Exec into pod
kubectl exec -it <pod-name> -n <namespace> -- /bin/shResource Queries
# Get all resources in namespace
kubectl get all -n <namespace> -o wide
# Get resource as YAML
kubectl get deployment <name> -n <namespace> -o yaml
# Resource usage
kubectl top pods -n <namespace>
kubectl top nodesBest Practices
- ALWAYS use --dry-run=client before apply
- ALWAYS specify namespace with -n
- Use labels for selection: -l app=myapp
- Check events when pods fail
- Use kubectl diff for change preview
- NEVER delete without explicit namespace
Output Format
- Command executed
- Resource status summary
- Any warnings or errors
- Recommended actions
Integration with Agents
Used by: @platform, @devops, @sre, @test
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

