local-development-with-policy-as-code

Validate Kubernetes policies locally using Kyverno and related tools in a container.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires docker, and includes scripts (resource) components.

What problem does it solve?

Local policy validation often requires dedicated CI setups or manual testing. This Skill enables running Kyverno policy validation locally using policy-platform containers, providing zero local setup and immediate feedback before code changes.

Core Features & Use Cases

  • Zero-setup policy validation: Run all tools inside a single container, mirroring CI.
  • Multi-tool policy validation: Includes Kyverno CLI, Pluto for deprecations, Helm rendering, spectral validation, and yq YAML processing.
  • Use Case: Validate new policies against Kubernetes manifests locally before merging to ensure compliance.

Quick Start

Run the policy-platform container locally to validate policies without installing tools on your host.

Frequently Asked Questions about local-development-with-policy-as-code

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

FAQPage Schema
How do I validate Kyverno policies locally without installing the CLI?

You can validate Kyverno policies locally without installing the CLI by running a policy-platform container. This provides zero local setup and instant feedback on code changes.

Can I run Kubernetes policy validation in a container with Docker?

Yes, you can run Kubernetes policy validation in a container using Docker. The container executes Kyverno, Pluto, Helm, Spectral, and yq to mirror CI tooling locally.

What is the best way to test Kubernetes manifests against policies before merging?

The best way to test Kubernetes manifests against policies before merging is using a local container that provides CI-parity policy checks with immediate feedback on your code changes.

Do I need Docker to run local policy-as-code validation?

Yes, you need Docker to run local policy-as-code validation because the Skill relies on a policy-platform container to execute Kyverno and related tooling without host installations.

Does local Kyverno validation support Helm rendering and deprecation checks?

Yes, local Kyverno validation supports Helm rendering and deprecation checks. The container includes Pluto for deprecations, Helm rendering, Spectral validation, and yq YAML processing.