AcademySkillsDevelopment

Using Git Worktrees

Engineering teams that want agent work kept in a separate workspace from their main checkout.

  • Recommendedour rating
  • 297,139repository stars
  • MITlicence
  • todaylast update
npx degit obra/superpowers/skills/using-git-worktrees ~/.claude/skills/using-git-worktrees
SKILL.md

Loading the file...

What it does

A skill that sets up an isolated git worktree for a task. It first checks whether you are already in an isolated workspace, then prefers the platform's native worktree tools and falls back to plain git only when needed. It also verifies the setup is safe.

Use cases

  1. 01Start a feature in an isolated workspace
  2. 02Keep agent changes apart from your main branch
  3. 03Detect an existing worktree before creating another

Questions about
Using Git Worktrees.

What is Using Git Worktrees used for?

Engineering teams that want agent work kept in a separate workspace from their main checkout. A skill that sets up an isolated git worktree for a task. It first checks whether you are already in an isolated workspace, then prefers the platform's native worktree tools and falls back to plain git only when needed. It also verifies the setup is safe.

How do I install Using Git Worktrees?

Run this in your terminal: npx degit obra/superpowers/skills/using-git-worktrees ~/.claude/skills/using-git-worktrees

Is Using Git Worktrees open source?

Yes. The code is on GitHub (obra/superpowers) under the MIT licence.

Is Using Git Worktrees safe to use?

It passed our automatic scan for credential theft, hidden instructions and risky install commands. Third party open source software. Sabemos AI does not maintain it. Check the code and permissions before you connect it to company data.