k8s-policy

k8s-policy is a skill for Claude Code, Codex from paruff/uFawkesAI. It costs 27 tokens per session (550 once invoked), scanned A, original, MIT.

A Kubernetes manifest checker that reviews resource limits, security settings, network policies, secrets, labels, and ownership metadata.

In plain words
What is it for?
It checks CPU and memory requests, container hardening, namespace network isolation, secret references, required labels, and owner annotations.
Why use it?
It catches deployment configurations that are unsafe, incomplete, or inconsistent with operational rules.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Claude Code; installed under .agents/ (shared by several agents); mentions Codex.

Good fit It checks CPU and memory requests, container hardening, namespace network isolation, secret references, required labels, and owner annotations.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/paruff/ufawkesai/k8s-policy
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.

Any agent
npx skills add paruff/uFawkesAI --skill k8s-policy
Clone the repo
git clone --depth 1 https://github.com/paruff/uFawkesAI

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/paruff/ufawkesai/k8s-policy"><img src="https://agentmods.dev/badge/skills/paruff/ufawkesai/k8s-policy.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 27 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 550 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.00027 $0.00550
Opus 5 $0.00014 $0.00275
Sonnet 5 $0.00005 $0.00110
Haiku 4.5 $0.00003 $0.00055

Measured 8d ago against content hash 582adb0db6de, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

k8s-policy 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 8d 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.

.agents/skills/review/k8s-policy/SKILL.md · 101 lines

What it actually says

Skill: Kubernetes Policy Validation

Load trigger: "load k8s-policy skill" > DORA: Cap 1 (AI Policy) Token cost: Low

Purpose

Validate Kubernetes manifests for compliance.

Responsibilities

  • Validate resource limits
  • Validate securityContext
  • Validate network policies
  • Validate secret usage

Inputs

  • Kubernetes manifests

Outputs

  • k8s-policy.json

Validation Rules

Resource Limits

  • CPU requests and limits defined for all containers
  • Memory requests and limits defined for all containers
  • Limits >= requests
  • No containers without resource definitions

SecurityContext

  • runAsNonRoot: true
  • readOnlyRootFilesystem: true (where possible)
  • allowPrivilegeEscalation: false
  • Capabilities dropped (drop: ["ALL"])
  • No privileged: true

Network Policies

  • NetworkPolicy exists for each namespace
  • Default ingress denied
  • Cross-namespace traffic explicitly allowed

Secret Usage

  • Secrets referenced via secretKeyRef
  • No plaintext secrets in manifests
  • No secrets in annotations or labels

Labels and Annotations

  • Required labels present (app, version, team, env)
  • Owner annotations present
  • Documentation annotations present

Tools

  • OPA/Gatekeeper for policy validation
  • Kyverno for manifest validation
  • kube-score for best practices
  • polaris for configuration auditing

Output Format

{
  "skill": "k8s-policy",
  "status": "pass | fail",
  "resources_checked": 5,
  "violations": [
    {
      "severity": "high",
      "resource": "deployment/my-app",
      "rule": "security-context",
      "issue": "allowPrivilegeEscalation not set to false",
      "fix": "Add securityContext.allowPrivilegeEscalation: false"
    }
  ]
}

Success Criteria

  • No Kubernetes policy violations
  • Resource limits defined for all containers
  • Security best practices applied
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. 8d ago First seen · 101 lines · 27 tokens per session scan A 582adb0db6de

Subscribe to this mod's changes

k8s-policy is a skill published in the GitHub repository paruff/uFawkesAI (2 stars, last pushed 19d ago), licensed MIT. It adds 27 tokens to every session and 550 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-09-03.

Related

Other skills, from other repositories

infrastructure-docker

Container build and compose assets for the research template. Use when reproducing CI or cloud environments with Docker, following docs/CLOUDDEPLOY.md, or wiring Ollama sidecars via docker-compose.

docxology/template · 44 tokens

dokploy-deploy

This skill should be used when user asks to "deploy with Dokploy", "use Dokploy Cloud", "manage self-hosted Dokploy", "deploy Docker Compose on Dokploy", "manage Dokploy databases", "configure Dokploy domains", or "look up Dokploy CLI commands".

fcakyon/claude-codex-settings · 63 tokens

planning-with-files

Persistent file-based planning for multi-step AI-agent work. Keeps taskplan.md, findings.md, and progress.md on disk; lifecycle hooks inject selected project planning context. Automatic recovery reads project planning files only. Explicit session-catchup.py --metadata reads same-project local agent session records and…

mxyhi/ok-skills · 117 tokens

devops-infrastructure

Guides Docker, CI/CD pipelines, deployment strategies, infrastructure as code, and observability setup. Use when writing Dockerfiles, configuring GitHub Actions, planning deployments, setting up monitoring, or when asked about containers, pipelines, Terraform, or production infrastructure.

CloudAI-X/claude-workflow-v2 · 57 tokens

qdrant-deployment-options

Guides Qdrant deployment selection. Use when someone asks 'how to deploy Qdrant', 'Docker vs Cloud', 'local mode', 'embedded Qdrant', 'Qdrant EDGE', 'which deployment option', 'self-hosted vs cloud', or 'need lowest latency deployment'. Also use when choosing between deployment types for a new project.

qdrant/skills · 79 tokens

module-scaffold

Given a component name, generate a complete standalone ODH module operator repository. Produces Go module, CRD types implementing PlatformObject, controller skeleton with reconciler builder pattern, Helm chart, Makefile, CI config, singleton webhook, and AGENTS.md. Use when starting a new module from scratch.

opendatahub-io/ai-helpers · 65 tokens