implementing-opa-gatekeeper-for-policy-enforcement

implementing-opa-gatekeeper-for-policy-enforcement is a skill for Claude Code, Codex from Njones17/AI-agent-master-cyber-skills-list. It costs 37 tokens per session (2,351 once invoked), scanned A, original, no licence file.

A Kubernetes policy setup using OPA Gatekeeper to check and reject resources that violate rules written in Rego, a policy language.

In plain words
What is it for?
It helps define admission rules with ConstraintTemplates and Rego, then apply reusable policies from the Gatekeeper library.
Why use it?
It prevents unsafe or non-compliant workloads from entering a Kubernetes cluster and makes policy checks consistent.

Skill for Claude CodeCodex

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

Good fit It helps define admission rules with ConstraintTemplates and Rego, then apply reusable policies from the Gatekeeper library.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/njones17/ai-agent-master-cyber-skills-list/implementing-opa-gatekeeper-for-policy-enforcement
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-opa-gatekeeper-for-policy-enforcement
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-opa-gatekeeper-for-policy-enforcement

README.md
[![agentmods](https://agentmods.dev/badge/skills/njones17/ai-agent-master-cyber-skills-list/implementing-opa-gatekeeper-for-policy-enforcement/github.svg)](https://agentmods.dev/skills/njones17/ai-agent-master-cyber-skills-list/implementing-opa-gatekeeper-for-policy-enforcement)
Your own site
<a href="https://agentmods.dev/skills/njones17/ai-agent-master-cyber-skills-list/implementing-opa-gatekeeper-for-policy-enforcement"><img src="https://agentmods.dev/badge/skills/njones17/ai-agent-master-cyber-skills-list/implementing-opa-gatekeeper-for-policy-enforcement/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-opa-gatekeeper-for-policy-enforcement

Your own site · 80×15
<a href="https://agentmods.dev/skills/njones17/ai-agent-master-cyber-skills-list/implementing-opa-gatekeeper-for-policy-enforcement"><img src="https://agentmods.dev/badge/skills/njones17/ai-agent-master-cyber-skills-list/implementing-opa-gatekeeper-for-policy-enforcement.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 37 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,351 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 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.00037 $0.02351
Opus 5 $0.00018 $0.01175
Sonnet 5 $0.00007 $0.00470
Haiku 4.5 $0.00004 $0.00235

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

Security

Grade A, and why

implementing-opa-gatekeeper-for-policy-enforcement scanned grade A with 0 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/container-security/implementing-opa-gatekeeper-for-policy-enforcement/SKILL.md · 368 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 · 368 lines · 37 tokens per session scan A c8dc20c70e47

Subscribe to this mod's changes

implementing-opa-gatekeeper-for-policy-enforcement 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 37 tokens to every session and 2,351 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. 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-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

policy-opa

Policy-as-code enforcement and compliance validation using Open Policy Agent (OPA). Use when: (1) Enforcing security and compliance policies across infrastructure and applications, (2) Validating Kubernetes admission control policies, (3) Implementing policy-as-code for compliance frameworks (SOC2, PCI-DSS, GDPR…

AgentSecOps/SecOpsAgentKit · 117 tokens

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

iac-checkov

Infrastructure as Code (IaC) security scanning using Checkov with 750+ built-in policies for Terraform, CloudFormation, Kubernetes, Dockerfile, and ARM templates. Use when: (1) Scanning IaC files for security misconfigurations and compliance violations, (2) Validating cloud infrastructure against CIS, PCI-DSS, HIPAA…

AgentSecOps/SecOpsAgentKit · 123 tokens

vllm-sr-agent-operations

Operate a vLLM Semantic Router directly through its CLI and HTTP contracts. Use when an agent needs to install or deploy vLLM-SR, author or change canonical YAML configuration and Recipes, validate and plan changes, test routing with preview and real end-to-end requests, run the Intelligence 1.0 benchmark suite…

vllm-project/semantic-router · 93 tokens

detecting-privilege-escalation-in-kubernetes-pods

Detect and prevent privilege escalation in Kubernetes pods by monitoring security contexts, capabilities, and syscall patterns with Falco and OPA policies.

xalgorix/xalgorix · 40 tokens