Gh Merge PR
审查并合并单个 GitHub PR,读回落地结果、关闭对应 Issue、删除源分支并回收临时工作树。用于 current-head Review 或完整合入收尾;仅 Review 保持只读,裸分支转交 git-push-pr。
Install
npx skills add Dimon94/skills --skill gh-merge-prgit clone --depth 1 https://github.com/Dimon94/skills.git /tmp/skills
mkdir -p ~/.claude/skills
cp -r /tmp/skills/skills/gh-merge-pr ~/.claude/skills/gh-merge-prPersonal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.
From the SKILL.md
# GH Merge PR 负责一个 GitHub PR 从 current-head Review 到完整收尾。Review 只允许读取远端、 准备隔离 checkout 和生成报告。用户明确要求合并该 PR 时,执行落地及收尾;沿用会话中 已有授权,范围与完成条件归 [收尾合同](../git-rebase-main/references/closeout.md)。 ## 1. 绑定 Review Packet 读取 PR 身份、目标分支、head SHA、提交、diff、正文、关联 Spec、仓库标准、检查、 评审状态和未解决讨论: ```bash gh pr view <n> --json number,title,body,url,headRefOid,headRefName,headRepository,headRepositoryOwner,isCrossRepository,baseRefName,state,isDraft,mergeable,reviewDecision,statusCheckRollup,closingIssuesReferences ``` Fetch base 与 PR head,在隔离 checkout 中记录固定的三点 diff 命令和 commit list。 所有 Review SubAgent 必须收到同一个 Review Packet;缺失 PR 身份、不可解析的 base/head 或空 diff 立即阻断。head SHA 变化时重建 Packet,Review 结论不直接沿用。记录主工作区、 源分支与远端、本次创建的 Review 工作树和任务工作树,供收尾定位。 完成标准:Packet 能唯一标识 repo、PR、base、head、diff、Spec 与标准来源,收尾对象可定位。 ## Review 轮次 本 PR 的 Review 最多 3 轮,定义归 `code-review`;一轮包含主审和命中的专项。调用方已有相同 base 与 head 的 Review 结果时直接引用,不重跑。 head 变化时,修复提交按 `code-review` 的复审范围占下一轮。干净的 merge 不占轮:Packet 重建后沿用结论。改变语义的冲突解决占一轮;预算用尽时靠测试验证,并在报告里注明。R3 后仍有 blocker 时返回 `REVIEW_EXHAUSTED` 和未解决项,不进入落地。 ## 2. 固定主 Review 启动一个只读 SubAgent,让它对 Review Packet 调用 `code-review`。`code-review` 拥有 Standards 与 Spec 两轴及其内部 SubAgent 编排;本 Skill 只提供 fixed point、完整 diff、 commit list、Spec 和标准来源,不复制它的审查规则。 Standards 来源必须覆盖仓库的 Coding 与 Architecture 规则。Spec 缺失时沿用 `code-review` 的缺失处理,不伪造需求。主 Review 结束后再判断专项 Review,避免后续步骤 稀释固定主审。 完成标准:Standards 与 Spec 均有结果,或 Spec 明确报告 `no spec available`。 ## 3. 按证据启动专项 Review
Details
- Skill name
gh-merge-pr- Repository
- Dimon94/skills
- Path
skills/gh-merge-pr/SKILL.md- Repo updated
- 18 November 2026
FAQ
What does the Gh Merge PR skill do?
审查并合并单个 GitHub PR,读回落地结果、关闭对应 Issue、删除源分支并回收临时工作树。用于 current-head Review 或完整合入收尾;仅 Review 保持只读,裸分支转交 git-push-pr。
How do I install the Gh Merge PR skill?
skills CLI (Claude Code, Cursor, Codex and more): npx skills add Dimon94/skills --skill gh-merge-pr. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.
Is Gh Merge PR popular?
It lives in Dimon94/skills, which has 107 GitHub stars and 21 forks.
Related skills
Maintain Verification Skill
107Dimon94/skills
Periodic pass that keeps a project's verification skill and feature map honest: parallel source readers per feature, one live session driving every feature, at most one PR of proven corrections. Use for /maintain-verification-skill or "audit the verify skill".
Create Verification Skill
107Dimon94/skills
Generate a project-local verification skill that drives your app the way a user does — any language, framework, or platform. Use for /create-verification-skill, "make a control skill for this repo", or when a project has no scripted way to prove UI/CLI/service behavior.
How
107Dimon94/skills
Use for "how does X work", code walkthroughs before changing something, and placement / ownership / layering questions ("where should this live", "which package owns this", "is this the right layer"). Explains subsystem architecture, runtime flow, onboarding mental models. Use why for motivation.
Git Commit
107Dimon94/skills
Create narrow auditable local commits. Use when verified work must be staged and committed without absorbing unrelated changes.
Al PR Prepare
115javiarmesto/ALDC-AL-Development-Collection
Prepare a clean, documented pull request draft for AL features or fixes with summary, testing notes, and checklist.
Git Push PR
107Dimon94/skills
Push a verified branch and create or update exactly one GitHub pull request. Use when the user asks to 推送远程/建 PR/更新 PR and grants push authority. Read-only without explicit authority; never approves, merges, or closes issues.
Browse the most popular Claude skills, all git & code review skills, or write your own with the skills generator.