kylearn
← 返回常用skill
效率工具218k

using-git-worktrees

用 git worktree 开多个工作区并行开发/审查,互不干扰。

🔥 出自高星合集 obra/superpowers(GitHub API 实读 217,601 stars);目录经 API 列出确认存在。

它能帮你做什么

教 agent 正确使用 git worktree 为不同任务/分支创建独立工作目录,实现并行开发、隔离审查与安全实验,避免频繁切分支污染工作区。配套 finishing-a-development-branch 做分支收尾合并。

怎么装它

帮我安装这个 skill: https://github.com/obra/superpowers

复制这句话,发给你的 Claude Code / Codex 等 AI Agent,它会自动帮你装好。

源码 / 详情:https://github.com/obra/superpowers/tree/main/skills/using-git-worktrees

怎么用它

装好后,在 AI Agent 里直接说下面任意一句就能唤起它(点一下可复制):

用 worktree 并行开两个分支
给这个功能开独立工作区
帮我收尾合并这个开发分支