policy-as-code-template-library

Automate Kubernetes governance and security policy enforcement with Kyverno and OPA templates.

3|3|Updated Jan 4, 2026
One-click install
npx skills add https://github.com/adaptive-enforcement-lab/claude-skills --skill policy-as-code-template-library
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: policy-as-code-template-library
Source: https://github.com/adaptive-enforcement-lab/claude-skills/tree/main/plugins/enforce/skills/policy-as-code-template-library
Command: npx skills add https://github.com/adaptive-enforcement-lab/claude-skills --skill policy-as-code-template-library

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Production-ready policy templates for Kubernetes security and governance reduce manual policy authoring time and ensure consistent compliance across clusters.

Core Features & Use Cases

  • 28 Kyverno policies for admission control, mutation, and generation
  • 20 OPA/Gatekeeper constraint templates for advanced policy enforcement
  • Ready-to-run examples and references for rapid deployment in CI/CD pipelines

Quick Start

Apply the templates in a test Kubernetes cluster using the included examples and reference materials.

Frequently Asked Questions about policy-as-code-template-library

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I enforce Kubernetes security policies for pod security and image validation?

You can enforce pod security and image validation using the included Kyverno and OPA Gatekeeper templates, automating governance and admission control across clusters.

What is policy-as-code for Kubernetes clusters?

Policy-as-code for Kubernetes clusters is the practice of defining governance and security rules as code, using tools like Kyverno and OPA Gatekeeper to automate validation, mutation, and generation of resources.

Can I use OPA Gatekeeper and Kyverno templates together for cluster governance?

Yes, you can apply both OPA Gatekeeper and Kyverno templates together for cluster governance, utilizing 20 OPA constraint templates and 28 Kyverno policies for comprehensive coverage.

How do I deploy ready-to-run Kubernetes policies in a CI/CD pipeline?

Deploy ready-to-run Kubernetes policies in a CI/CD pipeline by applying the included production-ready YAML and Rego implementations using the provided example workflows and reference materials.

Does this policy template library include RBAC and network security rules?

Yes, the policy template library includes production-ready rules for RBAC and network security, alongside pod security, image validation, resource governance, and generation policies.

Do I need a test Kubernetes cluster to apply these OPA and Kyverno policies?

Yes, you need a Kubernetes cluster to apply these OPA and Kyverno policies. The templates include ready-to-run examples and references designed for rapid deployment in a test environment.