implementing-policy-as-code-with-open-policy-agent

implementing-policy-as-code-with-open-policy-agent is a skill for Claude Code, Codex from Njones17/AI-agent-master-cyber-skills-list. It costs 66 tokens per session (2,353 once invoked), scanned B, original, no licence file.

A policy-as-code workflow using Open Policy Agent and Gatekeeper to enforce rules automatically. Policy as code means storing and testing compliance rules like software; Rego is the language used to write them.

In plain words
What is it for?
Use it to write Rego policies, run Gatekeeper as a Kubernetes admission controller, test policies during development, and evaluate them in CI/CD pipelines.
Why use it?
It helps apply the same deployment and security rules consistently instead of relying on manual reviews. Violating configurations can be checked before they are deployed.

Skill for Claude CodeCodex

Which agent this was written for is unclear — body not stored (licence); the path alone says nothing.

Good fit Use it to write Rego policies, run Gatekeeper as a Kubernetes admission controller, test policies during development, and evaluate them in CI/CD pipelines.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/njones17/ai-agent-master-cyber-skills-list/implementing-policy-as-code-with-open-policy-agent
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Njones17/AI-agent-master-cyber-skills-list --skill implementing-policy-as-code-with-open-policy-agent
Clone the repo
git clone --depth 1 https://github.com/Njones17/AI-agent-master-cyber-skills-list

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for implementing-policy-as-code-with-open-policy-agent

README.md
[![agentmods](https://agentmods.dev/badge/skills/njones17/ai-agent-master-cyber-skills-list/implementing-policy-as-code-with-open-policy-agent/github.svg)](https://agentmods.dev/skills/njones17/ai-agent-master-cyber-skills-list/implementing-policy-as-code-with-open-policy-agent)
Your own site
<a href="https://agentmods.dev/skills/njones17/ai-agent-master-cyber-skills-list/implementing-policy-as-code-with-open-policy-agent"><img src="https://agentmods.dev/badge/skills/njones17/ai-agent-master-cyber-skills-list/implementing-policy-as-code-with-open-policy-agent/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for implementing-policy-as-code-with-open-policy-agent

Your own site · 80×15
<a href="https://agentmods.dev/skills/njones17/ai-agent-master-cyber-skills-list/implementing-policy-as-code-with-open-policy-agent"><img src="https://agentmods.dev/badge/skills/njones17/ai-agent-master-cyber-skills-list/implementing-policy-as-code-with-open-policy-agent.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 66 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,353 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 2 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin unknown No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00066 $0.02353
Opus 5 $0.00033 $0.01177
Sonnet 5 $0.00013 $0.00471
Haiku 4.5 $0.00007 $0.00235

Measured 9d ago against content hash 5346d768a818, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade B, and why

implementing-policy-as-code-with-open-policy-agent scanned grade B with 2 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/process.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

sudo mv conftest /usr/local/bin/

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

wget -q https://github.com/open-policy-agent/conftest/releases/download/v0.50.0/conftest_0.50.0_Linux_x86_64.tar.gz
skills/container-security/implementing-policy-as-code-with-open-policy-agent/SKILL.md · 308 lines

The source is not reproduced here

No licence file

A repository with no LICENSE is all rights reserved by default, so the body is not copied here. The metadata, the measurements and the link are.

Read it on GitHub

Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 308 lines · 66 tokens per session scan B 5346d768a818

Subscribe to this mod's changes

implementing-policy-as-code-with-open-policy-agent is a skill published in the GitHub repository Njones17/AI-agent-master-cyber-skills-list (21 stars, last pushed 6mo ago), with no licence file. It adds 66 tokens to every session and 2,353 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it B with 2 findings (asks for root, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

implementing-policy-as-code-with-open-policy-agent

This skill covers implementing Open Policy Agent (OPA) and Gatekeeper for policy-as-code enforcement in Kubernetes and CI/CD pipelines. It addresses writing Rego policies, deploying OPA Gatekeeper as a Kubernetes admission controller, testing policies in development, and integrating policy evaluation into deployment…

xalgorix/xalgorix · 66 tokens

implementing-infrastructure-as-code-security-scanning

This skill covers implementing automated security scanning for Infrastructure as Code (IaC) templates using tools like Checkov, tfsec, and KICS. It addresses detecting misconfigurations in Terraform, CloudFormation, Kubernetes manifests, and Helm charts before deployment, establishing policy-based governance, and…

xalgorix/xalgorix · 81 tokens

implementing-opa-gatekeeper-for-policy-enforcement

Enforce Kubernetes admission policies using OPA Gatekeeper with ConstraintTemplates, Rego rules, and the Gatekeeper policy library.

xalgorix/xalgorix · 37 tokens

integrating-sast-into-github-actions-pipeline

This skill covers integrating Static Application Security Testing (SAST) tools—CodeQL and Semgrep—into GitHub Actions CI/CD pipelines. It addresses configuring automated code scanning on pull requests and pushes, tuning rules to reduce false positives, uploading SARIF results to GitHub Advanced Security, and…

xalgorix/xalgorix · 84 tokens

performing-sca-dependency-scanning-with-snyk

This skill covers implementing Software Composition Analysis (SCA) using Snyk to detect vulnerable open-source dependencies in CI/CD pipelines. It addresses scanning package manifests and lockfiles, automated fix pull request generation, license compliance checking, continuous monitoring of deployed applications, and…

xalgorix/xalgorix · 77 tokens

scanning-containers-with-trivy-in-cicd

This skill covers integrating Aqua Security's Trivy scanner into CI/CD pipelines for comprehensive container image vulnerability detection. It addresses scanning Docker images for OS package and application dependency CVEs, detecting misconfigurations in Dockerfiles, scanning filesystem and git repositories, and…

xalgorix/xalgorix · 74 tokens