Code & Engineering

Kubernetes Manifest Review

Reviews ONE Kubernetes Pod or Deployment manifest for the five settings that most often make a workload unsafe or unpredictable, and lists only those, one line each with a fixed code, the container or volume, why it hurts and the fix - or exactly No findings. It catches a container that is privileged or may run as root, an image with no tag or the latest tag, a container with no memory limit, a secret value written as a literal in env, and a hostPath volume. It leaves out the safe look-alikes, such as a pod that sets runAsNonRoot, an image pinned by digest, a read-only configMap volume and a secret read through secretKeyRef. Use to review a manifest before it is applied, to audit a repository of deployments, or to check a Pod that keeps being killed.

Kubernetes Manifest Review is a tested SKILL.md that reviews ONE Kubernetes Pod or Deployment manifest for the five settings that most often make a workload unsafe or unpredictable, and lists only those, one line each with a fixed code, the container or volume, why it hurts and the fix - or exactly No findings; an agent buys it once for $0.01 over x402.

Tested 2026-10-26No code, no hidden instructionsv1.0.0 · 6.4 KB · perpetual license

Not for

Cluster-wide policy, network rules, RBAC, Helm templates, Kustomize overlays and anything that lives outside the pasted file, such as a LimitRange or an admission controller. It reads one Pod or Deployment and judges only what is written in it.

Tested, honestly

Tested 2026-10-26 with a strong and a weak model.

SonnetStrong model, claude-sonnet-5-5
Right on all 3 cases, read by hand. On the shop Deployment it found the image with no tag and the password typed into env, and left out the digest-pinned sidecar, the harmless log level and the pod-level runAsNonRoot. On the node-agent Pod it gave the privileged container, the missing memory limit and the Docker socket mount, and left out the token read through secretKeyRef. On the clean billing Deployment it answered exactly No findings.
HaikuWeak model, claude-haiku-5-5
Right on all 3 cases, read by hand. It matched the strong model on both planted manifests with sound fixes and kept the digest-pinned sidecar, the log level, the secretKeyRef token and the read-only configMap volume out of its list. On the clean manifest it answered exactly No findings.

Full test summary

Example

Our own test text, before and after the skill ran. Excerpts only.

English · claude-sonnet-5-5

Before

apiVersion: apps/v1 kind: Deployment metadata: name: shop-web spec: replicas: 2 selector: matchLabels: app: shop-web template: metadata: labels: app: shop-web spec: securityContext: runAsNonRoot: true containers: - name: web image: registry.example.com/shop/web ports: - containerPort: 8080…

After

MUTABLE-IMAGE — container web, image `registry.example.com/shop/web` — no tag or digest, so Kubernetes assumes `latest` and the running version is unclear — pin a version tag or a digest INLINE-SECRET — container web, env `DB_PASSWORD` with `value: "s3cr3t-Pa55word"` — the password sits in plain text in the manifest and its history — move it to a Secret and read it with `valueFrom.secretKeyRef`

What is in the file

  • What the Kubernetes documentation says, as published on 26 October 2026
  • The answer
  • The codes
  • Rules
  • Work in this order
  • Short example

Languages

English. Tried in: English.

License

Perpetual, non-exclusive; use and modify for yourself incl. paid work; no resale or republishing. Holder: Georgi Kalchev, aiskills402.com. Full terms.

Versions

Current version 1.0.0, updated 2026-10-26. Whoever bought an earlier version gets new ones free through the same re-download token.

  1. v1.0.0 · 2026-10-26

    First release, written in the light-test batch of 26 October 2026 (three cases, price $0.01). The idea is ours; no foreign skill was opened, facts come from public documentation (see notes/ideas.md). Output: see the skill description.

    Test: three cases written by hand (two planted, each with a safe look-alike, one clean control), one run on Claude Sonnet and one on Claude Haiku, no run without the skill, no iteration on the skill rules after the runs. `test/control.mjs` shows that the checks pass on the ideal answers and fail on realistic wrong ones. See `test-summary.json` for the verdicts read by hand.

    One wording change after the runs: the reason on the first line of the short example (and one FAQ answer) was reworded so that no sentence of SKILL.md repeats in the public example or listing; rules and codes are unchanged, no re-run.

FAQ

Pod-level runAsNonRoot with nothing on the container: flagged or not?

Not flagged. The skill follows the Kubernetes Pod Security Standards, where the pod-level field covers the containers. A manifest that sets neither runAsNonRoot nor a non-zero user is listed, because the image's own user is not visible in the file.

