Token导航 LogoToken导航TokenDH.com
待分类只读github未标认证来源可访问许可证需确认审计提醒

git-merge-expertgit 合并专家

Agent Skill

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

总安装

1,513

周安装

65

GitHub Stars

公开资料未说明

下载量

530
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/ulpi-io/skills --skill git-merge-expert

简介

git-merge-expert 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中管理复杂协作流程。

  • 适用于高级 Git 操作支持、合并策略制定或团队协作优化场景。
  • 通过安装命令集成,具体用法需结合原始 README 进一步验证。
  • 涉及写入操作时应严格校验权限,防止误改或越权访问。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

Non-negotiable rules:

  1. Check merge readiness before merging: branch state, CI, reviews, and conflict risk.
  2. Create a backup point before non-trivial merges or destructive recovery.
  3. Validate after merging before declaring success.
  4. Prefer isolated worktree execution for risky or explicitly isolated merges.
  5. Get explicit user confirmation before destructive rollback or branch cleanup.

Git Merge Expert

Inputs

  • $request: PR number, source branch, target branch, merge method, rollback target, or conflict-resolution goal

Goal

Perform safe git merges by:

  • assessing readiness and merge method
  • isolating risk when needed
  • resolving conflicts without dropping intent
  • validating the result
  • cleaning up or rolling back safely

Step 0: Resolve the requested merge operation

Determine whether the user wants to:

  • merge a PR
  • merge one branch into another
  • resolve conflicts from an in-progress merge
  • assess merge readiness before executing
  • roll back a bad merge
  • clean up merged branches

If the requested scope, merge method, or cleanup behavior is ambiguous, use AskUserQuestion before mutating git state.

Success criteria: The source, target, merge method, and cleanup expectations are explicit.

Step 1: Assess readiness and choose the execution mode

Inspect:

  • current branch and working tree state
  • source and target branch topology
  • PR readiness when applicable
  • CI and review status when applicable
  • conflict likelihood

Then choose whether to:

  • proceed inline for a straightforward merge
  • route to git-merge-expert-worktree for isolated execution

Prefer the worktree specialist when:

  • the user explicitly asks for worktree isolation
  • the merge is risky or multi-step
  • cleanup/retry safety matters more than speed

Load references/merge-strategies.md for merge-method and readiness rules.

Success criteria: The merge is either blocked, approved for inline execution, or redirected to the worktree specialist.

Step 2: Create a backup point and perform the merge

Before non-trivial merges or destructive rollback, create a backup reference such as a tag.

Then perform the requested operation:

  • PR merge via gh when appropriate
  • branch merge with the selected strategy
  • conflict resolution for an in-progress merge

Rules:

  • do not merge with failing CI unless the user explicitly wants to override
  • do not silently drop either side of a conflict
  • regenerate lockfiles instead of hand-editing them
  • use the smallest safe merge method that matches the request

Load references/conflict-and-rollback.md for conflict tiers and recovery patterns.

Success criteria: The merge or conflict-resolution step is complete and git state is coherent.

Step 3: Validate before cleanup or push

Validate the result with the narrowest relevant checks:

  • git status
  • conflict-free state
  • build/test/typecheck commands when appropriate
  • branch topology inspection

Rules:

  • do not claim success if unresolved conflicts or failing validation remain
  • stop and recover before cleanup or push when validation fails
  • if rollback is needed, use the recovery guidance instead of improvising

Success criteria: The merge result is validated or the failure state is clearly identified.

Step 4: Report, clean up, or roll back safely

Depending on the result:

  • report the merge outcome
  • comment on the PR if needed
  • clean up merged branches conservatively
  • roll back using the safest method for the branch type

Rules:

  • prefer git revert over git reset on shared branches
  • do not delete branches unless they are confirmed merged or the user explicitly asked
  • warn before destructive cleanup or force-push operations
  • if the merge was delegated to the worktree specialist, report that routing clearly

Load references/conflict-and-rollback.md for rollback and cleanup rules.

Success criteria: The user can see the outcome, any cleanup performed, and the remaining git state.

Guardrails

  • Do not let the model invoke this skill proactively; it mutates git history and branch state.
  • Do not add context: fork; if isolation is needed, use the worktree specialist instead.
  • Do not add paths:; this is a generic git workflow skill.
  • Do not keep giant examples, command encyclopedias, or long failure catalogs inline in SKILL.md.
  • Do not merge with unresolved conflicts.
  • Do not delete user branches or force-push shared branches without explicit approval.

When To Load References

  • references/merge-expertise.md Use at session start for role and domain expertise.
  • references/merge-strategies.md Use for merge-method selection, PR readiness checks, GitHub CLI usage, and when to route to the worktree specialist.
  • references/conflict-and-rollback.md Use for conflict tiers, lockfile handling, rollback choices, and cleanup rules.

Output Contract

Report:

  1. the requested merge or rollback operation
  2. the chosen execution mode and merge strategy
  3. the readiness/validation status
  4. any conflicts resolved, backup refs created, or rollback actions taken
  5. the final git state and any cleanup performed

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

34.44%
按下载量换算183

Claude

28.16%
按下载量换算149

Cursor

18.89%
按下载量换算100

Gemini CLI

8.95%
按下载量换算47

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

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

来源信息

继续浏览同类 Skills