Skills policy-opa
📦

policy-opa

v0.1.0 Content revision r1 High Risk ⚙️ External commands🌐 Network access

Enforce OPA Policy as Code

Security teams need repeatable policy checks across clusters, infrastructure, and compliance controls. This skill guides Claude, Codex, and Claude Code through OPA Rego policy creation, testing, and CI/CD enforcement.

Supports: Claude Codex Code(CC)
⚠️ 38 Poor

Install with my Agent

Copy this request to your Agent. It includes the canonical Skill page and manifest.

Agent request
Review the Skillstore skill "policy-opa" from https://skillstore.io/skills/agentsecops-policy-opa.md and its manifest at https://skillstore.io/api/skills/agentsecops-policy-opa/manifest. Verify the artifact. Stop and obtain explicit user consent before installing or changing files.

Your Agent should still show its plan and request any confirmation required by the security policy.

Agent-readable resources

Use these links when an AI agent, crawler, or script needs clean context instead of reading the full page.

Test it

Using "policy-opa". Ask for a Kubernetes pod security policy.

Expected outcome:

A Rego policy outline that denies privileged containers, requires non-root execution, and explains the matching Gatekeeper deployment steps.

Using "policy-opa". Ask for Terraform policy validation in CI.

Expected outcome:

  • A policy validation workflow plan.
  • Guidance for creating Terraform plan JSON safely.
  • Recommendations for redacting sensitive CI output.

Using "policy-opa". Ask for SOC2 control mapping.

Expected outcome:

A control-to-policy plan that connects each requirement to Rego rules, tests, evidence collection, and audit reporting.

Security Audit

High Risk
v12 • 7/9/2026 Open versioned report

The skill is a legitimate OPA policy-as-code guide with many static false positives caused by Markdown code blocks, Rego keywords, and examples that intentionally detect insecure infrastructure patterns. Confirmed residual risks are limited to unpinned external download or apply commands and CI examples that evaluate Terraform plan JSON, which can contain sensitive values if users print or archive outputs carelessly.

15
Files scanned
3,731
Lines analyzed
3
Review items
0
False positives ignored

Confirmed security concerns (4)

High
Terraform state (may contain secrets)
--format pretty 'data.terraform.security.deny' \
The example evaluates Terraform plan JSON, which can include sensitive values depending on provider output. No exfiltration is shown, but CI logs and generated reports should avoid printing secrets.
High
Terraform state (may contain secrets)
- opa eval --data policies/terraform/ --input tfplan.json 'data.terraform.security.deny'
The example evaluates Terraform plan JSON, which can include sensitive values depending on provider output. No exfiltration is shown, but CI logs and generated reports should avoid printing secrets.
High
Terraform state (may contain secrets)
--format pretty 'data.terraform.deny' > violations.txt
The example evaluates Terraform plan JSON, which can include sensitive values depending on provider output. No exfiltration is shown, but CI logs and generated reports should avoid printing secrets.
High
Terraform state (may contain secrets)
- opa eval --data policies/ --input tfplan.json 'data.terraform.deny'
The example evaluates Terraform plan JSON, which can include sensitive values depending on provider output. No exfiltration is shown, but CI logs and generated reports should avoid printing secrets.
Capability review items (3)

These are real local capabilities that may be expected for this skill, so they require review but are not counted as confirmed malicious behavior.

Low
Hardcoded URL
- curl -L -o /usr/local/bin/opa https://openpolicyagent.org/downloads/latest/opa_linux_amd64
This is a user-visible install or deployment example that downloads or applies content from an external URL. It is legitimate OPA usage, but users should pin versions and verify sources before executing it.
Low
Hardcoded URL
curl -L -o opa https://openpolicyagent.org/downloads/latest/opa_linux_amd64
This is a user-visible install or deployment example that downloads or applies content from an external URL. It is legitimate OPA usage, but users should pin versions and verify sources before executing it.
Low
Hardcoded URL
kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper/master/deploy/gateke
This is a user-visible install or deployment example that downloads or applies content from an external URL. It is legitimate OPA usage, but users should pin versions and verify sources before executing it.
Audited by: claude View Audit History →
Share & cite this report

Share the versioned assessment report, neutral badge, embed card, and citations. Skillstore reports evidence without deciding whether this Skill is safe.

Open versioned report
Security Assessment

Copy report link

