Token导航 LogoToken导航

Agent Skill · 开发

pre-merge(预合并)

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

pre-merge 是开发类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为需要联网;许可证为 MIT,第三方扫描已通过,按安装量在开发类的 21,746 个 Skill 里排第 7,502。

总安装 3,744周安装 150GitHub Stars 39下载 1,212核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT

安装方式

通过对话安装

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

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

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/bobmatnyc/claude-mpm-skills --skill pre-merge

这个 Skill 是做什么的

开发类 Skill 面向写代码、改代码和排查问题,一般会读写仓库文件,部分还会执行构建或测试命令。

pre-merge 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息。适合在 Codex、Claude、Cursor、Gemini CLI 中围绕仓库状态、代码变更或协作事项进行整理。通过 npx skills add 命令从指定 GitHub 仓库安装并使用。

安装前需确认权限范围和维护状态,注意可能触发联网、命令执行或文件读写操作。pre-merge 属于开发类 Skill,可作为该场景下的辅助能力补充。

来源仓库内路径:skills/pre-merge

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/bobmatnyc/claude-mpm-skills --skill pre-merge;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要需要联网,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

pre-merge 怎么安装?

在终端执行 npx skills add https://github.com/bobmatnyc/claude-mpm-skills --skill pre-merge。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

pre-merge 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

pre-merge 需要什么权限?

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

pre-merge 是免费的吗?

来源标注的许可证是 MIT。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

pre-merge 用的人多吗?

公开数据是累计安装 3,744 次,近一周安装 150 次,下载 1,212 次,GitHub 39 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

pre-merge 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 3 个目录同时收录,说明这个 Skill 流传比较广。
  • 许可证明确为 MIT,商用和分发边界好判断。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理开发类任务、又不想每次都手写提示词的人。
  • 需要许可证清楚、并且有第三方扫描结果的团队项目。

不太适合

  • 需要厂商级技术支持和 SLA 的生产系统。

开发类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
skill-vetter

技能审查员 · OpenClaw

8,779,018986操作浏览器MIT-0通过
ontology

本体论 · OpenClaw

6,636,960576只读MIT-0通过
entra-app-registration

内部应用程序注册 · Codex、Claude

6,631,872764接触敏感数据未明确通过
entra-app-registration

内部应用程序注册 · Codex、Claude

3,757,680201接触敏感数据未明确通过
nano-banana-pro

纳米香蕉专业版 · OpenClaw

3,526,898364接触敏感数据MIT-0有提醒
pre-merge

预合并 · 本页

3,74439需要联网MIT通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Pre-Merge Verification

Comprehensive verification workflow before merging changes to production.

When to Use This Skill

Use this skill when:

  • Creating a pull request for review
  • About to merge code to main/production branch
  • Need systematic verification checklist
  • Want to catch issues before code review

Pre-Commit Verification

Before committing code, verify:

  • Type checking passes (language-appropriate: tsc --noEmit, mypy, etc.)
  • Linting passes with no errors (ESLint, Pylint, etc.)
  • All existing tests pass locally
  • No console.log/debug statements left in code
  • Code follows project style guide
  • No commented-out code blocks

Commands by Language

TypeScript/JavaScript:

# Type check
npx tsc --noEmit

# Lint
npm run lint
# or: pnpm lint
# or: npx eslint .

# Tests
npm test
# or: pnpm test

Python:

# Type check
mypy src/

# Lint
pylint src/
# or: flake8 src/
# or: ruff check src/

# Tests
pytest
# or: python -m pytest

Go:

# Format check
gofmt -l .

# Lint
golangci-lint run

# Tests
go test ./...

Pre-PR Verification

Before creating a pull request, ensure:

Required Information

  • Changeset added for user-facing changes (if using changesets)
  • PR description is complete with:

- Summary of changes - Related ticket references (ENG-XXX, HEL-XXX, JIRA-XXX, etc.) - Screenshots for UI changes (desktop, tablet, mobile) - Breaking changes documented - Migration guide (if breaking changes)

  • New tests added for new functionality
  • Documentation updated if needed (README, API docs, etc.)

Security Checklist (if API changes)

  • Authentication required on protected routes
  • Authorization checks implemented
  • Input validation with schema (Zod, Pydantic, etc.)
  • No sensitive data in logs
  • No SQL injection vulnerabilities
  • No XSS vulnerabilities
  • Rate limiting considered

Database Changes (if schema changes)

  • Migration file created
  • Migration tested on local database
  • Migration tested on staging database
  • Down migration available (rollback plan)
  • No breaking changes without migration guide
  • Schema changes documented

UI Changes (if applicable)

  • Screenshots included:

- Desktop view (1920x1080) - Tablet view (768x1024) - Mobile view (375x667)

  • Responsive behavior verified
  • Accessibility checked (keyboard navigation, screen readers)
  • Loading states implemented
  • Error states implemented

Pre-Merge Verification

