obra logo
#148 by installsCoding & architectureobra/superpowers

using-git-worktrees

Create isolated Git worktrees for feature branches without disrupting your current workspace

Installs
219K
all time
This week
5.7K
installs
Repo stars
295.3K
GitHub
First seen
Jan 19, 2026
on skills.sh
Install
npx skills add https://github.com/obra/superpowers --skill using-git-worktrees
Works with Claude Code, Cursor, Codex, GitHub Copilot, Windsurf, Gemini CLI and other agents that read SKILL.md.
What it does

Sets up isolated workspaces for feature development using native platform tools with Git worktree fallback. Use this before starting implementation work that needs separation from your main branch, or when executing plans that require branch isolation. Detects existing isolation first to avoid redundant setup.

  • Detects if you're already in an isolated workspace before creating new ones
  • Prefers native platform worktree tools (Claude Code, Cursor, Codex harnesses) over manual Git
  • Falls back to manual `git worktree` commands when native tools unavailable
  • Ensures feature branches stay isolated from current workspace without switching contexts