Devops Policy As Code
Use when the user asks to enforce admission policies with OPA Gatekeeper, Rego, Kyverno, ValidatingAdmissionPolicy (CEL), conftest or opa test, mutation policies, or compliance as code in CI. Produces tested policies and CI enforcement. Not for compliance programs (use enterprise-compliance-audit) or RBAC/ABAC design (use abac-access-control).
Install
npx skills add j4flmao/agent-skills --skill devops-policy-as-codegit clone --depth 1 https://github.com/j4flmao/agent-skills.git /tmp/agent-skills
mkdir -p ~/.claude/skills
cp -r /tmp/agent-skills/skills/devops/policy-as-code ~/.claude/skills/devops-policy-as-codePersonal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.
From the SKILL.md
# Policy as Code ## Purpose Implement policy as code using OPA/Rego and Kyverno: write admission policies, enforce guardrails, validate configurations, and automate compliance checks in Kubernetes and cloud environments. Covers mutating and validating policies, constraint templates, policy testing, CI/CD integration, and policy lifecycle management. ## Agent Protocol ### Trigger Exact user phrases: "policy as code", "OPA", "Open Policy Agent", "Rego", "Gatekeeper", "Kyverno", "admission controller", "admission webhook", "conftest", "constraint template", "constraint", "policy enforcement", "guardrails", "compliance as code", "policy testing", "opa test", "validate", "mutate", "generate", "policy report", "background scan". ### Input Context - Existing policy tools (OPA, Kyverno, or none) - Cluster/environment (Kubernetes, Terraform, CI/CD) - Compliance requirements (PCI, SOC2, HIPAA, internal) - Team structure and policy ownership - Existing policy rules (if any, to migrate) ### Output Artifact Policy definitions (Rego files, Kyverno YAML, Gatekeeper constraints), policy tests, CI/CD integration scripts, and policy reporting configuration. ### Response Format Rego policy code, Kyverno ClusterPolicy YAML, constraint template YAML, or test files. No preamble. No postamble. No filler. ### Completion Criteria - [ ] Policy framework selected (OPA/Gatekeeper, Kyverno, or hybrid) - [ ] Core security policies defined (privileged containers, host networking, resource limits)
Details
- Skill name
devops-policy-as-code- Repository
- j4flmao/agent-skills
- Path
skills/devops/policy-as-code/SKILL.md- License
- MIT
- Repo updated
- 17 November 2026
FAQ
What does the Devops Policy As Code skill do?
Use when the user asks to enforce admission policies with OPA Gatekeeper, Rego, Kyverno, ValidatingAdmissionPolicy (CEL), conftest or opa test, mutation policies, or compliance as code in CI. Produces tested policies and CI enforcement. Not for compliance programs (use enterprise-compliance-audit) or RBAC/ABAC design (use abac-access-control).
How do I install the Devops Policy As Code skill?
skills CLI (Claude Code, Cursor, Codex and more): npx skills add j4flmao/agent-skills --skill devops-policy-as-code. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.
Is Devops Policy As Code popular?
It lives in j4flmao/agent-skills, which has 45 GitHub stars and 6 forks.
Related skills
Agent Observability
45j4flmao/agent-skills
Use when the user asks about agent observability, tracing agent reasoning, debugging an agent loop, OpenTelemetry GenAI spans for LLM calls, LLM cost tracking per agent, agent audit logs or hallucination/eval monitoring in production. Produces instrumentation config, trace schema, dashboards, alerts and cost attribution. Not for generic service tracing without LLMs (use devops-opentelemetry).
AI Agent Architectures
45j4flmao/agent-skills
Use when the user asks to build an AI agent, design an agent that calls tools and keeps memory, write an agent system prompt or pick an agent framework (Claude Agent SDK, OpenAI Agents SDK, LangGraph). Produces an architecture brief covering loop, tools, memory, guardrails and evals, routing depth to child skills. Not for workflow patterns (use ai-agentic-workflows).
AI Agent Core Loop
45j4flmao/agent-skills
Use when the user asks about the agent loop, ReAct vs plan-and-solve, re-planning, Reflexion, an agent stuck in a loop, max iterations or termination conditions. Produces a loop spec or patch with state, success predicate, caps and no-progress detection. Not for overall agent design (use ai-agent-architectures) or tool schemas (use tool-calling-principles).
Dotnet Architecture
45j4flmao/agent-skills
Use when the user asks about .NET clean architecture, ASP.NET Core solution structure, vertical slices, dotnet DI registration, minimal APIs vs controllers or project references. Produces a layered .NET solution layout with dependency rules. Not for MediatR, Result or EF Core recipes (use dotnet-patterns).
Devops Internal Developer Platform
45j4flmao/agent-skills
Use when the user asks to build an internal developer portal with Backstage, Backstage plugins, software templates and Scaffolder custom actions, the software catalog entity model, TechDocs, the permission framework, or golden path templates. Produces Backstage implementation designs. Not for platform team strategy and maturity (use devops-platform-engineering).
Dotnet Patterns
45j4flmao/agent-skills
Use when the user asks about MediatR pipeline behaviors, the Result pattern in C#, FluentValidation, EF Core performance (AsNoTracking, ExecuteUpdate), EF Core outbox or dotnet CQRS handlers. Produces C# implementations of these patterns. Not for solution layout (use dotnet-architecture).
Browse the most popular Claude skills, all software development skills, or write your own with the skills generator.