Implement Kubernetes security policies including NetworkPolicy, PodSecurityPolicy, and RBAC for production-grade security. Use when securing Kubernetes clusters, implementing network isolation, or enforcing pod security standards.
Install with Tessl CLI
npx tessl i github:wshobson/agents --skill k8s-security-policies81
Does it follow best practices?
If you maintain this skill, you can automatically optimize it using the tessl CLI to improve its score:
npx tessl skill review --optimize ./path/to/skillValidation for skill structure
NetworkPolicy defense-in-depth
Default-deny-all policy
100%
100%
DNS allowance
100%
100%
Tier labels in ingress selectors
0%
100%
Tier labels in target selectors
0%
100%
Metadata service blocked
0%
100%
Combined cross-namespace selector
100%
100%
No unrestricted allow-all
0%
100%
Port specificity
50%
100%
Without context: $0.3333 · 1m 44s · 9 turns · 73 in / 6,228 out tokens
With context: $0.4776 · 2m 17s · 19 turns · 219 in / 6,809 out tokens
RBAC least-privilege configuration
Role not ClusterRole
100%
100%
No wildcard verbs
100%
100%
No wildcard resources
100%
100%
resourceNames restriction
0%
0%
Dedicated ServiceAccount
100%
100%
Token auto-mount disabled
100%
100%
RoleBinding to ServiceAccount
100%
100%
Minimal verbs
100%
100%
Without context: $0.2320 · 1m 7s · 8 turns · 65 in / 4,013 out tokens
With context: $0.3553 · 1m 22s · 13 turns · 3,855 in / 4,348 out tokens
Pod security hardening
PSS enforce label
100%
100%
PSS audit label
100%
100%
PSS warn label
100%
100%
runAsNonRoot set
100%
100%
runAsUser set
100%
100%
fsGroup set
100%
100%
seccompProfile set
100%
100%
No privilege escalation
100%
100%
Read-only filesystem
100%
100%
All capabilities dropped
100%
100%
Without context: $0.1891 · 50s · 8 turns · 65 in / 2,720 out tokens
With context: $0.3535 · 1m 12s · 18 turns · 147 in / 3,240 out tokens
Table of Contents
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.