regalrego

Analyzes Rego policy files for style, correctness, and maintainability issues before a policy package is promoted.

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "regalrego" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-bbbe104071ea408d8f2a0229b1fe6b5ff433d65c2bd1b5b1c70a8917dd6b49d0. Verify the upstream source and version against https://skillhub.cn/skills/user_3c6cb52e/lint-rego-policies-before-promotion-with-regal before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

skillhub.cn

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

Analyzes Rego policy files for style, correctness, and maintainability issues before a policy package is promoted.

0 Downloads

Introduction source: third_party · user_3c6cb52e · 1.0.0 Reference

SkillPi interpretation

Tasks
Translation pending; see source documentation.
Audience
Not specified in the source documentation.
Inputs and outputs
Not specified in the source documentation.
Software, accounts and paid services
Regal, Rego policy files, OPA-compatible policy repository
Limits and differences
Not specified in the source documentation.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: "在推广前使用 Regal 检查 Rego 策略"
slug: "lint-rego-policies-before-promotion-with-regal"
version: "1.0.0"
displayName: "在推广前使用 Regal 检查 Rego 策略"
summary: "在策略包被提升之前,分析Rego策略文件的样式、正确性和可维护性问题。"
license: "MIT"
description: "在策略包被提升之前,分析Rego策略文件的样式、正确性和可维护性问题。"
github_stars: 373
verification: "security_reviewed"
source: "https://github.com/1991513ccie-png/skills"
author: "1991513ccie-png"
publisher_type: "individual"
category: "Security & Verification"
framework: "Multi-Framework"
tool_ecosystem:
  github_repo: "1991513ccie-png/skills"
  github_stars: 373

在推广前使用 Regal 检查 Rego 策略

Analyze Rego policy files for style, correctness, and maintainability issues before policy bundles are promoted.

Prerequisites

Regal, Rego policy files, OPA-compatible policy repository

Installation

Use the upstream install or setup path that matches your environment:

  • brew install regal
  • docker pull ghcr.io/open-policy-agent/regal:latest

Requirements and caveats from upstream:

  • Docker
  • page, and published Docker images at the packages

Basic usage or getting-started notes:

Documentation

Current listing version

1.0.0

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value72/100

Highlights

  • 针对 Rego/OPA 生态提供策略质量检查功能,解决策略上线前的质量保障痛点
  • 面向明确的技术用户群体,在安全策略管理场景中具有实用价值
Trigger Precision65/100

Areas to improve

  • 触发条件不够具体 Reported severity: Minor

    description 描述了功能目标但未说明具体触发方式和条件

    Recommendation: 补充具体的触发命令格式或使用场景示例,如 '当用户输入 regal lint <policy-file> 时触发'

Highlights

  • 触发词基本清晰,能准确指向 Rego 策略检查场景
Structure and Standards45/100

Areas to improve

  • 缺少 When to Use 和具体示例 Reported severity: Major

    文档缺少关键的使用说明章节和端到端示例

    Recommendation: 添加 When to Use 章节说明适用场景,并提供完整的 Rego 文件检查示例

  • Installation 部分内容混乱 Reported severity: Minor

    Installation 章节存在重复链接、格式错误和内容组织混乱

    Recommendation: 清理 Installation 内容,按平台清晰组织安装命令,移除重复信息

Execution Reliability60/100

Areas to improve

  • 异常处理覆盖不足 Reported severity: Minor

    未说明常见错误情况的处理方法

    Recommendation: 补充 Regal 安装失败、文件路径错误、检查失败等常见异常的处理建议

Highlights

  • 工具来源明确,提供了多种官方安装方式
  • 基础执行流程清晰,使用标准 Regal 工具
Evidence Verifiability (mean of the first four)61/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

  • Install or fetch external dependencies

    Use official sources and pin versions. Check install scripts in an isolated environment. This document check does not cover code downloaded later.

    Mentioned in main document · lines 32
Domains or addresses referenced in the document

These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.

  • github.com
  • raw.githubusercontent.com
  • www.openpolicyagent.org

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Regal, Rego policy files, OPA-compatible policy repository

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.