k8s-preflight

k8s-preflight is a command for Claude Code from sigistry/marketplace. It costs 14 tokens per session (696 once invoked), scanned A, original, MIT.

A pre-deployment checker for Kubernetes configuration files. Kubernetes is a system that runs and manages containers; the checker reviews its YAML files before they are sent to a cluster.

In plain words
What is it for?
Use it before Kubernetes deployments or in continuous integration to inspect ports, resource settings, health checks, and related manifest fields.
Why use it?
It catches configuration problems that may be accepted by kubectl apply but still prevent an application from becoming ready. It reports each check as PASS, WARN, or FAIL.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: model in frontmatter.

Part of the ci-incident-medic plugin — 4 skills, 5 commands, 3 agents shipped together

Good fit Use it before Kubernetes deployments or in continuous integration to inspect ports, resource settings, health checks, and related manifest fields.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/sigistry/marketplace/k8s-preflight
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/sigistry/marketplace

Made for: Claude Code.

Or install ci-incident-medic, the plugin that ships this one along with the rest of its 4 skills, 5 commands, 3 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-preflight

README.md
[![agentmods](https://agentmods.dev/badge/commands/sigistry/marketplace/k8s-preflight/github.svg)](https://agentmods.dev/commands/sigistry/marketplace/k8s-preflight)
Your own site
<a href="https://agentmods.dev/commands/sigistry/marketplace/k8s-preflight"><img src="https://agentmods.dev/badge/commands/sigistry/marketplace/k8s-preflight/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-preflight

Your own site · 80×15
<a href="https://agentmods.dev/commands/sigistry/marketplace/k8s-preflight"><img src="https://agentmods.dev/badge/commands/sigistry/marketplace/k8s-preflight.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 14 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 696 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.00014 $0.00696
Opus 5 $0.00007 $0.00348
Sonnet 5 $0.00003 $0.00139
Haiku 4.5 $0.00001 $0.00070

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

Security

Grade A, and why

k8s-preflight 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 10d 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.

plugins/ci-incident-medic/commands/k8s-preflight.md · 43 lines

How it starts

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

Pre-flight Kubernetes manifests before they reach the cluster, catching the silent failures that pass kubectl apply but never become Ready. Use this before every deploy or in a CI gate. $ARGUMENTS is a manifest file or a directory to scan; default to the current directory's *.yaml/*.yml and any k8s/, manifests/, or deploy/ folder.

Process

Step 1: Collect the manifests

  • Read the file or glob the directory in $ARGUMENTS for *.yaml/*.yml.
  • Split multi-document files on ---. For each document, record kind, metadata.name, and metadata.namespace.
  • If Helm templates or values.yaml are present, note that values may inject the fields you are checking, flag unresolved {{ ... }} rather than treating them as literals.

Step 2: Validate against the checklist

Apply the k8s-manifest-validation skill. Run each check and assign a gate result:

Check FAIL when Skill reference
Type / quoting port is a quoted string, boolean quoted as "true", env value is an int manifest-checklist.md
Resource requests & limits missing on any container probes-and-resources.md
Liveness / readiness / startup probes readiness missing (WARN if only startup missing) probes-and-resources.md
securityContext runAsNonRoot unset, no dropped capabilities, writable root fs probes-and-resources.md
Image tag :latest or untagged manifest-checklist.md
Replicas / PodDisruptionBudget single replica for a stateless Deployment, no PDB manifest-checklist.md
Hardcoded secrets literal tokens/passwords in env or ConfigMap manifest-checklist.md
Namespace relies on implicit default manifest-checklist.md

Step 3: Report as a gate

Emit a gated checklist: one row per check per workload:

Check Resource (kind/name) Result Detail (file:line)

Use PASS / WARN / FAIL. Then, for every FAIL and WARN, provide the corrected YAML snippet. End with an overall verdict line: GATE: PASS only if there are zero FAILs, otherwise GATE: FAIL.

Read the full file on GitHub · 43 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. 10d ago First seen · 43 lines · 14 tokens per session scan A 3f5693efa09d

Subscribe to this mod's changes

k8s-preflight is a command published in the GitHub repository sigistry/marketplace (3 stars, last pushed today), licensed MIT. It adds 14 tokens to every session and 696 once invoked, about $0.0001 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.