Before merging to main branch, confirm:

CI/CD Checks

  • All CI checks pass (lint, type-check, tests, build)
  • Code review approved by at least one reviewer
  • No TypeScript errors in changed files
  • No merge conflicts with target branch
  • Build succeeds without warnings

Functional Verification

  • Database migrations run successfully (if applicable)
  • No regression in existing functionality
  • Performance benchmarks within acceptable range
  • Manual testing completed for critical paths

Documentation

  • CHANGELOG.md updated (if using)
  • API documentation updated (if API changes)
  • README updated (if setup/usage changes)
  • Migration guide provided (if breaking changes)

PR Description Template

Use this template for comprehensive PR descriptions:

## Summary
[Brief description of what this PR does]

## Related Tickets
- Fixes #123
- Closes ENG-456
- Related to HEL-789

## Changes
- [ ] Feature: [Description]
- [ ] Bug Fix: [Description]
- [ ] Refactor: [Description]
- [ ] Documentation: [Description]

## Testing
### Unit Tests
- Added tests for [feature/function]
- Coverage: X%

### Manual Testing
- [ ] Tested on desktop (Chrome, Firefox, Safari)
- [ ] Tested on mobile (iOS Safari, Android Chrome)
- [ ] Tested edge cases: [list specific cases]

## Screenshots
### Desktop
![Desktop view](screenshot-url)

### Tablet
![Tablet view](screenshot-url)

### Mobile
![Mobile view](screenshot-url)

## Breaking Changes
[List any breaking changes or write "None"]

### Migration Guide
[If breaking changes, provide migration steps]

## Performance Impact
[Describe any performance implications or write "No impact"]

## Security Considerations
[Describe security implications or write "No security impact"]

## Rollback Plan
[Describe how to rollback if issues occur]

## Deployment Notes
[Any special deployment considerations or write "Standard deployment"]

Common Pitfalls to Avoid

Pre-Commit

  • ❌ Committing code with failing tests
  • ❌ Leaving console.log/debug statements
  • ❌ Committing without running type checker
  • ❌ Committing large blocks of commented code

Pre-PR

  • ❌ Creating PR without description
  • ❌ Missing screenshots for UI changes
  • ❌ Not linking to related tickets
  • ❌ Not documenting breaking changes
  • ❌ Missing test coverage for new code

Pre-Merge

  • ❌ Merging with failing CI checks
  • ❌ Merging without code review approval
  • ❌ Merging with merge conflicts
  • ❌ Merging without testing migrations
  • ❌ Merging without considering rollback plan

Quick Verification Script

Create a pre-commit verification script:

JavaScript/TypeScript (pre-commit.sh):

#!/bin/bash
set -e

echo "Running type check..."
npx tsc --noEmit

echo "Running linter..."
npm run lint

echo "Running tests..."
npm test -- --run

echo "✅ All checks passed!"

Python (pre-commit.sh):

#!/bin/bash
set -e

echo "Running type check..."
mypy src/

echo "Running linter..."
pylint src/

echo "Running tests..."
pytest

echo "✅ All checks passed!"

Make executable:

chmod +x pre-commit.sh

Automation with Git Hooks

Set up automatic pre-commit checks:

Using Husky (JavaScript/TypeScript)

npm install --save-dev husky
npx husky install
npx husky add .husky/pre-commit "npm run lint && npm test"

Using pre-commit (Python)

Create .pre-commit-config.yaml:

repos:
  - repo: local
    hooks:
      - id: type-check
        name: Type Check
        entry: mypy src/
        language: system
        pass_filenames: false
      - id: lint
        name: Lint
        entry: pylint src/
        language: system
        pass_filenames: false
      - id: test
        name: Test
        entry: pytest
        language: system
        pass_filenames: false

Install hooks:

pre-commit install

Success Criteria

Pre-Commit Success

  • ✅ All local checks pass
  • ✅ Code is formatted correctly
  • ✅ No debug statements remain
  • ✅ Tests pass locally

Pre-PR Success

  • ✅ PR description is comprehensive
  • ✅ All required information included
  • ✅ Screenshots attached (if UI changes)
  • ✅ Breaking changes documented

Pre-Merge Success

  • ✅ CI pipeline is green
  • ✅ Code review approved
  • ✅ No conflicts with target branch
  • ✅ Manual testing completed

Related Skills

  • universal-verification-screenshot - Screenshot verification for UI changes
  • universal-verification-bug-fix - Bug fix verification workflow
  • toolchains-universal-security-api-review - API security testing
  • universal-collaboration-git-workflow - Git workflow best practices

平台分布

Claude Code

25.82%
按下载量换算313

OpenCode

23.44%
按下载量换算284

Codex

16.11%
按下载量换算195

Gemini CLI

12.88%
按下载量换算156

Antigravity

7.04%
按下载量换算85

Cursor

3.32%
按下载量换算40

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

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

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

继续浏览同类 Skills