/skills:opa-rego-engineeringfrom skills
Use when writing, testing or operating Open Policy Agent and Rego — .rego files, Rego v1/v2 migration, undefined results, input and data contracts, bundles, Gatekeeper, Terraform plan checks, partial evaluation, Wasm, decision logs, slow policies.
Ships in skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Treat Rego as a versioned language for deriving decisions from structured facts.
Treat OPA as an evaluator and policy distribution runtime. Identify the component
that actually enforces a decision; evaluating allow alone changes no resource.
Use Rego v1 as the bundled examples' deliberate compatibility profile. The
primary documentation also documents Rego v2,
opt-in and/or, and improved negation. Do not describe v1 as the only current
language profile, or assume a runtime supports a feature because online docs do.
See sources and versioning.
| Task | Read |
|---|---|
| Predict rule values, collections, negation, or undefined results | Rego semantics |
| Upgrade syntax or target multiple engines | Versions and capabilities |
| Model facts, identity, decisions, and data freshness | Modeling and data contracts |
| Check schemas, run tests, or establish release gates | Validation and testing |
| Embed OPA, consume REST responses, or enforce authorization | Integration and enforcement |
| Author Gatekeeper templates and constraints | Kubernetes and Gatekeeper |
| Evaluate Terraform plans and CI artifacts | Terraform and CI |
| Distribute bundles and diagnose operational state | Bundles and operations |
| Optimize latency, partially evaluate, or target Wasm | Performance and compilation |
| Investigate policy failures or unexpected permission | Troubleshooting |
| Run the original examples and response helper | Worked examples |
| Verify sources, release observations, and refresh steps | Sources and versioning |
Load only the references needed for the task. Use this skill independently of any cloud, orchestrator, SDK, or other installed skill.
Inspect supplied policy, representative input, data, query, integration envelope, runtime version, and actual error before proposing a rewrite. For new examples, state reasonable assumptions rather than blocking on routine implementation choices.
Record these choices when they affect behavior:
input versus data, their authoritative source, and
their required freshness.For access control, require explicit successful permission. Preserve denial versus evaluation failure in diagnostics even when both prevent the action. A caller may define other failure behavior; make that choice explicit.
:= for assignment, == for comparison, and = when unification is intended.
Bind iteration variables deliberately with some.contains for partial sets, and every
for universal conditions. Decide separately whether empty collections are allowed.false, null, empty collections, and evaluator errors distinct.
Never treat a missing REST result as successful permission.deny has no magical precedence over allow. Define combination explicitly in
the queried entrypoint and test overlapping conditions.with substitutes evaluation dependencies; it does not prove facts authentic.From the skill directory, with a compatible OPA binary:
opa version
opa check --strict assets/examples/policy.rego assets/examples/policy_test.rego
opa test assets/examples/policy.rego assets/examples/policy_test.rego assets/examples/data.json -v
opa eval --data assets/examples/policy.rego --data assets/examples/data.json --input assets/examples/input.json 'data.workspace.authz.decision'
python3 scripts/check_decision.py assets/examples/response-allow.json
The Python helper inspects a saved Boolean Data API response without networking
or policy execution. It returns status 0 for result: true, 1 for false, and
2 for undefined, malformed, or wrong-type responses. It does not consume the
structured decision entrypoint. Read the worked-examples reference first.
For authoring, return policy, query, input/data contract, important cases, and actual checks. For incidents, separate logic, bundle activation, data freshness, and consumer failures. For migration, state both profiles and observed decision differences.
Use cel-engineering, cedar-engineering, or xacml-engineering for their respective
languages when needed. Before claiming equivalent translation, compare types,
missing data, errors, combination rules, and host enforcement.
agents/openai.yaml (opens in a new tab)assets/examples/data.json (opens in a new tab)assets/examples/input.json (opens in a new tab)assets/examples/policy.rego (opens in a new tab)assets/examples/policy_test.rego (opens in a new tab)assets/examples/response-allow.json (opens in a new tab)assets/examples/response-deny.json (opens in a new tab)assets/examples/response-undefined.json (opens in a new tab)assets/icon.svg (opens in a new tab)references/bundles-and-operations.md (opens in a new tab)references/integration-and-enforcement.md (opens in a new tab)references/kubernetes-and-gatekeeper.md (opens in a new tab)references/modeling-and-data-contracts.md (opens in a new tab)references/performance-and-compilation.md (opens in a new tab)references/rego-semantics.md (opens in a new tab)references/sources-and-versioning.md (opens in a new tab)references/terraform-and-ci.md (opens in a new tab)references/troubleshooting.md (opens in a new tab)references/validation-and-testing.md (opens in a new tab)references/versions-and-capabilities.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Generated from the plugin's indexed repository (getty/skills) — no native marketplace selected
npx claudepluginhub p/getty-skills129 skills in this plugin
/ai-playable-gamesUse when building a game or simulation that bots or LLM agents must play — observation and order interface, agent API or MCP server, AI seats beside humans, fog of war, replays; or when an AI player cheats, stalls, misreads the state or follows text other players wrote./ai-web-scrapingUse when scraping, crawling or extracting structured data from websites, especially with an LLM — Crawl4AI, Firecrawl, Scrapy, Crawlee, Playwright, browser-use; building a dataset or RAG corpus, watching pages for changes, or a scraper that returns empty, duplicated or invented records./cedar-engineeringUse when writing, validating or debugging Cedar authorization policies — .cedar and .cedarschema files, permit/forbid, entities and hierarchies, RBAC/ABAC/ReBAC, templates, multi-tenant access, partial evaluation, Amazon Verified Permissions, migrating to or from Cedar.Other plugins' skills for the same job