Token导航 LogoToken导航TokenDH.com
开发需要联网clawhub未标认证来源可访问clear审计提醒

merge-check合并检查

Agent Skill

merge-check 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 OpenClaw 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

22,002

周安装

926

GitHub Stars

公开资料未说明

下载量

7,704
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:merge-check(合并检查)
来源仓库:https://github.com/tag-assistant/merge-check
安装命令:
openclaw skills install merge-check
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install merge-check

简介

merge-check 分析 GitHub PR 的可合并性预测与技术债务评估。

  • 综合代码质量、测试覆盖率与团队流程因素给出建议。
  • 适用于开源项目贡献前的自助审查环节。merge-check 属于开发类 Skill,可作为该场景下的辅助能力补充。
  • 需配置 GitHub App 权限并限制仓库访问范围。
  • 结果仅供参考,最终决策应由维护者人工确认。

SKILL.md

name
merge-check
description
Analyze a GitHub pull request for mergeability — predict whether it will get merged based on technical, architectural, process, social, and compliance factors. Use when asked to review a PR, check if a PR will be merged, assess PR quality, or predict PR acceptance. Works with any GitHub PR via owner/repo#number or URL.

Merge Check

Predicts whether a GitHub PR will get merged by analyzing it against a comprehensive rejection vector taxonomy. Not a generic code quality tool — this answers: "Will this PR get merged by the maintainer?"

Quick Start

  1. Run the data gathering script:
   bash skills/merge-check/scripts/merge-check.sh owner/repo#123
   # or
   bash skills/merge-check/scripts/merge-check.sh https://github.com/owner/repo/pull/123
  1. Parse the JSON output
  2. Analyze against the dimensions below
  3. Produce the mergeability report

Analysis Dimensions

After gathering data, analyze across ALL of these dimensions. Load skills/merge-check/references/rejection-taxonomy.md for the detailed rejection vector framework.

1. Technical Signals (Automated Gates)

  • CI status: Are all checks passing? Any failed or pending?
  • Build status: Does it compile/build?
  • Coverage: Any coverage regression indicated?

2. PR Hygiene

  • Size (most predictive single factor):

- 🟢 <400 LOC changed — ideal, easy to review - 🟡 400–1000 LOC — risky, reviewer fatigue - 🔴 >1000 LOC — danger zone, likely to stall or get rejected

  • File spread: Concentrated in one area or scattered across directories?
  • Single concern: Does it do one thing, or is it a kitchen-sink PR?
  • Title & description: Clear, descriptive? Or vague/empty?
  • Linked issue: Does it reference an issue? (Signals intentionality)
  • Commit hygiene: Clean messages? Reasonable count? Squash-ready?

3. Architectural Fit

  • Pattern consistency: Does it follow repo conventions? (language, directory structure, naming)
  • Dependencies: New dependencies introduced? (High friction signal)
  • Scope creep: Does it touch things outside its stated purpose?
  • File types: Consistent with repo's tech stack?

4. Review Status

  • Approvals: Any already? How many required?
  • Changes requested: Outstanding and unaddressed? (Strong rejection signal)
  • Reviewer assignment: Are required reviewers assigned?
  • Review comment sentiment: Positive, neutral, or adversarial?
  • CODEOWNERS: Does the PR touch files with code owners? Are they reviewing?

5. Process Compliance

  • Draft status: Draft PRs won't merge
  • Blocking labels: WIP, do-not-merge, needs-work, etc.
  • PR template: Was it followed? (Empty template = red flag)
  • CLA/DCO: If repo requires it, is it signed?

6. Social/Meta Signals

  • Author merge history: What % of this author's recent PRs were merged in this repo?
  • Staleness: How long has it been open? (>2 weeks = concern, >30 days = likely abandoned)
  • Activity level: Recent comments/updates, or radio silence?
  • First-time contributor: Higher rejection rate for newcomers

Output Format

Produce a structured report:

Mergeability Score

  • 🟢 High (>80% likely to merge) — No blockers, reviews positive, CI green
  • 🟡 Medium (40–80%) — Some concerns but addressable
  • 🔴 Low (<40%) — Significant blockers present

Report Sections

  1. Mergeability Score: 🟢/🟡/🔴 with percentage estimate
  2. Risk Factors: Bullet list of specific concerns, ordered by severity
  3. Strengths: What's working in the PR's favor
  4. Recommendations: Actionable steps to improve mergeability (if not already 🟢)
  5. Verdict: One-sentence summary

Example Output

## PR Mergeability Report: owner/repo#123

**Score: 🟡 Medium (~55%)**

### Risk Factors
- ⚠️ 847 lines changed — approaching reviewer fatigue threshold
- ⚠️ Changes requested by @maintainer not yet addressed
- ⚠️ Touches 12 files across 6 directories — scattered scope
- ℹ️ No linked issue

### Strengths
- ✅ All 14 CI checks passing
- ✅ Clear title and detailed description
- ✅ Author has 73% merge rate in this repo (8/11 recent PRs)
- ✅ Active discussion — last update 2 hours ago

### Recommendations
1. Address @maintainer's review comments before requesting re-review
2. Consider splitting into smaller PRs (config changes vs logic changes)
3. Link the relevant issue for traceability

### Verdict
Solid PR with passing CI and an active author, but stalled on unaddressed review feedback — resolving those comments is the critical path to merge.

Script Reference

The script (scripts/merge-check.sh) gathers all data via gh CLI and outputs a single JSON object with these keys:

KeyContents
prFull PR metadata (title, body, author, state, draft, labels, reviewers)
filesList of changed files with patch stats
diff_statsTotal additions, deletions, changed files count
checksCI/check run results for the head commit
reviewsAll reviews (approved, changes_requested, commented)
review_commentsInline review comments
issue_commentsPR conversation comments
commitsCommit list with messages
repoRepository metadata (language, size, defaults)
author_historyAuthor's recent closed PRs and merge rate
has_codeownersBoolean
has_contributingBoolean

Error Handling

The script outputs "error" fields when individual API calls fail (e.g., rate limits, 404s). Analyze what's available and note any missing data in the report.

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

96.74%
按下载量换算7,453

安全审计

VirusTotal

可疑

ClawScan

可疑

Static analysis

未展示

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills