Kubectl Debugging
Troubleshoot Kubernetes deployments using kubectl commands, analyze logs, and identify errors with automated debugging assistance.
Install on your platform
We auto-selected Claude Code based on this skill’s supported platforms.
Run in terminal (recommended)
claude mcp add kubectl-debugging npx -- -y @trustedskills/kubectl-debugging
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"kubectl-debugging": {
"command": "npx",
"args": [
"-y",
"@trustedskills/kubectl-debugging"
]
}
}
}Requires Claude Code (claude CLI). Run claude --version to verify your install.
About This Skill
What it does
This skill enables AI agents to execute kubectl commands directly within Kubernetes clusters for troubleshooting and inspection. It allows agents to retrieve detailed pod status, inspect container logs, and view resource definitions without manual CLI intervention.
When to use it
- Diagnosing why a specific pod is stuck in
CrashLoopBackOfforPendingstates. - Retrieving recent error logs from containers to identify application failures.
- Verifying the current configuration of Deployments, Services, or ConfigMaps during deployment issues.
- Checking node resource utilization when cluster performance degrades unexpectedly.
Key capabilities
- Executes standard
kubectlsubcommands likeget,describe,logs, andexec. - Filters output to focus on specific namespaces, labels, or pod names.
- Interprets complex Kubernetes status messages into actionable insights.
- Supports context switching between different cluster configurations.
Example prompts
- "Describe the 'production-frontend' pod in the 'prod-us-east' namespace and explain why it is not running."
- "Show me the last 50 lines of error logs for any container named 'api-server' across all namespaces."
- "Get the YAML definition for the 'database-service' and check if the port mapping matches the deployment spec."
Tips & gotchas
Ensure your AI agent has valid credentials and access to the target Kubernetes cluster context before running diagnostic commands. Be mindful of rate limits on large clusters when requesting logs from many pods simultaneously, as this can trigger API throttling.
Tags
TrustedSkills Verification
Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.
Security Audits
| Gen Agent Trust Hub | Pass |
| Socket | Pass |
| Snyk | Pass |
🌐 Community
Passed automated security scans.