CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

create-policy

Create OPA governance policies for Harness via MCP. Define policies that enforce compliance rules on pipelines, services, environments, feature flags, artifacts, code repositories, templates, SBOM, security tests, Terraform, GitOps, connectors, secrets, and more. Use when asked to create, write, fix, or explain an OPA policy, Rego rule, deny rule, governance policy, compliance rule, or policy-as-code for any Harness entity. Trigger phrases: create policy, OPA policy, governance policy, compliance rule, rego policy, deny rule, enforce policy, security policy, supply chain governance.

Quality

86%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide
SecuritybySnyk

Passed

No findings from the security scan

SKILL.md
Quality
Evals
Security

Quality

Content

75%Weight 40%Scale 1-5

Reviews the quality of instructions and guidance provided to agents. Good implementation is clear, handles edge cases, and produces reliable results.

A solid, well-organized body: an executable 3-step MCP workflow, four complete Rego policy patterns, a resource-type table, and a clearly catalogued one-level-deep reference bundle. The consistent weaknesses are a missing concrete example of the policy creation payload, validation guidance that names no mechanism, mild duplication between Performance Notes and Troubleshooting, and one orphaned bundle file.

Suggestions

Add one complete harness_create example showing the actual policy body payload (e.g., name, Rego text, and enforcement fields as JSON) instead of the bare '<policy definition>' placeholder, so the primary action is copy-paste executable.

Give 'Validate Rego syntax before submitting' a concrete mechanism — a command (such as an opa check equivalent or an MCP validation tool) with a fix-and-retry loop — turning the implicit validation checkpoint into an executable step.

Reference references/quality-tests.md from the reference file listing (or remove it from the bundle), and merge the duplicate package-naming and deny-rule-msg guidance from Performance Notes into Troubleshooting to eliminate redundancy.

DimensionReasoningScore

Conciseness

The body is efficient — terse step lists, compact Rego snippets, and a table instead of prose — with only minor trimmable content: Performance Notes duplicates Troubleshooting ("Ensure the policy package name follows `package harness.<domain>` convention" vs "Package names should follow `package harness.<domain>` convention", and both restate the deny-rule msg requirement), and "Test policy logic mentally against expected inputs before creating" is generic filler. This matches anchor 4 (minor instances of over-explanation) rather than the lean anchor 5.

4 / 5

Actionability

Mostly executable: concrete MCP calls with parameters ("Call MCP tool: harness_create / resource_type: 'policy' / org_id / project_id / body") and four complete, copy-paste-ready Rego policies with package declarations and msg returns. The gap keeping it at 4 rather than 5 is that the primary creation step leaves `body: <policy definition>` as an unspecified placeholder — no concrete policy payload example (name, policy text, enforcement fields) is ever shown, so the exact request body must be guessed.

4 / 5

Workflow Clarity

A clear three-step sequence (identify requirements → create via harness_create → verify via scs_compliance_result) with a post-creation checkpoint and Troubleshooting recovery paths ("Verify the policy was created successfully (list via resource_type: 'policy')"). It falls short of anchor 5 because pre-submission validation is asserted without a mechanism — "Validate Rego syntax before submitting" names no command or tool (e.g., an opa check equivalent), so the validate→fix→retry loop cannot actually be executed as written.

4 / 5

Progressive Disclosure

Good structure against the actual bundle: 17 reference files are each listed with a one-line description, all referenced paths exist on disk, and references are one level deep (rego-writing-guide.md does not chain further file links). The minor organization gap versus anchor 5 is that references/quality-tests.md exists in the bundle but is orphaned — never referenced from SKILL.md or any other file — so its content is undiscoverable through the documented navigation.

4 / 5

Total

16

/

20

Passed

Description

91%Weight 40%Scale 1-5

Based on the skill's description, can an agent find and select it at the right time? Clear, specific descriptions lead to better discovery.

A strong description: concrete, third-person capability statement with comprehensive entity coverage, an explicit 'Use when...' clause, and an extensive list of natural trigger phrases. The only weaknesses are a few generic trigger terms that could overlap with non-Harness compliance/security skills and a what-statement that omits verification/management capabilities the skill body demonstrates.

DimensionReasoningScore

Specificity

The description names the domain and several concrete actions — "Create OPA governance policies for Harness via MCP" and "Define policies that enforce compliance rules on pipelines, services, environments, feature flags, artifacts, code repositories, templates, SBOM" — with comprehensive entity coverage. It sits at 4 rather than 5 because the what-statement covers only create/define/enforce; capabilities the skill clearly performs (verify compliance results, manage policy sets, per the body) are not listed, and the anchor-5 example lists multiple distinct concrete actions.

4 / 5

Completeness

Both what ("Create OPA governance policies for Harness via MCP. Define policies that enforce compliance rules on...") and when ("Use when asked to create, write, fix, or explain an OPA policy... for any Harness entity. Trigger phrases: create policy, OPA policy, governance policy...") are answered explicitly with concrete trigger phrases, matching the anchor-5 example.

5 / 5

Trigger Term Quality

Trigger coverage is comprehensive with natural synonyms: "OPA policy, Rego rule, deny rule, governance policy, compliance rule, or policy-as-code", plus an explicit phrase list ("rego policy", "enforce policy", "supply chain governance"). These are exactly the phrases a user would say when needing this skill; no common variation is missing.

5 / 5

Distinctiveness Conflict Risk

The niche is clear and distinct (OPA governance policies for Harness via MCP, with Rego/deny-rule triggers that virtually no other skill would claim), but a few listed trigger phrases — "security policy", "compliance rule", "enforce policy" — are generic and could fire in non-Harness contexts. This is minor overlap risk with closely related security/compliance skills, matching anchor 4 rather than the minimal-conflict anchor 5.

4 / 5

Total

18

/

20

Passed

Validation

100%

Checks the skill against the spec for correct structure and formatting. All validation checks must pass before discovery and implementation can be scored.

Validation — 16 / 16 Passed

Validation for skill structure

No warnings or errors.

Repository

harness/harness-ai

Path

plugins/claude/skills/create-policy/SKILL.md

Reviewed

Table of Contents

Is this your skill?

If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.