Agent skill

Policy Opa

by AgentSecOps in AgentSecOps/SecOpsAgentKit

Policy-as-code enforcement and compliance validation using Open Policy Agent (OPA).

Custom licenceAuto-check passedLegal & Compliance

Install Policy Opa

skills CLI
$ npx skills add AgentSecOps/SecOpsAgentKit --skill policy-opa -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install AgentSecOps/SecOpsAgentKit policy-opa --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/AgentSecOps/SecOpsAgentKit.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/compliance/policy-opa .claude/skills/policy-opa && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
policy-opa
GitHub stars
219
Used in
1 other repo
Token cost
~3.5k tokens
SKILL.md length
755 words
Files
15 (incl. references, assets)
Skills in repo
24
Repo updated
First seen
Licence
Custom licence

At a glance

Policy-as-code enforcement and compliance validation using Open Policy Agent (OPA).

  • Works in 7 steps: Define Policy Requirements → Write OPA Rego Policies → Test Policies with Unit Tests → …
  • Enforcing security and compliance policies across infrastructure and applications
  • SKILL.md covers Overview, Quick Start, Core Workflow and Security Considerations, plus 4 more sections
  • Calls kubectl, brew and curl; reaches openpolicyagent.org and raw.githubusercontent.com

What it does

Policy Opa is an agent skill from AgentSecOps/SecOpsAgentKit. 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, HIPAA), (4) Testing and evaluating OPA Rego policies, (5) Integrating policy checks into CI/CD pipelines, (6) Auditing configuration drift against organizational security standards, (7) Implementing…

Its SKILL.md is about 3.5k tokens, which your agent loads only when the skill is triggered. The skill folder holds 16 other files, including reference files and assets (for example `assets/ci-cd-pipeline.yaml`, `assets/k8s-constraint-template.yaml` and `assets/k8s-constraint.yaml`).

It sits in Legal & Compliance, covering SOC 2 and security compliance, Healthcare and finance regulation and CI/CD. It works with Kubernetes. The repository describes itself as: Security operations toolkit for AI coding agents. Give Claude Code 25+ skills to catch vulnerabilities, scan containers, detect secrets, and enforce policies automatically.

