Token导航 LogoToken导航

Agent Skill · 研究检索

git-merge-expert-worktree(git 合并专家工作树)

git-merge-expert-worktree 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

git-merge-expert-worktree 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为只读;许可证信息还不明确,第三方扫描有提醒项,按安装量在研究检索类的 73,675 个 Skill 里排第 39,790。

总安装 1,364周安装 58GitHub Stars 公开资料未说明下载 478核验 2026-05-01

安装说明

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

安装方式

通过对话安装

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

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

命令行安装

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

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

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

git-merge-expert-worktree 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中按条件快速定位目标内容。适用于多分支环境下的信息筛选、线索匹配或工作流支持场景。通过安装命令从指定仓库添加,实际功能依赖原始文档说明。

使用时应关注权限控制,注意是否涉及系统调用或数据访问。适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

来源仓库内路径:skills/git-merge-expert-worktree

上手步骤

4 步
  1. 1

    确认自己的宿主工具

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

  2. 2

    拿到安装命令

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

  3. 3

    安装后重启宿主

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

  4. 4

    按最小权限试用

    它标注为只读,先用只读任务试一次,确认行为符合预期再扩大使用范围。

常见问题

6 条

git-merge-expert-worktree 怎么安装?

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

git-merge-expert-worktree 支持哪些 AI 工具?

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

git-merge-expert-worktree 需要什么权限?

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

git-merge-expert-worktree 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

git-merge-expert-worktree 用的人多吗?

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

git-merge-expert-worktree 安全吗?

第三方扫描有提醒项,说明存在需要人工确认的行为。安装前请打开源码看清它读了什么、联网到哪里。

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

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 标注为只读权限,试用阶段不容易误改本地文件。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。
  • 只想先试试效果、不希望它改动本地文件的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

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

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
git-merge-expert-worktree

git 合并专家工作树 · 本页

1,364—只读未明确有提醒

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

SKILL.md 原文

Non-negotiable rules:

  1. Start by listing existing worktrees and identifying the current worktree context.
  2. Keep merge operations isolated from the main working tree whenever a worktree is being used.
  3. Use git worktree remove, not rm -rf, for normal cleanup.
  4. Never delete non-ephemeral branches automatically.
  5. Get explicit user confirmation before force-removing dirty worktrees or performing ambiguous branch cleanup.

Git Merge Expert — Worktree Specialist

Inputs

  • $request: Merge target, source branch, worktree name, cleanup task, or conflict-resolution goal

Goal

Perform safe worktree-based git operations by:

  • discovering existing worktrees and current context
  • creating or selecting the right isolated workspace
  • doing merge/conflict work in the worktree
  • validating the result before integration
  • cleaning up worktrees and ephemeral branches correctly

Step 0: Resolve the requested operation

Determine whether the user wants to:

  • create a worktree
  • perform a merge in a worktree
  • resolve merge conflicts in a worktree
  • validate an existing worktree merge
  • clean up stale or finished worktrees

If the requested source/target branches or cleanup scope are ambiguous, use AskUserQuestion before mutating git state.

Success criteria: The intended worktree action, branch scope, and cleanup expectations are explicit.

Step 1: Discover current worktree state

Before creating or removing anything, inspect:

  • git worktree list
  • current repository root
  • current branch and working tree state
  • whether the target branch is already checked out in another worktree

Load references/worktree-conventions.md for path, naming, and lifecycle rules.

Rules:

  • always list worktrees first
  • verify whether you are already inside a linked worktree or the main tree
  • do not attempt to check out the same branch in two worktrees

Success criteria: Existing worktrees, branch occupancy, and current context are known.

Step 2: Create or prepare the isolated worktree

Create or reuse the right worktree for the task.

Typical decisions:

  • managed worktree path vs sibling-path worktree
  • ephemeral session branch vs existing branch
  • setup needs such as dependency install, symlinks, or env-file propagation

Load references/worktree-conventions.md for path and branch conventions.

Rules:

  • prefer isolated worktrees over doing merge work in the main tree
  • verify creation with git worktree list
  • only run setup steps that make sense for the detected project

Success criteria: The worktree exists, is on the intended branch, and is ready for merge work.

Step 3: Perform the merge or conflict operation in the worktree

Inside the worktree:

  • create a backup tag when appropriate
  • run the merge, rebase, cherry-pick, or cleanup operation requested
  • resolve conflicts carefully without silently dropping either side

Load references/merge-playbook.md for:

  • conflict tiers
  • lockfile handling
  • abort-and-recreate recovery
  • stale-worktree cleanup patterns

Rules:

  • do not merge in the main tree if the user asked for worktree isolation
  • regenerate conflicted lockfiles rather than hand-editing them
  • abort and recreate the worktree when recovery is cleaner than patching a broken merge state

Success criteria: The git operation is complete in the worktree and the result is coherent.

Step 4: Validate before final integration

Validate the worktree result with the narrowest relevant checks:

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

Rules:

  • do not claim merge success if unresolved conflicts or failing validation remain
  • keep validation scoped to the project/tooling reality
  • if validation fails, stop or recover before cleanup/push

Success criteria: The worktree result is clean enough to integrate or push.

Step 5: Cleanup and verify the main tree remains untouched

When the operation is complete:

  • return to the main repository context if needed
  • remove the worktree with git worktree remove
  • delete only ephemeral session branches when appropriate
  • run git worktree prune
  • verify the remaining worktree list and main-tree state

Load references/merge-playbook.md for cleanup and recovery rules.

Rules:

  • never auto-delete non-session branches
  • warn before force-removing a dirty worktree
  • explicitly verify the main working tree was not unintentionally modified

Success criteria: The worktree lifecycle is closed cleanly and the user can see the final git state.

Guardrails

  • Do not let the model invoke this skill proactively; it mutates git and worktree state.
  • Do not add context: fork; this workflow already creates git isolation explicitly.
  • Do not add paths:; this is a generic git workflow skill.
  • Do not keep giant walkthroughs, command tables, or recovery encyclopedias inline in SKILL.md.
  • Do not use rm -rf for normal worktree cleanup.
  • Do not delete user branches unless the user explicitly asked.
  • Do not use force cleanup silently on dirty worktrees.

When To Load References

  • references/worktree-expertise.md Use at session start for role and domain expertise.
  • references/worktree-conventions.md Use for branch naming, path layout, lifecycle, setup conventions, and destroy safety.
  • references/merge-playbook.md Use for merge execution, conflict-resolution tiers, lockfile handling, stale-worktree cleanup, and abort-and-recreate recovery.

Output Contract

Report:

  1. the requested operation and resolved branch/worktree scope
  2. the worktrees created, reused, or removed
  3. the merge/conflict outcome and validation status
  4. any branches or tags created or deleted
  5. the final git worktree list and main-tree safety status

平台分布

Codex

36.22%
按下载量换算173

Claude

31.29%
按下载量换算150

Cursor

18.42%
按下载量换算88

Gemini CLI

10.71%
按下载量换算51

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

只读

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

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills