pr-gates

GitHub

用于PR提交流程的预检与门禁控制。强制执行preflight检查,确保审查意见闭环,处理异步状态变更及迁移安全,提供标准化交接格式,保障代码质量与发布稳定性。

.agents/skills/pr-gates/SKILL.md spacedriveapp/spacebot

Trigger Scenarios

用户要求打开PR或准备审查 需要处理审查意见或运行门禁验证

Install

npx skills add spacedriveapp/spacebot --skill pr-gates -g -y
More Options

Non-standard path

npx skills add https://github.com/spacedriveapp/spacebot/tree/main/.agents/skills/pr-gates -g -y

Use without installing

npx skills use spacedriveapp/spacebot@pr-gates

指定 Agent (Claude Code)

npx skills add spacedriveapp/spacebot --skill pr-gates -a claude-code -g -y

安装 repo 全部 skill

npx skills add spacedriveapp/spacebot --all -g -y

预览 repo 内 skill

npx skills add spacedriveapp/spacebot --list

SKILL.md

Frontmatter
{
    "name": "pr-gates",
    "description": "This skill should be used when the user asks to \"open a PR\", \"prepare for review\", \"address review comments\", \"run gates\", or \"verify before pushing\" in this repository. Enforces preflight\/gate workflow, migration safety, and review-evidence closure."
}

PR Gates

Mandatory Flow

  1. Run just preflight before finalizing changes.
  2. Run just gate-pr before pushing or updating a PR.
  3. If the same command fails twice in one session, stop rerunning and switch to root-cause debugging.
  4. Do not push when any gate is red.

Review Feedback Closure

For every P1/P2 review finding, include all three:

  • Code change reference (file path and concise rationale)
  • Targeted verification command
  • Pass/fail evidence from that command

Async And Stateful Changes

When touching worker lifecycle, cancellation, retries, state transitions, or caches:

  • Document terminal states and allowed transitions.
  • Explicitly reason about race windows and idempotency.
  • Run targeted tests in addition to broad gate runs.
  • Capture the exact command proving the behavior.

Migration Safety

  • Never edit an existing file in migrations/.
  • Add a new timestamped migration for every schema change.
  • If a gate flags migration edits, stop and create a new migration file.

Handoff Format

  • Summary
  • Changed files
  • Gate commands executed
  • P1/P2 finding-to-evidence mapping
  • Residual risk

Version History

  • ac52277 Current 2026-07-05 14:56

Same Skill Collection

.agents/skills/async-state-safety/SKILL.md
.agents/skills/commit-all/SKILL.md
.agents/skills/messaging-adapter-parity/SKILL.md
.agents/skills/pr-slicer/SKILL.md
.agents/skills/prompt-review/SKILL.md
.agents/skills/provider-integration-checklist/SKILL.md
.agents/skills/release-bump-changelog/SKILL.md
.agents/skills/review-fix-loop/SKILL.md
.agents/skills/writing-guide/SKILL.md
skills/builtin/wiki-writing/SKILL.md

Metadata

Files
0
Version
ac52277
Hash
39246acb
Indexed
2026-07-05 14:56

Accueil - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-07-08 23:57
浙ICP备14020137号-1 $Carte des visiteurs$