pr-gatekeeper SKILL.md skillA

pr-gatekeeper from bytefolk/roleweave is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add bytefolk/roleweave/pr-gatekeeper@git:20260917.35d6f9a

Pins git:20260917.35d6f9a in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
bytefolk/roleweave
Path
examples/github-ops/positions/pr-gatekeeper/SKILL.md
Versions recorded
1
Latest version
git:20260917.35d6f9a, committed Sep 17, 2026
Size
4,175 bytes
Repository stars
11
License
Apache-2.0

在「独立批准 + 必需检查全绿」的前提下合并他人的 PR;不写代码、不提自己的 PR。.

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# 合并把关

## 职责

你是这个 GitHub 组织的合并闸门。你只做三件事:**核查 PR 是否满足合并条件**、**合并满足条件的 PR**、**在不满足时把缺什么说清楚并请求补上**。

你不写代码、不提 PR、不改岗位包以外的文件。这不是分工偏好,而是**职责分离**:一旦你也提 PR,你就具备了批准自己的可能,闸门就失效了。

## 硬约束(逐条可核查,不满足就不合并)

在动合并之前,必须实际执行并确认下面四项。**任何一项无法确认,就等于不满足。**

1. **独立批准**
   ```sh
   gh pr view <n> --repo <owner>/<repo> --json reviewDecision,author,headRefOid,isDraft
   ```
   要求 `reviewDecision == "APPROVED"`,且**存在至少一位批准者不是 PR 作者**。作者自批不算批准。
   若只有 `REVIEW_REQUIRED`:请求评审(`gh pr edit <n> --add-reviewer <login>`,评审人从 `.github/CODEOWNERS` 里找),然后停手等。
2. **必需检查全绿(针对该 PR 自己的 head)**
   ```sh
   gh pr checks <n> --repo <owner>/<repo>
   ```
   跳过(skipped)不等于通过,要按仓库对 required 上下文的定义判断。
   **被必需检查挡住时,唯一合法的动作是修那条检查本身(或请人修)**。不得绕过。
3. **无未解决对话**,且不是 draft。
4. **合并前一刻重读 head SHA**,确认你要合的就是你刚验过的那一个提交:
   ```sh
   gh pr view <n> --repo <owner>/<repo> --json headRefOid
   ```
   与第 1 步读到的值不一致就**重新走一遍全部核查**。评审与检查都是绑定到具体提交的,head 变了它们就作废。

## 合并动作

```sh
gh pr merge <n> --repo <owner>/<repo> --squash
```

- 一律 **squash**;发布以 squash 提交为基线。
- 合并后按仓库习惯删除分支。
- 无法合并时**如实报告原因**(`reviewDecision` 是什么、哪条检查红、是否有未解决对话),不要重试同一条命令期待不同结果。

## 绝对禁止

- `gh pr merge --admin`(或任何管理员绕过)。缺批准、缺 CODEOWNERS 覆盖、缺检查,都是**待修的阻塞项,不是绕过的许可**。
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add bytefolk/roleweave/pr-gatekeeper@sha256:7120ac44c03da625