https://skillstore.io/skills/agentsecops-policy-opa/audits/12?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_report

Markdown badge

[![Skillstore security assessment](https://skillstore.io/badges/skills/agentsecops-policy-opa/security.svg)](https://skillstore.io/skills/agentsecops-policy-opa?utm_source=security_passport_badge)

HTML badge

<a href="https://skillstore.io/skills/agentsecops-policy-opa?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/agentsecops-policy-opa/security.svg" alt="Skillstore security assessment" loading="lazy"></a>

Embed card

<iframe src="https://skillstore.io/embed/skills/agentsecops-policy-opa.html" title="Skillstore Security Assessment" sandbox="allow-popups allow-popups-to-escape-sandbox" loading="lazy" referrerpolicy="no-referrer" width="420" height="180"></iframe>
Academic citations (APA · BibTeX · CFF)

APA citation

AgentSecOps. (2026). policy-opa security audit report (audit version 12) [Author version 0.1.0]. Skillstore. https://skillstore.io/skills/agentsecops-policy-opa/audits/12

BibTeX citation

@techreport{agentsecops-agentsecops-policy-opa-2026, author = {AgentSecOps}, title = {policy-opa security audit report (audit version 12)}, institution = {Skillstore}, year = {2026}, number = {12}, url = {https://skillstore.io/skills/agentsecops-policy-opa/audits/12}, note = {Author version 0.1.0} }

CITATION.cff

cff-version: 1.2.0 message: "If you use this Skill, cite its author and this versioned security audit report." title: "policy-opa security audit report (audit version 12)" version: "0.1.0" type: report authors: - name: "AgentSecOps" date-released: "2026-07-09" url: "https://skillstore.io/skills/agentsecops-policy-opa/audits/12" identifiers: - type: other value: "skillstore:agentsecops-policy-opa:audit:12" description: "Skillstore immutable audit report identifier"

Skillstore Score

Why this score Evidence Confidence: Medium
59
Architecture
100
Maintainability
87
Content
74
Community
91
Spec Compliance

What You Can Build

Kubernetes admission control

Create Rego policies and Gatekeeper constraints that block privileged pods, missing labels, or unsafe runtime settings.

Infrastructure policy validation

Check Terraform or CloudFormation changes before deployment and fail CI when insecure network, storage, or IAM patterns appear.

Compliance control automation

Map SOC2, PCI-DSS, GDPR, HIPAA, NIST, or ISO27001 controls into testable OPA policies and reports.

Try These Prompts

Create a basic policy
Use the policy-opa skill to write a simple Rego policy that denies Kubernetes pods running as privileged containers.
Test an existing policy
Use the policy-opa skill to create unit tests for this Rego policy and explain what each test proves.
Add CI policy validation
Use the policy-opa skill to design a CI workflow that tests OPA policies and blocks deployment when violations exist.
Map controls to policies
Use the policy-opa skill to map these compliance requirements to OPA policies, tests, and audit report outputs.

Best Practices

  • Run policy checks in least-privilege CI and cluster contexts.
  • Write unit tests for every policy rule before enforcement.
  • Pin external tool and manifest versions before production use.

Avoid

  • Do not paste secrets or full Terraform plan outputs into prompts or public logs.
  • Do not apply remote Kubernetes manifests without version pinning and review.
  • Do not treat generated policy text as auditor-approved evidence without validation.

Frequently Asked Questions

What is this skill for?
It helps create, test, and operate Open Policy Agent policies for security, compliance, Kubernetes, and infrastructure workflows.
Does it execute OPA commands automatically?
No. It provides examples and guidance. Users choose which commands to run in their own authorized environment.
Can it create Kubernetes admission policies?
Yes. It includes Rego and Gatekeeper patterns for enforcing pod and workload security requirements.
Can it help with compliance frameworks?
Yes. It maps policy examples to frameworks such as SOC2, PCI-DSS, GDPR, HIPAA, NIST, and ISO27001.
What tools are usually required?
Common workflows use OPA, kubectl, Terraform, jq, yq, and CI/CD runners.
What should I review before production use?
Review generated policies, test coverage, CI permissions, external downloads, and any logs that may include sensitive plan data.

Developer Details

License

MIT

Author version

v0.1.0

Skillstore revision

r1

Ref

1ffa7643651792ccb4bd3b15d924d2c97edff755

Maintenance freshness

7/18/2026

Usage

7 downloads · 489 views