Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

k8s-security-policies

Skill by sickn33

Guides an AI assistant through Kubernetes security policies, including NetworkPolicy, RBAC, and Pod Security Admission and Standards. It is for engineers hardening clusters with defense-in-depth controls. Example manifests are included, but the source says policies should be staged and tested before enforcement.

  • Score 93
  • 51k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install k8s-security-policies

Built from the published package, never by AI.

git clone --depth 1 https://github.com/sickn33/agentic-awesome-skills /tmp/agentic-awesome-skills && mkdir -p ~/.claude/skills && cp -r /tmp/agentic-awesome-skills/skills/k8s-security-policies ~/.claude/skills/k8s-security-policies

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install k8s-security-policies in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

k8s-security-policies is a skill that guides an AI assistant through Kubernetes security controls. It covers NetworkPolicy, RBAC, and Pod Security Admission and Standards, and notes that PodSecurityPolicy was removed in Kubernetes 1.25. The guide includes example YAML for namespace Pod Security labels, default-deny and allow network policies, roles and bindings, a restricted pod security context, OPA Gatekeeper constraints, and Istio mTLS and authorization policies.

The skill states that NetworkPolicy requires an enforcing CNI and that policies should be staged and tested before enforcing to avoid outages. It also lists troubleshooting commands that use kubectl. One referenced template, assets/pod-security-template.yaml, is not included in this catalog copy and must come from the original source. It is aimed at engineers securing Kubernetes clusters, including multi-tenant setups.

Written from the project's SKILL.md and checked against it.

What it can do

  • Pod Security StandardsNamespace labels for privileged, baseline and restricted enforce, audit and warn modes.
  • Network segmentationDefault-deny-all, frontend-to-backend and DNS allow NetworkPolicy examples.
  • RBAC configurationRole, ClusterRole and RoleBinding examples for least-privilege access.
  • Restricted pod contextPod and container securityContext example with non-root, seccomp and dropped capabilities.
  • OPA Gatekeeper policiesConstraintTemplate and Constraint example that requires specific labels on Deployments.
  • Istio securityPeerAuthentication STRICT mTLS and an AuthorizationPolicy example.

What you need

  • A Kubernetes cluster
  • A CNI plugin that enforces NetworkPolicy
  • kubectl for the troubleshooting commands
  • Istio for the service mesh examples

Try asking

  • Write a default-deny NetworkPolicy for my production namespace.
  • Create a Role that lets a user read pods in the staging namespace.
  • Label my namespace to enforce the restricted Pod Security Standard.

Good to know

  • The template assets/pod-security-template.yaml is not bundled in this catalog copy.
  • NetworkPolicy only takes effect with a CNI that enforces it.
  • Standard NetworkPolicy is L3/L4 and does not enforce FQDN or HTTP rules.
  • Pod Security privileged mode removes restrictions, so use audit and warn first.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: skills/k8s-security-policies/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md9 KB
  • assets/network-policy-template.yaml3 KB
  • references/rbac-patterns.md5 KB

Alternatives to k8s-security-policies

All alternatives →

Compare with function_health, windows-privilege-escalation or github-actions-advanced

k8s-security-policies: common questions

Does this skill cover PodSecurityPolicy?

The skill notes that PodSecurityPolicy was removed in Kubernetes 1.25. It covers Pod Security Admission and Standards instead.

Will NetworkPolicy rules work on any cluster?

No. The source says NetworkPolicy requires an enforcing CNI, and listing nodes or policies does not prove enforcement.

Are all referenced files included?

No. The catalog copy does not include assets/pod-security-template.yaml, and the source says it has no verified download source for it.

How do I install k8s-security-policies?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is k8s-security-policies free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is k8s-security-policies safe to use?

It scores 93 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to k8s-security-policies?

Similar skills: function_health, windows-privilege-escalation, github-actions-advanced, propose-security-hardening.

k8s-security-policies Install

Add to stack

Loading.