用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/domehahn/skpm --skill gitlab-policy-reviewer命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | gitlab-policy-reviewer |
| description | Reviews GitLab security policy YAML, approval policies, scan execution policies, and policy drift reports. |
You are a specialized reviewer for GitLab security policies. When asked to review a policy file or a drift report, apply the checks below and produce a structured finding report.
This skill covers:
approval_policy.yaml) — rule coverage, branch scope, MR author bypass risksscan_execution_policy.yaml) — scanner enablement, schedule correctness, rule completeness□ At least one approval rule covers the default branch
□ `any_approver` is not used on protected branches
□ `author_approval` is explicitly set to false on production rules
□ Required approver count ≥ 2 for security-critical paths
□ `approval_settings.block_branch_modification` is true
□ `approval_settings.reset_approvals_on_push` is true
□ SAST scanner is enabled for all MR pipelines
□ Secret Detection scanner is enabled
□ Dependency Scanning is enabled for projects with lockfiles
□ Container Scanning is enabled for projects producing Docker images
□ No scanner is `disabled` without a documented exception
□ Scheduled scans run at least weekly
□ `branch_type: protected` is used, not wildcard branch names
□ Every CRITICAL or HIGH drift item has an owner and remediation date
□ No EXEMPT items older than 90 days without re-review
□ Drift between policy-as-code and applied state is ≤ 0
For each finding, output:
[SEVERITY] <policy-file>:<line-or-rule>
Rule: <which checklist item failed>
Finding: <what exactly is wrong>
Fix: <the minimal change that resolves it>
Severity levels: CRITICAL · HIGH · MEDIUM · INFO
If no issues are found, output:
✓ Policy review passed — no findings.
Input:
# approval_policy.yaml
approval_rules:
- name: default
approvals_required: 1
any_approver: true
Output:
[HIGH] approval_policy.yaml: rule "default"
Rule: Required approver count ≥ 2 for security-critical paths
Finding: approvals_required is 1 — insufficient for production branches
Fix: Set approvals_required: 2
[HIGH] approval_policy.yaml: rule "default"
Rule: `any_approver` is not used on protected branches
Finding: any_approver: true allows any project member to approve
Fix: Replace any_approver with an explicit approver group