k8s-deploy

k8s-deploy is a skill for Claude Code, Codex from yindia/rootcause. It costs 0 tokens per session (2,865 once invoked), scanned A, original, MIT.

A safe workflow guide for changing Kubernetes deployments, including application images, rollouts, Helm releases, and replica counts. Helm is a tool for packaging and installing Kubernetes applications.

In plain words
What is it for?
Updating images, restarting or scaling deployments, installing or upgrading Helm releases, checking rollout status, reviewing warnings, and identifying rollback signals.
Why use it?
It adds a preflight, deployment, and verification sequence so changes are checked before writing and their rollout health is reviewed afterward.

Skill for Claude CodeCodex

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 skills/yindia/rootcause/k8s-deploy
Any agent
npx skills add yindia/rootcause --skill k8s-deploy
Clone the repo
git clone --depth 1 https://github.com/yindia/rootcause

Made for: Claude Code, Codex.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/yindia/rootcause/k8s-deploy.svg)](https://agentmods.dev/skills/yindia/rootcause/k8s-deploy)
Your own site
<a href="https://agentmods.dev/skills/yindia/rootcause/k8s-deploy"><img src="https://agentmods.dev/badge/skills/yindia/rootcause/k8s-deploy.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,865 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.00000 $0.02865
Opus 5 $0.00000 $0.01432
Sonnet 5 $0.00000 $0.00573
Haiku 4.5 $0.00000 $0.00286

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

Security

Grade A, and why

k8s-deploy 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.

skills/claude/k8s-deploy/SKILL.md · 444 lines

How it starts

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

Skill: k8s-deploy

Safe Kubernetes deployment workflows using RootCause MCP tools only.

This skill enforces one deployment principle: preflight first, then deploy, then verify evidence.

Never run write operations without safety checks.

Scope

Use this skill for:

  • rollout-based deployment changes on Deployments
  • image updates and rollout restarts
  • Helm release installation and upgrades
  • replica scaling as part of release cutover
  • post-deploy health verification and rollback signals

Do not use this skill for:

  • deep incident forensics (use k8s-incident)
  • cluster capacity planning (use k8s-diagnostics)
  • generalized CRUD exploration (use k8s-core)

Canonical Pattern

Safe deployment pattern:

  1. Preflight
  2. Deploy
  3. Verify
  4. Decide continue or roll back

The default path is RollingUpdate for Deployments. For trade-off guidance, read references/STRATEGIES.md.

Required Tool Order

Before every write path:

  1. k8s.safe_mutation_preflight
  2. Deploy tool (k8s.apply or helm.install or helm.upgrade or k8s.rollout or k8s.scale)
  3. k8s.rollout with action: "status"
  4. k8s.events_timeline for warnings
  5. k8s.resource_usage for saturation signals

Triggers

Activate when user asks for:

  • deploy
  • release
  • rollout
  • restart deployment
  • helm install
  • helm upgrade
  • scale replicas
  • canary preparation
  • blue-green handoff planning

Safety Contract

  • Every write call must set confirm: true
  • Preflight must be run before every write call
  • Restarts must run k8s.restart_safety_check first
  • If preflight fails, stop and report blockers
  • If rollout status is not healthy, do not chain more writes

Tool Map

Stage RootCause Tool Why
Preflight k8s.safe_mutation_preflight catch policy, quota, disruption, and ownership blockers
Restart risk gate k8s.restart_safety_check avoid unsafe rolling restarts
Quality gate k8s.best_practice identify resilience gaps before release
Raw manifest deploy k8s.apply server-side apply with ownership tracking
Rollout monitor k8s.rollout verify progression to healthy state
Scale control k8s.scale controlled replica changes
Release diff helm.diff_release preview changes before Helm mutation
Helm install helm.install first release creation
Helm upgrade helm.upgrade release update path
Helm status helm.status release health and notes
Timeline verification k8s.events_timeline warning sequence after deploy
Runtime pressure k8s.resource_usage CPU/memory stress after rollout

Read the full file on GitHub · 444 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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 · 444 lines · 0 tokens per session scan A 7501c8378f08

Subscribe to this mod's changes

k8s-deploy is a skill published in the GitHub repository yindia/rootcause (42 stars, last pushed 3mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 2,865 tokens. 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-30.