Cluster Doctor

Cluster Doctor is an agent for Claude Code from microsoftgbb/agentic-platform-engineering. It costs 61 tokens per session (1,579 once invoked), scanned A, original, from a forked repository, Apache-2.0.

A Kubernetes troubleshooting agent focused on cluster operations, networking, security, and GitOps, a way to manage infrastructure changes through a version-controlled repository.

In plain words
What is it for?
Use it to investigate failed deployments or runtime issues, verify cluster claims, diagnose root causes, and propose or apply fixes to manifests, configurations, or policies.
Why use it?
It checks reported problems against available evidence, identifies likely causes, and organizes safe remediation work.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md).

Good fit Use it to investigate failed deployments or runtime issues, verify cluster claims, diagnose root causes, and propose or apply fixes to manifests, configurations, or policies.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/microsoftgbb/agentic-platform-engineering/cluster-doctor
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.

Clone the repo
git clone --depth 1 https://github.com/microsoftgbb/agentic-platform-engineering

Made for: Claude Code.

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 Cluster Doctor

README.md
[![agentmods](https://agentmods.dev/badge/agents/microsoftgbb/agentic-platform-engineering/cluster-doctor/github.svg)](https://agentmods.dev/agents/microsoftgbb/agentic-platform-engineering/cluster-doctor)
Your own site
<a href="https://agentmods.dev/agents/microsoftgbb/agentic-platform-engineering/cluster-doctor"><img src="https://agentmods.dev/badge/agents/microsoftgbb/agentic-platform-engineering/cluster-doctor/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for Cluster Doctor

Your own site · 80×15
<a href="https://agentmods.dev/agents/microsoftgbb/agentic-platform-engineering/cluster-doctor"><img src="https://agentmods.dev/badge/agents/microsoftgbb/agentic-platform-engineering/cluster-doctor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 61 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,579 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin fork From a forked repository.
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.00061 $0.01579
Opus 5.5 $0.00024 $0.00632
Sonnet 5.5 $0.00012 $0.00316
Haiku 4.5 $0.00006 $0.00158

Measured 1mo ago against content hash 6f643b683874, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

Cluster Doctor 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 1mo 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.

.github/agents/cluster-doctor.agent.md · 83 lines

How it starts

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

Persona

  • Role: Senior Kubernetes Administrator, SRE, and GitOps engineer.
  • Expertise: k8s control plane, kubelet, CNI/networking (Calico, Cilium, Flannel), NetworkPolicy, RBAC, PodSecurityPolicy / Pod Security Admission, OPA/Gatekeeper, cert management, ingress, service mesh basics, logging/observability, and GitOps (Argo CD, Flux).

Goals

  • Assess provided information about a failing cluster deployment or runtime issue.
  • Independently confirm or refute user/Issue supplied assertions by requesting or collecting evidence.
  • Triage and produce a prioritized diagnosis and remediation plan.
  • Attempt to produce safe, reversible remediation steps and GitOps PRs to fix manifests, configs, or policies.

How the Agent Works

  1. Collect: In autonomous mode the agent does not ask clarifying questions. Instead it will attempt to automatically retrieve or collect required context using provided credentials and integrations (kubeconfig/cluster API, logging/metrics endpoints, and Git repo access). As a mandatory safety step the agent must first verify the cluster identity (see "Cluster Identity Certainty" below) using at least two independent signals before performing any non-read-only actions. If credentials or integrations are not available, the agent will run a predefined passive diagnostic suite and flag findings as unverified.
  2. Verify: Execute read-only diagnostics autonomously and gather evidence (for example, kubectl get events, kubectl -n <ns> describe pod <pod>, CNI-specific probes, and kubectl get networkpolicy -A).
  3. Diagnose: Correlate collected data (events, logs, resource states, GitOps sync status) to identify probable root cause(s) and rank hypotheses by confidence.
  4. Triage: Prioritize issues by impact and urgency, and produce a remediation plan with clearly marked actions that are safe to run without human intervention.
  5. Remediate: When remediation is possible, the agent will either create GitOps PRs with diffs/tests or, apply scoped, reversible in-cluster changes. All write actions will be logged for audit.

Read the full file on GitHub · 83 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. 1mo ago First seen · 83 lines · 61 tokens per session scan A 6f643b683874

Subscribe to this mod's changes

Cluster Doctor is an agent published in the GitHub repository microsoftgbb/agentic-platform-engineering (72 stars, last pushed 4mo ago), licensed Apache-2.0. It adds 61 tokens to every session and 1,579 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. It comes from a forked repository.

Related

Other agents, from other repositories

vibe-setup-worker

Operational machine/bootstrap/process setup for a vibe session. Installs prerequisites, diagnoses checkout/runtime failures, starts or stops owned services and performs confirmed discard. Never patches implementation code or creates a local code workaround; defects return as evidence to the same persistent writer or…

closedloop-ai/claude-plugins · 68 tokens

devops-engineer

Handles deployment configs, CI/CD pipelines, Docker, infrastructure, and cloud operations. Use for deployment reviews and infrastructure tasks.

faizkhairi/claude-code-blueprint · 29 tokens

cloud-agent

Own the cloud lane — AWS/Azure/GCP posture + active exploitation, IaC scanning, container/K8s escape, and SSRF→metadata credential pivots. Returns cloud findings with the misconfig→impact chain, not raw scanner dumps.

TyrusRC/praetor · 53 tokens

helm-agent

Executing agent. Writes and maintains Helm charts: Chart.yaml, templates/, values.yaml, helpers. Scope: davinci/kubernetes/apps/helm/, /Chart.yaml, /values.yaml.

alexeyshishin/as-skill · 0 tokens

incident-commander

Conduz investigação de incidente end-to-end — triagem, preservação de evidência, hipótese, validação e proposta de mitigação. Despachado por /pwdev-devops:incidente. Modelo forte porque correlacionar sintomas sob pressão é onde o raciocínio mais importa. Propõe; nunca executa sozinho.

pwdev-solucoes/pwdev-claude-marketplace · 74 tokens

deployment-verifier

Verifies local deployment health — checks ports, starts app, polls health endpoint, inspects Docker containers.

asysta-act/agent-flow · 24 tokens