一键导入
review-gates
Review Round 1 - Check CI/CD status, automated checks, and existing reviewer comments before diving into code
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Review Round 1 - Check CI/CD status, automated checks, and existing reviewer comments before diving into code
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Weekly backlog audit — field completeness, staleness tiers, and duplicate detection. Run during grooming to clean up the backlog.
Creates a JIRA Bug with steps to reproduce, expected/actual behavior, and fix criteria. Activates when users ask to create a bug report, file a bug, or report an issue.
Creates a JIRA Epic with scope, success criteria, and child story breakdown. Activates when users ask to create an epic.
Creates a JIRA Story with user story format, acceptance criteria, and technical notes. Activates when users ask to create a story or user story.
Creates a JIRA Task for tech debt, infrastructure, documentation, or spike work. Activates when users ask to create a task, spike, tech debt ticket, or infrastructure work.
Daily briefing — sprint progress, new tickets, and recent comments in one report. Run this to get oriented at the start of the day.
| name | review-gates |
| description | Review Round 1 - Check CI/CD status, automated checks, and existing reviewer comments before diving into code |
| allowed-tools | Bash |
| argument-hint | ["PR-URL-or-number"] |
| disable-model-invocation | true |
Check whether the PR passes its automated gates before any human review effort.
Cognitive frame: "Does this even build?"
$1 (optional): PR URL, number, or omit to auto-detect current branch's PRgh pr view ${1:+$1} --json number,title,state,author,baseRefName,headRefName,additions,deletions,changedFiles,reviewDecision,statusCheckRollup,url 2>/dev/null
If no PR found, inform the user and suggest gh pr list.
gh pr checks ${1:+$1} 2>/dev/null
Evaluate:
If any checks are failing, stop here. That is the review. Do not proceed to design or correctness rounds. The author needs to fix CI first.
# Inline review comments
gh api repos/{owner}/{repo}/pulls/{number}/comments --jq '.[] | "[\(.user.login)] \(.path):\(.line // .original_line) — \(.body)"' 2>/dev/null
# Top-level review comments
gh api repos/{owner}/{repo}/pulls/{number}/reviews --jq '.[] | "[\(.user.login)] \(.state): \(.body)"' 2>/dev/null
Build a list of issues already raised by other reviewers. These will be excluded from later rounds to avoid duplicating feedback.
gh api user --jq '.login' 2>/dev/null
### Round 1: Gates
#### CI/CD Status
| Check | Status |
|-------------|---------|
| [check-name]| PASS / FAIL / PENDING |
[If any checks are failing, call them out and recommend the author fix CI before requesting review]
#### Existing Feedback
- [count] comments from other reviewers
- Key issues already raised: [brief summary]
#### Review Mode
- [Self-review / External review]
- PR Size: +[additions] / -[deletions] across [changedFiles] files
#### Gate Result: PASS / FAIL
[If FAIL: "CI is failing. Fix automated checks before proceeding with code review."]
[If PASS: "All gates clear. Proceed to design review."]