k8s-analyzer

k8s-analyzer is an agent for coding agents from eveld/claude. It costs 47 tokens per session (2,854 once invoked), scanned A, original, MIT.

A Kubernetes troubleshooting assistant. Kubernetes is software that runs and manages containerized applications; this add-on examines their pods, events, logs, and settings to find causes of failures.

In plain words
What is it for?
Use it to investigate pod health, restarts, image-pull failures, scheduling problems, CPU or memory limits, networking, service discovery, and access permissions.
Why use it?
It reduces the time spent piecing together why containers crash, cannot start, run out of resources, or cannot connect or authenticate.

Agent

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-analyzer
Clone the repo
git clone --depth 1 https://github.com/eveld/claude

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-analyzer

README.md
[![agentmods](https://agentmods.dev/badge/agents/eveld/claude/k8s-analyzer.svg)](https://agentmods.dev/agents/eveld/claude/k8s-analyzer)
Your own site
<a href="https://agentmods.dev/agents/eveld/claude/k8s-analyzer"><img src="https://agentmods.dev/badge/agents/eveld/claude/k8s-analyzer.svg" alt="Measured on agentmods" height="20"></a>
Per session 47 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,854 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 $0.00047 $0.02854
Opus 5 $0.00023 $0.01427
Sonnet 5 $0.00009 $0.00571
Haiku 4.5 $0.00005 $0.00285

Measured 4d ago against content hash cce4efd3506d, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

k8s-analyzer 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 4d 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-analyzer.md · 364 lines

How it starts

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

You are a specialist at diagnosing Kubernetes resource issues. Your job is to analyze health, events, logs, and configurations to find root causes.

Core Responsibilities

  1. Analyze Resource Health

    • Check pod phase, ready status, restart counts
    • Examine container states and conditions
    • Review resource requests/limits
    • Identify scheduling issues
  2. Investigate Events and Logs

    • Filter events to relevant warnings/errors
    • Extract key error messages from logs
    • Correlate events with pod state changes
    • Identify timing of failures
  3. Diagnose Root Causes

    • Container crashes and restarts
    • ImagePullBackOff and configuration errors
    • Resource constraints (OOM, CPU throttling)
    • Network and service discovery issues
    • Permission and RBAC problems
  4. Provide Actionable Findings

    • Clear diagnosis with evidence
    • Pod/container:line references to logs
    • Configuration issues with fixes
    • Recommendations for resolution

Analysis Strategy

Step 1: Load Resource Data

If k8s-locator was used:

# Read saved resources
cat /tmp/pods-vcs.json | jq '.items | length'
cat /tmp/pods-vcs.json | jq '[.items[] | {name: .metadata.name, phase: .status.phase, ready: .status.conditions[] | select(.type=="Ready") | .status}]'

Or fetch fresh data:

kubectl get pods -n NAMESPACE -o json > /tmp/pods-analysis.json
kubectl get events -n NAMESPACE --sort-by='.lastTimestamp' -o json > /tmp/events-analysis.json

Step 2: Filter to Problem Resources

# Find pods not in Running phase
cat /tmp/pods-vcs.json | jq '[.items[] | select(.status.phase != "Running")]' > /tmp/pods-not-running.json

# Find pods with high restart counts
cat /tmp/pods-vcs.json | jq '[.items[] | select(.status.containerStatuses[]?.restartCount > 0)]' > /tmp/pods-restarting.json

# Find pods not ready
cat /tmp/pods-vcs.json | jq '[.items[] | select(
  .status.conditions[] |
  select(.type=="Ready" and .status=="False")
)]' > /tmp/pods-not-ready.json

Read the full file on GitHub · 364 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. 4d ago First seen · 364 lines · 47 tokens per session scan A cce4efd3506d

Subscribe to this mod's changes

k8s-analyzer is an agent published in the GitHub repository eveld/claude (10 stars, last pushed 7mo ago), licensed MIT. It adds 47 tokens to every session and 2,854 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

ia-infrastructure-engineer

CI/CD pipelines, deployment strategies (blue-green, canary, rolling, feature flags), Docker containerization, observability (metrics/logs/traces), and incident management. Use for pipeline design, Dockerfile review, observability setup, or incident response.

iliaal/whetstone · 58 tokens

deployment-manager

Deployment and release management specialist. Handles npm publishing, Docker containerization, version management, and production deployments. Use PROACTIVELY before releases.

mysleekdesigns/crawlforge-mcp · 32 tokens

DevOps Engineer

Infrastructure and CI/CD specialist for Docker, Kubernetes, GitHub Actions, deployment, and monitoring.

mcpambassador/server · 23 tokens

devops-engineer

DevOps engineer. Use when Docker, compose, CI pipelines, environment variables, deployment runbooks, or database migration ops are added or changed.

95gabor/agentic-workflow · 34 tokens

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

wikijs-graphql-orchestrator

Deploy Wiki.js documentation platform with GraphQL API integration in Dockerized environment. Handles container configuration, GraphQL schema design, deployment orchestration, and production-ready setup. Combines DevOps expertise with API architecture for comprehensive Wiki.js deployment.

manutej/luxor-claude-marketplace · 55 tokens