When your agent uses it

  • Enforcing security and compliance policies across infrastructure and applications
  • Validating Kubernetes admission control policies
  • Implementing policy-as-code for compliance frameworks (SOC2
  • Testing and evaluating OPA Rego policies

Example prompts

  • “/policy-opa”

Requirements

  • Docker

Workflow steps

7 steps, taken from the step headings in SKILL.md.

  1. Define Policy Requirements
  2. Write OPA Rego Policies
  3. Test Policies with Unit Tests
  4. Evaluate Policies Against Configuration
  5. Integrate with CI/CD Pipelines
  6. Deploy as Kubernetes Admission Controller
  7. Monitor Policy Compliance

What it can do on your machine

Read from SKILL.md and the folder at commit 6e25a4b. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • kubectl
    • brew
    • curl

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • openpolicyagent.org
    • raw.githubusercontent.com

    Also links to:

    • open-policy-agent.github.io
    • conftest.dev
    • aicpa.org
    • pcisecuritystandards.org
    • gdpr.eu

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Policy Opa loads about 3.5k tokens when it runs, and up to ~17k if it reads all its reference files. Until then it costs about 139 tokens; SKILL.md has 755 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~139
When it runs · the whole SKILL.md, loaded when a task matches
~3.5k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~17k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

Its licence (Custom licence) doesn't allow us to republish the file, so here is its outline and opening line. It has 755 words (~3,487 tokens).

“This skill enables policy-as-code enforcement using Open Policy Agent (OPA) for compliance validation, security policy enforcement, and configuration auditing. OPA provides a unified framework for policy evaluation across cloud-native environments, Kubernetes, CI/CD pipelines, and infrastructure-as-code.”

— opening of SKILL.md by AgentSecOps, Custom licence
name
policy-opa
version
0.1.0
maintainer
SirAppSec
category
compliance
tags
opa, policy-as-code, compliance, rego, kubernetes, admission-control, soc2, gdpr, pci-dss, hipaa
frameworks
SOC2, PCI-DSS, GDPR, HIPAA, NIST, ISO27001
dependencies.tools
opa, docker, kubectl
dependencies.packages
jq, yq
references
https://www.openpolicyagent.org/docs/latest/, https://www.openpolicyagent.org/docs/latest/policy-language/, https://www.conftest.dev/

Read the full SKILL.md on GitHub

Files

SKILL.md and 14 other files (references, assets) in skills/compliance/policy-opa of AgentSecOps/SecOpsAgentKit.

  • SKILL.md
  • assets/.gitkeep
  • assets/ci-cd-pipeline.yaml
  • assets/gdpr-compliance.rego
  • assets/k8s-constraint-template.yaml
  • assets/k8s-constraint.yaml
  • assets/k8s-pod-security.rego
  • assets/pci-dss-compliance.rego
  • assets/soc2-compliance.rego
  • assets/terraform-security.rego
  • references/EXAMPLE.md
  • references/compliance-frameworks.md
  • references/iac-policies.md
  • references/kubernetes-security.md
  • references/rego-patterns.md

Open the folder on GitHubat commit 6e25a4b

Used in 1 other repository

We found 1 copy of this SKILL.md (exact, near-identical or edited) in other folders, from 1 other GitHub owner. This page covers the copy in AgentSecOps/SecOpsAgentKit, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Policy Opa next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Policy Opa compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Policy Opa this skillAgentSecOps/SecOpsAgentKit2191 repos~3.5kAutomated safety check: PassCustom licence
Implementing Complianceancoleman/ai-design-components526—~4kAutomated safety check: PassMIT
Security Compliance Compliance Checkaiskillstore/marketplace4307 repos~600Automated safety check: PassNone
Compliance Testingproffesor-for-testing/agentic-qe494—~1.8kAutomated safety check: PassMIT
Cometchat Compliancecometchat/cometchat-skills129—~1.7kAutomated safety check: PassMIT
Compliance ChecklistHack23/cia239—~994Automated safety check: PassApache-2.0

Similar skills

  • Implementing Compliance

    ancoleman/ai-design-components

    Implement and maintain compliance with SOC 2, HIPAA, PCI-DSS, and GDPR using unified control mapping, policy-as-code enforcement, and automated evidence collection.

    526 GitHub stars~4k tokensUpdated 10 mo ago
    Legal & ComplianceAuto-check passed
  • Security Compliance Compliance Check

    aiskillstore/marketplace

    You are a compliance expert specializing in regulatory requirements for software systems including GDPR, HIPAA, SOC2, PCI-DSS, and other industry standards.

    430 GitHub starsUsed in 7 repos~600 tokens
    Legal & ComplianceAuto-check passed
  • Compliance Testing

    proffesor-for-testing/agentic-qe

    Regulatory compliance testing for GDPR, CCPA, HIPAA, SOC2, PCI-DSS and industry-specific regulations.

    494 GitHub stars~1.8k tokensUpdated 3 days ago
    Legal & ComplianceAuto-check passed
  • Cometchat Compliance

    cometchat/cometchat-skills

    Data governance & compliance for CometChat — pick the data-residency region, satisfy GDPR/CCPA (right-to-erasure and data export), plan message retention & purge, and produce audit / eDiscovery…

    129 GitHub stars~1.7k tokensUpdated 2 days ago
    Legal & ComplianceAuto-check passed
  • Unified compliance verification across ISO 27001, NIST CSF, CIS Controls, NIS2, EU CRA, GDPR, SOC 2, PCI DSS, and HIPAA for cybersecurity consulting

    239 GitHub stars~994 tokensUpdated yesterday
    Legal & ComplianceAuto-check passed
  • Compliance Checklist

    mohitagw15856/pm-claude-skills

    Generate a prioritised compliance checklist for GDPR, SOC 2, ISO 27001, FCA, HIPAA, or other frameworks with a gap analysis.

    1.4k GitHub stars~1.2k tokensUpdated yesterday
    Legal & ComplianceAuto-check passed

More from AgentSecOps/SecOpsAgentKit

All 24 skills in this repo
  • Sast Semgrep

    AgentSecOps/SecOpsAgentKit

    Static application security testing (SAST) using Semgrep for vulnerability detection, security code review, and secure coding guidance with OWASP and CWE framework mapping.

    219 GitHub starsUsed in 2 repos~2.4k tokens
    Auto-check passed
  • Secrets Gitleaks

    AgentSecOps/SecOpsAgentKit

    Hardcoded secret detection and prevention in git repositories and codebases using Gitleaks.

    219 GitHub starsUsed in 2 repos~4.1k tokens
    Auto-check passed
  • DefectDojo Vulnerability Management

    AgentSecOps/SecOpsAgentKit

    Aggregates scanner results into DefectDojo, deduplicates findings, tracks remediation SLAs and prepares compliance reports across products and pipelines.

    219 GitHub stars~2.3k tokensUpdated 5 mo ago
    Auto-check passed
  • TShark Traffic Analysis

    AgentSecOps/SecOpsAgentKit

    Guides authorized packet capture and analysis with TShark, Wireshark's command-line tool, for security investigations, malware detection and forensic examination of network traffic.

    219 GitHub starsUsed in 1 repo~4.8k tokens
    Auto-check: notes
  • Container Scanning with Grype

    AgentSecOps/SecOpsAgentKit

    Scans container images, filesystems and SBOMs with Grype for known vulnerabilities, ranks them by CVSS, EPSS and CISA KEV, and wires scans into CI/CD thresholds.

    219 GitHub starsUsed in 1 repo~2.5k tokens
    Auto-check passed
  • Hadolint Dockerfile Security Linting

    AgentSecOps/SecOpsAgentKit

    Lints Dockerfiles with Hadolint for security misconfigurations and best-practice violations, locally and in CI, with strict, balanced and permissive rule templates.

    219 GitHub starsUsed in 1 repo~4.4k tokens
    Auto-check passed

Works with

Questions about Policy Opa

What does Policy Opa do?

Policy-as-code enforcement and compliance validation using Open Policy Agent (OPA). Policy Opa is an agent skill from AgentSecOps/SecOpsAgentKit. Policy-as-code enforcement and compliance validation using Open Policy Agent (OPA).

When should I use Policy Opa?

Policy Opa fits situations like: enforcing security and compliance policies across infrastructure and applications; validating Kubernetes admission control policies; implementing policy-as-code for compliance frameworks (SOC2; testing and evaluating OPA Rego policies.

How do I install Policy Opa in Claude Code?

Run `npx skills add AgentSecOps/SecOpsAgentKit --skill policy-opa -a claude-code`. Or copy the skill folder (skills/compliance/policy-opa in AgentSecOps/SecOpsAgentKit) into .claude/skills/policy-opa in your project. Claude Code loads it when a task matches its description.

How do I install Policy Opa in Codex?

Run `npx skills add AgentSecOps/SecOpsAgentKit --skill policy-opa -a codex`. Or copy the skill folder (skills/compliance/policy-opa in AgentSecOps/SecOpsAgentKit) into .agents/skills/policy-opa in your project. Codex loads it when a task matches its description.

Can I use Policy Opa in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add AgentSecOps/SecOpsAgentKit --skill policy-opa -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/policy-opa, .gemini/skills/policy-opa, .github/skills/policy-opa and .opencode/skills/policy-opa in your project.

What does Policy Opa need to run?

Going by SKILL.md and its folder, Policy Opa needs the command-line tools its instructions call (kubectl, brew and curl). Our summary lists: Docker.

Does Policy Opa access the network?

SKILL.md names 7 domains. In commands or code: openpolicyagent.org and raw.githubusercontent.com; the agent is likely to contact these when it follows the instructions. As links in the text: open-policy-agent.github.io, conftest.dev, aicpa.org, pcisecuritystandards.org and gdpr.eu. This is read from the text; nothing was executed.

Is Policy Opa safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Policy Opa use?

Policy Opa has a licence file (the repository's licence) that doesn't match a standard licence. Read it on GitHub before reusing the skill.

How many tokens does Policy Opa use?

About 3.5k tokens (SKILL.md is roughly 14k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 14k tokens, read only when the agent opens those files.

What are the alternatives to Policy Opa?

Skills that share tags, products or a category with Policy Opa: Implementing Compliance (ancoleman/ai-design-components, 526 stars), Security Compliance Compliance Check (aiskillstore/marketplace, 430 stars), Compliance Testing (proffesor-for-testing/agentic-qe, 494 stars) and Cometchat Compliance (cometchat/cometchat-skills, 129 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Policy Opa?

AgentSecOps (a GitHub organization) maintains it in AgentSecOps/SecOpsAgentKit, which has 219 GitHub stars. The repository holds 24 skills in this directory. The repository was last updated on April 15, 2026.

Source: AgentSecOps/SecOpsAgentKit on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.