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.
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-policiesRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/sickn33/agentic-awesome-skills /tmp/agentic-awesome-skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/agentic-awesome-skills/skills/k8s-security-policies ~/.gemini/antigravity-cli/skills/k8s-security-policiesAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install k8s-security-policies in Antigravity CLI
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
ANo 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 →Retrieves lab biomarker results and clinician notes from Function Health through its FHIR API. It is for people who want an AI assistant to review their own lab history and notes.
Gives an AI assistant a methodology for finding and exploiting privilege escalation weaknesses on Windows systems during authorized penetration tests. It is for security testers and defenders validating escalation paths.
Guides the assistant through designing, debugging and hardening GitHub Actions CI/CD workflows. It is aimed at teams that run production pipelines on GitHub.
Develops evidence-backed structural security hardening proposals from disclosures, findings, source code, or Codex Security scans. It is for teams that need systemic fixes and architectural tradeoffs.
Claude Security scans code for security issues with Claude Code. It covers whole repositories, branch or pull request diffs, single commits, and existing findings from SARIF files or earlier reports.
Turns vulnerability notes, disclosure reports, PoCs, source code, or Codex Security findings into self-contained vulnerability reports. Built for security researchers who need claims the evidence supports.
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.
