k8s-locator

k8s-locator is an agent for Claude Code from eveld/claude. It costs 43 tokens per session (2,155 once invoked), scanned A, original, MIT.

A Kubernetes resource locator. It lists objects such as pods, deployments, services, ConfigMaps, and Secrets that match names, labels, namespaces, or other filters.

In plain words
What is it for?
Use it to find related Kubernetes resources across namespaces and save their details for later analysis.
Why use it?
It gives you a structured inventory before investigation, so you do not have to search namespaces and resource types manually.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the workflows plugin — 29 skills, 5 commands, 17 agents shipped together

Install

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.

agentmods
npx agentmods add agents/eveld/claude/k8s-locator
Clone the repo
git clone --depth 1 https://github.com/eveld/claude

Made for: Claude Code.

Or install workflows, the plugin that ships this one along with the rest of its 29 skills, 5 commands, 17 agents.

Wrote 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.

agentmods badge for k8s-locator

README.md
[![agentmods](https://agentmods.dev/badge/agents/eveld/claude/k8s-locator.svg)](https://agentmods.dev/agents/eveld/claude/k8s-locator)
Your own site
<a href="https://agentmods.dev/agents/eveld/claude/k8s-locator"><img src="https://agentmods.dev/badge/agents/eveld/claude/k8s-locator.svg" alt="Measured on agentmods" height="20"></a>
Per session 43 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,155 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00043 $0.02155
Opus 5 $0.00022 $0.01077
Sonnet 5 $0.00009 $0.00431
Haiku 4.5 $0.00004 $0.00215

Measured 6d ago against content hash 06104d6a3c50, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

k8s-locator 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 6d ago.

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.

agents/k8s-locator.md · 260 lines

How it starts

The opening of the file, as written. The whole thing — 260 lines — stays where its author put it; the contents beside it link to each section on GitHub.

You are a specialist at finding Kubernetes resources. Your job is to locate and list what's needed, NOT to analyze health or diagnose issues.

Core Responsibilities

  1. Find Resources by Criteria

    • List pods, deployments, services, configmaps, secrets
    • Filter by namespace, labels, field selectors
    • Search across multiple namespaces
    • Find resources by name patterns
  2. Categorize Resources

    • Group by namespace
    • Organize by resource type
    • Note label patterns
    • Identify related resources
  3. Save Results for Analysis

    • Write resource lists to /tmp files
    • Include metadata (counts, namespaces, contexts)
    • Provide file paths for downstream analysis
    • Use structured formats (JSON, YAML)

Search Strategy

Step 1: Verify Context

Always check current context before querying:

# Check current context and namespace
CURRENT_CONTEXT=$(kubectl config current-context)
CURRENT_NAMESPACE=$(kubectl config view --minify -o jsonpath='{..namespace}' || echo 'default')

echo "K8s Context: $CURRENT_CONTEXT"
echo "Namespace: $CURRENT_NAMESPACE"

Step 2: Build Appropriate Queries

# List resources in specific namespace
kubectl get pods -n NAMESPACE -o json > /tmp/pods-NAMESPACE.json

# List across all namespaces
kubectl get pods --all-namespaces -o json > /tmp/pods-all.json

# Filter by labels
kubectl get pods -n NAMESPACE -l app=SERVICE -o json > /tmp/pods-SERVICE.json

# Multiple resource types
kubectl get pods,deployments,services -n NAMESPACE -o json > /tmp/resources-NAMESPACE.json

Step 3: Execute Queries and Save Results

# Save with descriptive filenames
kubectl get pods -n vcs -o json > /tmp/k8s-pods-vcs-$(date +%Y%m%d-%H%M%S).json

# Multiple namespaces in parallel
kubectl get pods -n vcs -o json > /tmp/pods-vcs.json &
kubectl get pods -n integrations -o json > /tmp/pods-integrations.json &
kubectl get pods -n core -o json > /tmp/pods-core.json &
wait

Query Patterns

Pods by Namespace

# Single namespace
kubectl get pods -n vcs -o json > /tmp/pods-vcs.json

# All namespaces
kubectl get pods --all-namespaces -o json > /tmp/pods-all-namespaces.json

# Multiple specific namespaces (run in parallel)
for ns in vcs integrations core; do
  kubectl get pods -n $ns -o json > /tmp/pods-$ns.json &
done
wait

Read the full file on GitHub · 260 lines

Changes

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.

  1. 6d ago First seen · 260 lines · 43 tokens per session scan A 06104d6a3c50

Subscribe to this mod's changes

k8s-locator is an agent published in the GitHub repository eveld/claude (10 stars, last pushed 7mo ago), licensed MIT. It adds 43 tokens to every session and 2,155 once invoked, about $0.0002 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-08-31.

Related

Other agents, from other repositories

deployment-orchestrator

Use this agent when you need to deploy microservices to cloud platforms, generate container configurations, or manage Kubernetes deployments. This includes creating Dockerfiles, generating Kubernetes manifests, deploying to AWS, and handling rollback scenarios. The agent should be invoked after code is ready for…

manutej/luxor-claude-marketplace · 0 tokens

cloud-architect

Multi-cloud architecture, cost optimization, serverless vs containers, disaster recovery, and infrastructure design specialist. Use for high-level architecture decisions, cloud migration planning, or cost optimization. Trigger phrases: cloud, AWS, GCP, Azure, serverless, containers, Kubernetes, infrastructure, cost…

travisjneuman/.claude · 69 tokens

devsecops-engineer

CI/CD security, SAST/DAST pipelines, supply chain security, container scanning, and security automation specialist. Use when securing CI/CD pipelines, implementing security scanning, or hardening build processes. Trigger phrases: DevSecOps, SAST, DAST, supply chain security, container scanning, CI/CD security, SBOM…

travisjneuman/.claude · 83 tokens

devops-engineer

Expert DevOps and cloud infrastructure engineer for AWS, GCP, Azure, Kubernetes, Terraform, and CI/CD pipelines. Use when setting up pipelines, containerizing apps, writing infrastructure as code, or troubleshooting deployments.

travisjneuman/.claude · 48 tokens

kubernetes-expert

Kubernetes manifests, Helm charts, RBAC, HPA, network policies, and cluster troubleshooting specialist.

vibeeval/vibecosystem · 26 tokens

serverless-specialist

AWS Lambda, Cloudflare Workers, Vercel Edge Functions, and serverless architecture specialist. Use when building serverless functions, optimizing cold starts, or designing event-driven serverless systems. Trigger phrases: serverless, Lambda, Edge Functions, Workers, Vercel, Cloudflare Workers, cold start, function as…

travisjneuman/.claude · 72 tokens