k8s-ops

k8s-ops is an agent for GitHub Copilot from VersusControl/devops-ai-guidelines. It costs 13 tokens per session (256 once invoked), scanned A, original, MIT.

An operating mode for managing Kubernetes, a system that runs and scales containerised applications. It uses an MCP server, a tool connection that lets the agent inspect or operate a Kubernetes cluster.

In plain words
What is it for?
Use it to list pods, inspect Kubernetes resources, read pod logs, and—after confirmation—restart pods, delete pods, or scale a deployment.
Why use it?
It keeps normal actions read-only and requires explicit confirmation before destructive changes such as restarting or deleting a pod. After a change, it checks the cluster to verify the result.

Agent for GitHub Copilot

Written for GitHub Copilot: a Copilot chat mode or prompt. Also seen: model in frontmatter.

Good fit Use it to list pods, inspect Kubernetes resources, read pod logs, and—after confirmation—restart pods, delete pods, or scale a deployment.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/versuscontrol/devops-ai-guidelines/k8s-ops
About the project

DevOps AI Guidelines is a learning and guidance repository for using artificial intelligence in DevOps, including paths toward AI infrastructure architecture and enterprise adoption. It is for DevOps engineers, teams introducing AI, and technical leaders planning AI-enabled operations. The catalogue instruction provides an agent-facing part of these guidelines.

VersusControl/devops-ai-guidelines · 1,550 stars · on GitHub · versusincident.com

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/VersusControl/devops-ai-guidelines

Made for: GitHub Copilot.

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

README.md
[![agentmods](https://agentmods.dev/badge/agents/versuscontrol/devops-ai-guidelines/k8s-ops/github.svg)](https://agentmods.dev/agents/versuscontrol/devops-ai-guidelines/k8s-ops)
Your own site
<a href="https://agentmods.dev/agents/versuscontrol/devops-ai-guidelines/k8s-ops"><img src="https://agentmods.dev/badge/agents/versuscontrol/devops-ai-guidelines/k8s-ops/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 k8s-ops

Your own site · 80×15
<a href="https://agentmods.dev/agents/versuscontrol/devops-ai-guidelines/k8s-ops"><img src="https://agentmods.dev/badge/agents/versuscontrol/devops-ai-guidelines/k8s-ops.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 13 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 256 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 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.00013 $0.00256
Opus 5.5 $0.00005 $0.00102
Sonnet 5.5 $0.00003 $0.00051
Haiku 4.5 $0.00001 $0.00026

Measured 29d ago against content hash dd2aec9327b2, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

k8s-ops 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 29d 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.

02-mcp-for-devops/code/05/.github/chatmodes/k8s-ops.chatmode.md · 24 lines

What it actually says

K8s Ops mode

You are an experienced SRE operating a Kubernetes cluster through the k8s-mcp-server MCP server. In this mode you:

  • Default to read-only tools (list_pods, describe_resource, get_pod_logs).
  • Treat restart_pod, delete_pod, and scale_deployment as destructive. Never call them without an explicit "confirm" reply in the immediately preceding user turn.
  • Begin every response with a one-line Action plan listing the tools you intend to call (or "no tools — answering from prior results").
  • End every response that mutated state with a Verification section that calls list_pods or describe_resource to prove the change took effect.
  • Prefer concise tables. Limit log excerpts to the last 50 lines unless the user asks for more.
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. 29d ago First seen · 24 lines · 13 tokens per session scan A dd2aec9327b2

Subscribe to this mod's changes

k8s-ops is an agent published in the GitHub repository VersusControl/devops-ai-guidelines (1,550 stars, last pushed 22d ago), licensed MIT. It adds 13 tokens to every session and 256 once invoked, about $0.0001 per session on Opus 5.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-17.

Related

Other agents, from other repositories

.NET Self-Learning Architect

Senior .NET architect for complex delivery: designs .NET 6+ systems, decides between parallel subagents and orchestrated team execution, documents lessons learned, and captures durable project memory for future work.

github/awesome-copilot · 46 tokens

Platform SRE for Kubernetes

SRE-focused Kubernetes specialist prioritizing reliability, safe rollouts/rollbacks, security defaults, and operational verification for production-grade deployments.

github/awesome-copilot · 32 tokens

Kubernetes Workload Optimizer

Tunes container resource requests/limits AND node-level autoscaling (Karpenter, Cluster Autoscaler) for the right balance of cost, scheduling latency, and pod stability. Covers VPA-driven rightsizing and consolidation policy in one discipline.

Cletrics/finops-agents · 54 tokens

Kubernetes FinOps Engineer

Specialist in Kubernetes cost allocation, namespace and label-based chargeback, and cluster-level optimization. Comfortable with OpenCost, Kubecost, Karpenter, cluster autoscaler, and vertical pod autoscaler.

Cletrics/finops-agents · 48 tokens

azure-iac-exporter

Export existing Azure resources to Infrastructure as Code templates via Azure Resource Graph analysis, Azure Resource Manager API calls, and azure-iac-generator integration. Use this skill when the user asks to export, convert, migrate, or extract existing Azure resources to IaC templates (Bicep, ARM Templates…

github/awesome-copilot · 70 tokens

Senior Cloud Architect

Expert in modern architecture design patterns, NFR requirements, and creating comprehensive architectural diagrams and documentation.

github/awesome-copilot · 22 tokens