Gh Merge Pr logo

Gh Merge Pr

Community
Dimon94
gh-merge-pr

审查并在独立授权后合并一个 GitHub PR。用于单 PR 的 current-head SubAgent Review、按证据调用专项 Review、落地与 parity readback;裸分支或缺失 PR 转交 git-push-pr。

Overview

PublisherDimon94
Repositoryskills
Skill namegh-merge-pr
Stars
107
Forks
21
Bundled files
Instructions only
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by Dimon94 on GitHub. Read the source before you install it.

Installation

Install the Gh Merge Pr AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/Dimon94/skills/tree/main/skills/gh-merge-pr
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git 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-pr
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Gh Merge Pr in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Gh Merge Pr on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Gh Merge Pr is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

GH Merge PR

负责一个 GitHub PR 从 current-head Review 到落地读回。Review 只允许读取远端、 准备隔离 checkout 和生成报告;合并与 issue closeout 分别需要点名目标的新授权。

1. 绑定 Review Packet

读取 PR 身份、目标分支、head SHA、提交、diff、正文、关联 Spec、仓库标准、检查、 评审状态和未解决讨论:

bash
gh pr view <n> --json number,title,body,url,headRefOid,headRefName,baseRefName,state,isDraft,mergeable,reviewDecision,statusCheckRollup

Fetch base 与 PR head,在隔离 checkout 中记录固定的三点 diff 命令和 commit list。 所有 Review SubAgent 必须收到同一个 Review Packet;缺失 PR 身份、不可解析的 base/head 或空 diff 立即阻断。head SHA 变化会使整个 Packet 及其 Review 结果失效。

完成标准:Packet 能唯一标识 repo、PR、base、head、diff、Spec 与标准来源。

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

只根据用户请求、Spec、changed paths 和主 Review finding 选择专项。每个命中的 Skill 使用独立只读 SubAgent,并绑定同一 Review Packet:

Skill触发证据
complexity-optimizer明确性能目标,或 diff 命中嵌套扫描、N+1、渲染重算、大数据或热点路径;只审 diff 与直接调用链
thermo-nuclear-code-quality-review用户明确要求严格可维护性审查,或主 Review 发现重大结构风险
better-interface用户明确要求完整界面 Review;其内部领域编排仍由该 Skill 拥有
vercel-react-best-practicesdiff 改变 React/Next.js 渲染、数据获取或 bundle 行为
supabase-postgres-best-practicesdiff 改变 Postgres/Supabase 查询、schema、RLS 或连接配置
blast-radiusdiff 命中共享库/公开接口、DB schema、wire format、feature flag 或跨语言数据读者;用户明确要求爆炸半径分析;或主 Review 发现小 diff 外部影响不明

只读约束指不修改产品文件;blast-radius 允许执行取证脚本与测试来证明安全事实, 产出只能是报告与证据,不得 stage、commit 或改动产品代码。

PR 若来自 productionize-app-with-services,把它的计划、Quality Bar、迁移审计和验证证据 作为 Spec 输入;Review 阶段只消费这些证据。

未命中时记录 Specialist Review: none。命中但 Skill 不可用时记录 Review gap;所选专项 未完成前不得进入落地。

完成标准:每个触发证据都有一个所选 Skill 或明确 Review gap,没有无证据的专项调用。

4. 汇总 current-head Verdict

保留主 Review 的 Standards/Spec 分离结果,并把每个专项报告放在独立小节。不要让专项 结论覆盖主 Review,也不要把不同轴重新排序成一个分数。

Provider 状态只作证据:reviewDecision、检查、mergeability 和未解决讨论必须分别读取。 以下条件全部成立才得到 REVIEWED:

  • 主 Review 完成且无未解决 blocker;
  • 每个所选专项完成且无未解决 blocker;
  • 必需检查终态成功,讨论已解决,PR 可合并;
  • PR head 仍等于 Review Packet 的 head SHA。

任一状态 pending、unknown、failed 或不一致都返回 BLOCKED 和恢复动作。Review 阶段不 修改产品文件,不 stage、commit、push、approve、merge 或变更 issue。

完成标准:Verdict 绑定 current head,且每个 blocker、gap 和 provider gate 都有证据。

5. 落地

落地需要新授权点名 PR 与目标分支。

  1. 重读 head SHA;变化则回到第 1 步。
  2. 使用用户指定的策略执行 gh pr merge <n>;未指定时使用 --merge。
  3. branch protection 或 merge queue 拒绝时保持 BLOCKED;只有用户明确授权才可使用 --admin 绕过保护。

完成标准:Provider 返回 MERGED 与 merge SHA。

6. Parity readback

分别读回并确认:

  • PR 为 MERGED 且具有 merge SHA;
  • git fetch origin <target> 后 remote target 包含 merge SHA;
  • 本地 main 通过 git pull --ff-only 到达相同 SHA,active worktree 保持 clean;
  • 最小 post-merge check 通过。

任一 SHA 缺失或不一致都保持 BLOCKED,即使 Provider 已显示 merged。

完成标准:Provider、remote target、本地 target 与 active worktree parity 成立。

7. Issue closeout

只处理 PR 正文以 Closes #n 点名且 close authority 覆盖的 direct issue。Parent、sibling、 blocker 和其他关联 issue 只读回,不递归关闭。每次变更后再次读回 closed state。

完成标准:每个获授权 direct issue 都有 mutation 与 closed-state readback;其他 issue 未变。

8. 报告

报告 Review Packet 的 base/head、主 Review、专项选择及原因、Verdict、merge SHA、parity 证据、closed issues、未运行检查和剩余风险。

Review finding 中的已确认产品缺陷转调试流程;需求或产品意图缺口转新 issue。本 Skill 不修复产品代码。发生真实 merge/rebase conflict 时调用 resolving-merge-conflicts。

Frequently asked questions

What does the Gh Merge Pr AI skill do?

审查并在独立授权后合并一个 GitHub PR。用于单 PR 的 current-head SubAgent Review、按证据调用专项 Review、落地与 parity readback;裸分支或缺失 PR 转交 git-push-pr。

Why use Gh Merge Pr on TypingMind?

Because you install it once and use it with any model. Gh Merge Pr is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Gh Merge Pr in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/Dimon94/skills/tree/main/skills/gh-merge-pr. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Gh Merge Pr?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Gh Merge Pr?

As many as you like. As long as a model supports skills, you can use Gh Merge Pr with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Gh Merge Pr AI skill free?

It is published on GitHub by Dimon94. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