Skills for Real Engineers. Straight from my .agents directory.
policy-as-code
Agent skill fromBagelHole/DevOps-Security-Agent-Skills
Implement policy as code with OPA, Sentinel, and Kyverno. Automate policy enforcement in CI/CD and infrastructure. Use when enforcing compliance through automation.
How to install policy-as-code
npx skills add BagelHole/DevOps-Security-Agent-Skills# or add only this skill to Claude Code: copy the folder
compliance/governance/policy-as-code/
# into
~/.claude/skills/policy-as-code/ (all projects)
.claude/skills/policy-as-code/ (one project)
1# Policy as Code23Automate policy enforcement through code using OPA/Rego, Kyverno, Checkov, and CI/CD integration to prevent compliance violations before they reach production.45## When to Use67- Enforcing security and compliance policies on infrastructure-as-code changes8- Preventing misconfigured Kubernetes workloads from deploying9- Automating guardrails in CI/CD pipelines for Terraform, CloudFormation, or Helm10- Implementing organizational standards that must be consistently applied11- Replacing manual approval gates with automated policy checks1213## Open Policy Agent (OPA) Rego Policies1415```rego16# deny_public_s3.rego - Deny S3 buckets with public access17package terraform.aws.s31819import rego.v12021deny contains msg if {22 resource := input.resource_changes[_]23 resource.type == "aws_s3_bucket"24 resource.change.after.acl == "public-read"25 msg := sprintf(26 "S3 bucket '%s' has public-read ACL. All buckets must be private. [Policy: no-public-s3]",27 [resource.address]28 )29}3031deny contains msg if {32 resource := input.resource_changes[_]33 resource.type == "aws_s3_bucket"34 resource.change.after.acl == "public-read-write"35 msg := sprintf(36 "S3 bucket '%s' has public-read-write ACL. This is strictly prohibited. [Policy: no-public-s3]",37 [resource.address]38 )39}40```4142```rego43# require_encryption.rego - Require encryption on data stores44package terraform.aws.encryption4546import rego.v14748deny contains msg if {49…
Excerpt shown under the repository's MIT license.
More skills in DevOps-Security-Agent-Skills
Similar skill repositories
An agentic skills framework & software development methodology that works.
Public repository for Agent Skills
Makes your AI agent think like the laziest senior dev in the room. The best code is the code you never wrote.
Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More
Production-grade engineering skills for AI coding agents.
