rohitg00/kubectl-mcp-server/k8s-policy
Claude Code and agent skill by rohitg00/kubectl-mcp-server
- community
Checking that the SKILL.md file is still in the repository.
Kubernetes policy management with Kyverno and Gatekeeper. Use when enforcing security policies, validating resources, or auditing policy compliance.
Install
npx vskill@latest install rohitg00/kubectl-mcp-server/k8s-policySKILL.md
Kubernetes Policy Management
Manage policies using kubectl-mcp-server's Kyverno and Gatekeeper tools.
Requires thepolicytoolset: start kubectl-mcp-server with--toolsets default,policy(orMCP_TOOLSETS=default,policy). For deep work, the project-maintained MCP servers may fit better: Kyverno: https://github.com/nirmata/kyverno-mcp.
When to Apply
Use this skill when:
- User mentions: "Kyverno", "Gatekeeper", "OPA", "policy", "compliance"
- Operations: enforcing policies, checking violations, policy audit
- Keywords: "require labels", "block privileged", "validate", "enforce"
Priority Rules
| Priority | Rule | Impact | Tools | |
|---|---|---|---|---|
| 1 | Detect policy engine first | CRITICAL | detect_ecosystem, detect_ecosystem | |
| 2 | Use Audit mode before Enforce | HIGH | validationFailureAction | |
| 3 | Check policy reports for violations | HIGH | get_policy_violations | |
| 4 | Review constraint templates | MEDIUM | get_policy_list |
Quick Reference
| Task | Tool | Example | |
|---|---|---|---|
| List Kyverno cluster policies | get_policy_list | get_policy_list() | |
| Get Kyverno policy | get_policy | get_policy(name) | |
| List Gatekeeper constraints | get_policy_list | get_policy_list() | |
| Get constraint | get_policy | get_policy(kind, name) |
Kyverno
Detect Installation
List Policies
Get Policy Details
Policy Reports
Common Kyverno Policies
Gatekeeper (OPA)
Detect Installation
List Constraints
Get Constraint Details
Common Gatekeeper Policies
Policy Audit Workflow
Prerequisites
- Kyverno: Required for Kyverno tools
``bash kubectl create -f https://github.com/kyverno/kyverno/releases/latest/download/install.yaml ``
- Gatekeeper: Required for Gatekeeper tools
``bash kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper/master/deploy/gatekeeper.yaml ``
Related Skills
- k8s-security - RBAC and security
- k8s-operations - Apply policies
Security
- Security scanPassed, 96 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingkubernetes-skills/claude/k8s-policy/SKILL.md
Popularity
- Repository stars
- 853
- Repository forks
- 166
- Repository npm downloads, 7 days
- 360
- 7-day trend score
- 48
Stars and forks are for the whole GitHub repository, not this skill alone. Downloads are for the repository's npm package. Refreshed 20 Mar 2026, 8 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/rohitg00/kubectl-mcp-server/k8s-policy)