Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add commands/thelobbi/claude/k8s-debuggit clone --depth 1 https://github.com/TheLobbi/claudeWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/commands/thelobbi/claude/k8s-debug)<a href="https://agentmods.dev/commands/thelobbi/claude/k8s-debug"><img src="https://agentmods.dev/badge/commands/thelobbi/claude/k8s-debug.svg" alt="Measured on agentmods" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00013 | $0.00439 |
| Opus 5 | $0.00006 | $0.00219 |
| Sonnet 5 | $0.00003 | $0.00088 |
| Haiku 4.5 | $0.00001 | $0.00044 |
Grade A, and why
k8s-debug scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
What it actually says
Kubernetes Debugging
Execute Kubernetes debugging and troubleshooting tasks. Available operations:
Usage
/k8s-debug <operation> [options]
Operations
Pod Debugging
pod-status- Get detailed pod statuspod-logs- Get pod logs (current and previous)pod-events- Get pod-related eventspod-exec- Execute command in podpod-describe- Full pod description
Service Debugging
svc-endpoints- Check service endpointssvc-connectivity- Test service connectivitydns-test- Test DNS resolution
Resource Analysis
resource-usage- Show CPU/memory usageresource-limits- Check resource limitsquota-status- Check resource quota
Network Debugging
network-policy- Check network policiesingress-status- Check ingress configurationport-forward- Set up port forwarding
Cluster Health
node-status- Check node healthevents- Get recent cluster eventspvc-status- Check persistent volumes
Examples
# Debug crashing pod
/k8s-debug pod-status --name alpha-members-abc123
# Get logs from previous container
/k8s-debug pod-logs --name alpha-members-abc123 --previous
# Test service connectivity
/k8s-debug svc-connectivity --service alpha-members
# Check resource usage
/k8s-debug resource-usage --namespace alpha-production
# Get recent warning events
/k8s-debug events --type Warning --limit 20
# Test DNS resolution
/k8s-debug dns-test --hostname alpha-members.alpha-production.svc.cluster.local
Agent Assignment
This command activates the k8s-debugger agent for execution.
Prerequisites
- kubectl configured with cluster access
- metrics-server installed (for resource-usage)
- Appropriate RBAC permissions
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- yesterday First seen · 72 lines · 13 tokens per session scan A df255252aa48
k8s-debug is a command published in the GitHub repository TheLobbi/claude (21 stars, last pushed yesterday), licensed MIT. It adds 13 tokens to every session and 439 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-05.
Other commands, from other repositories
runtime-logs
Apply the CLI runtime and safety contract before executing a command. Runtime --help is authoritative.
ci-fix
Fix CI pipeline issues with interactive approval.
debug-pod
Debug a failing or unhealthy Kubernetes pod by analyzing events, logs, and configuration.
debug
Structured platform troubleshooting — classifies the problem layer, collects evidence, forms a root-cause hypothesis, and proposes a fix with validation and rollback steps.
doctor
Diagnose the local Spree dev stack — Docker, containers, env, web, migrations, jobs — and prescribe the exact fix.
flow-nexus-sandbox
E2B sandbox management for isolated code execution.