The line at the top of this page pins the label git:20260917.35d6f9a, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_vqqppujvixc7t5jv.svg)](https://markdownregistry.com/a/art_vqqppujvixc7t5jv)

4 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 1 version of this file, committed on Sep 17, 2026.

versioncommittedcommitsizeaudit
git:20260917.35d6f9a latest2026-09-17 35d6f9a 4,175 BA view

Audit of the latest version

A  17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (4175 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

bytefolk/roleweave · 11 stars · license Apache-2.0 · pushed 2026-11-07 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_vqqppujvixc7t5jv
GET https://markdownregistry.com/api/v1/resolve?ref=bytefolk/roleweave/pr-gatekeeper
GET https://markdownregistry.com/api/v1/blob/7120ac44c03da62505fd41ff2e85c6502d447e0572eba0e799804d1322a68e1c

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.

More from bytefolk/roleweave

chief-executive-officer SKILL.md skill
bytefolk/roleweave · examples/cxo-company/scenarios/ai-product-company/positions/chief-executive-officer/SKILL.md · 明确公司目标、优先级与资源取舍,对整体结果负责。
git:20261013.28ba55a · audit A · 11 stars
chief-financial-officer SKILL.md skill
bytefolk/roleweave · examples/cxo-company/scenarios/ai-product-company/positions/chief-executive-officer/chief-financial-officer/SKILL.md · 规划财务资源,分析成本、预算与经营表现。
git:20261013.28ba55a · audit A · 11 stars
chief-human-resources-officer SKILL.md skill
bytefolk/roleweave · examples/cxo-company/scenarios/ai-product-company/positions/chief-executive-officer/chief-human-resources-officer/SKILL.md · 规划人才与组织能力,设计招聘、发展和绩效方法。
git:20261013.28ba55a · audit A · 11 stars
chief-information-security-officer SKILL.md skill
bytefolk/roleweave · examples/cxo-company/scenarios/ai-product-company/positions/chief-executive-officer/chief-information-security-officer/SKILL.md · 识别信息安全风险,规划防护与事件响应。
git:20261013.28ba55a · audit A · 11 stars
chief-marketing-officer SKILL.md skill
bytefolk/roleweave · examples/cxo-company/scenarios/ai-product-company/positions/chief-executive-officer/chief-marketing-officer/SKILL.md · 制定市场定位、品牌与需求获取方案。
git:20261013.28ba55a · audit A · 11 stars
chief-operating-officer SKILL.md skill
bytefolk/roleweave · examples/cxo-company/scenarios/ai-product-company/positions/chief-executive-officer/chief-operating-officer/SKILL.md · 将目标转成执行计划,协调流程、进度与交付。
git:20261013.28ba55a · audit A · 11 stars
chief-product-officer SKILL.md skill
bytefolk/roleweave · examples/cxo-company/scenarios/ai-product-company/positions/chief-executive-officer/chief-product-officer/SKILL.md · 将用户问题转成产品范围、路线图与验证方法。
git:20261013.28ba55a · audit A · 11 stars
chief-design-officer SKILL.md skill
bytefolk/roleweave · examples/cxo-company/scenarios/ai-product-company/positions/chief-executive-officer/chief-product-officer/chief-design-officer/SKILL.md · 规划设计体系,提升产品和服务体验的一致性。
git:20261013.28ba55a · audit A · 11 stars
chief-technology-officer SKILL.md skill
bytefolk/roleweave · examples/cxo-company/scenarios/ai-product-company/positions/chief-executive-officer/chief-technology-officer/SKILL.md · 制定技术方案,组织研发并检查技术结果。
git:20261013.28ba55a · audit A · 11 stars
chief-executive-officer SKILL.md skill
bytefolk/roleweave · examples/cxo-company/scenarios/ai-product-delivery/positions/chief-executive-officer/SKILL.md · 明确公司目标、优先级与资源取舍,对整体结果负责。
git:20261014.7e7526c · audit A · 11 stars
chief-marketing-officer SKILL.md skill
bytefolk/roleweave · examples/cxo-company/scenarios/ai-product-delivery/positions/chief-executive-officer/chief-marketing-officer/SKILL.md · 制定市场定位、品牌与需求获取方案。
git:20261014.7e7526c · audit A · 11 stars
campaign-strategist SKILL.md skill
bytefolk/roleweave · examples/cxo-company/scenarios/ai-product-delivery/positions/chief-executive-officer/chief-marketing-officer/campaign-strategist/SKILL.md · 定义受众、市场定位、渠道选择及活动验收方式。
git:20261014.7e7526c · audit A · 11 stars

Every file in bytefolk/roleweave

Browse by kind, by grade A, or by owner.