Is an env value read from a Secret reported?

No. Reading the value through a secretKeyRef is the accepted form and earns no line. Only a credential-looking name paired with a typed-in literal is reported; a plain literal such as a log level or a port number is left alone.

Which manifests went into the test?

Three manifests of our own making. First, a Deployment with two containers: an untagged image and a typed-in database password next to a sidecar pinned by digest. Second, a Pod with a privileged container, the Docker socket mounted from the node and no limits. Third, a clean Deployment. Claude Sonnet and Claude Haiku each read every file once.

What does a clean manifest return?

Just the sentence No findings., with nothing around it. Each problem otherwise becomes a single line: the code, the container or volume, the harm and the repair. The skill never lists what it examined and found acceptable.

Share

Read this page as Markdown: /skills/kubernetes-manifest-review.md.

More in Code & Engineering

  • CORS Config Review

    Code & Engineering

    SKILL.md · v1.0.0 · 6.2 KB

    Reviews CORS code or server configuration (an Express or Flask handler, an nginx block, a framework setting) for the five mistakes that let a hostile web page read private responses, and lists only those, one line each with a fixed code, the place, why it is dangerous and the fix - or exactly No findings. It catches a request Origin copied into the allow header while cookies are allowed, a wildcard origin together with credentials, the null origin allowed, an origin check by suffix, substring or an unanchored pattern, and a per-origin allow header sent without Vary Origin. It leaves out the safe look-alikes, such as an exact allow-list with credentials and a public read-only API that answers with a wildcard and no credentials. Use to review CORS code before release, to audit a gateway config, or to debug a browser CORS error that looks like a server mistake.

    $0.01once

    • x402
    • USDC
    • Base
    Get skill

    Tested with Sonnet and Haiku, 19 Oct 2026

  • IAM Policy Review

    Code & Engineering

    SKILL.md · v1.0.0 · 6.2 KB

    Reviews ONE AWS IAM policy (an identity policy, or a bucket policy) written as JSON for the five grants that hand out far more than a job needs, and lists only those, one line each with a fixed code, the statement, why it is dangerous and the fix - or exactly No findings. It catches every action on every resource or a whole service on every resource, iam:PassRole on any role, Allow combined with NotAction, a public principal with no condition, and actions that let a holder raise their own rights such as creating a policy version or attaching a policy. It leaves out the safe look-alikes, such as a public principal narrowed to an organization, read-only access to one bucket, and a Deny with NotAction. Use to review a policy before attaching it, to audit a role, or to check a bucket policy for public access.

    $0.01once

    • x402
    • USDC
    • Base
    Get skill

    Tested with Sonnet and Haiku, 19 Oct 2026

  • Dockerfile Review

    Code & Engineering

    SKILL.md · v1.0.0 · 6.1 KB

    Reviews ONE Dockerfile for the five build mistakes that cost security or build time, and lists only those, one line each with a fixed code, the instruction, why it hurts and the fix - or exactly No findings. It catches a final image that runs as root, a base image with no tag or the latest tag, a secret passed through an argument, an environment value or a file copy so that it stays in the image history, source copied in before the dependencies are installed so the cache is lost on every edit, and the package index left in the layer after apt-get. It leaves out the safe look-alikes, such as a build secret mounted for one instruction, a tag pinned by digest, and root in a build stage that never ships. Use to review a Dockerfile before merging, to audit the images of a repository, or to speed up a slow image build.

    $0.01once

    • x402
    • USDC
    • Base
    Get skill

    Tested with Sonnet and Haiku, 19 Oct 2026

  • CodeTour File Builder

    Code & Engineering

    SKILL.md · v1.0.0 · 5.2 KB

    Turns a code tour described in words, plus the list of files with their line counts, into one valid CodeTour file (JSON with a title and steps, each step holding a file, a line and a description) and nothing else. It keeps file paths relative and exactly as listed, checks every line number against the length of its file, and leaves out a step whose file is not in the list or whose line lies past the end, naming each skipped step in the description of the tour in one fixed form. A tour with only valid steps carries no mention of skipping. Use to turn a walkthrough of a code base into a tour file for the CodeTour editor extension, to draft onboarding tours, or to rebuild a tour after files were renamed.

    $0.01once

    • x402
    • USDC
    • Base
    Get skill

    Tested with Sonnet and Haiku, 19 Oct 2026