·git-worktree
</>

git-worktree

在与项目根目录相同的目录级别为当前存储库创建一个 git 工作树。此技能可自动创建分支、根据项目-T-分支格式命名目录以及初始项目设置(例如,依赖项安装)。当用户想要在不切换当前工作空间的情况下处理新功能或修复时,请使用此功能。

12安装·0热度·@hu-wentao

安装

$npx skills add https://github.com/hu-wentao/wyatt_skills --skill git-worktree

如何安装 git-worktree

通过命令行快速安装 git-worktree AI 技能到你的开发环境

  1. 打开终端: 打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等)
  2. 运行安装命令: 复制并运行以下命令:npx skills add https://github.com/hu-wentao/wyatt_skills --skill git-worktree
  3. 验证安装: 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用

来源:hu-wentao/wyatt_skills。

SKILL.md

查看原文

This skill allows you to quickly create a new git worktree for the current project. The worktree is created in the same parent directory as the current project's root, following the naming convention PROJECT-NAME-T-BRANCH-NAME.

Crucially, if the user does not respond to a question or provides no alternative, proceed immediately using your suggested values instead of repeating the question. The goal is to minimize friction while allowing for customization.

User: "Create a worktree for this repo." Gemini: "I'll create a new worktree for you. I'll use the branch name feat-wyattskills-260221 based on the current branch main. Is that okay, or would you like a different name?" User: "That's fine." Gemini: [Runs the script and confirms the path /Users/huwentao/proj/wyattskills-T-feat-wyattskills-260221]

在与项目根目录相同的目录级别为当前存储库创建一个 git 工作树。此技能可自动创建分支、根据项目-T-分支格式命名目录以及初始项目设置(例如,依赖项安装)。当用户想要在不切换当前工作空间的情况下处理新功能或修复时,请使用此功能。 来源:hu-wentao/wyatt_skills。

可引用信息

为搜索与 AI 引用准备的稳定字段与命令。

安装命令
npx skills add https://github.com/hu-wentao/wyatt_skills --skill git-worktree
分类
</>开发工具
认证
收录时间
2026-02-23
更新时间
2026-03-10

Browse more skills from hu-wentao/wyatt_skills

快速解答

什么是 git-worktree?

在与项目根目录相同的目录级别为当前存储库创建一个 git 工作树。此技能可自动创建分支、根据项目-T-分支格式命名目录以及初始项目设置(例如,依赖项安装)。当用户想要在不切换当前工作空间的情况下处理新功能或修复时,请使用此功能。 来源:hu-wentao/wyatt_skills。

如何安装 git-worktree?

打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/hu-wentao/wyatt_skills --skill git-worktree 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用

这个 Skill 的源码在哪?

https://github.com/hu-wentao/wyatt_skills

详情

分类
</>开发工具
来源
skills.sh
收录时间
2026-02-23