obra/superpowers

using-git-worktrees

Use when starting feature work that needs isolation from current workspace or before executing implementation plans - ensures an isolated workspace exists via native tools or git worktree fallback

212K installs 301K stars

Before you install

Last update
Files in folder
1
Scripts
No script files found
SKILL.md size
6.7 KB (about 1,703 tokens of context each time it loads)
License
MIT
Source on GitHub
obra/superpowers

Skills are plain text instructions the agent follows, sometimes with scripts. Check the source, prefer repositories with many installs and stars, and read any script it ships.

Install

npx skills add obra/superpowers@using-git-worktrees

Runs in a terminal with Node.js 18 or newer. Add -y to skip the prompts and -g to install for every project instead of this one.

Install for your agent

npx skills add obra/superpowers@using-git-worktrees --agent claude-code -y
Project install writes to
.claude/skills/using-git-worktrees
Global install writes to
~/.claude/skills/using-git-worktrees

Start a new session afterwards so the agent picks the skill up. In Claude Code you can also call it directly with /using-git-worktrees.

What it does

Using Git Worktrees Overview Ensure work happens in an isolated workspace. Prefer your platform's native worktree tools. Fall back to manual git worktrees only when no native tool is available. Core principle: Detect existing isolation first. Then use native tools. Then fall back to git. Never fight the harness. Announce at start: "I'm using the using-git-worktrees skill to set up an isolated workspace." Step 0: Detect Existing Isolation Before creating anything, check if you are already in an isolated workspace. Submodule guard: GITDIR != GITCOMMON is also true inside git submodules. Before…

Excerpt from the skill's own SKILL.md. Read the full file on GitHub before installing: skills run with your agent's permissions.

Categories

Related skills

  • brainstorming

    obra/superpowers

    You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation).

    396K installs 301K scriptsProductivity
  • systematic-debugging

    obra/superpowers

    Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes

    297K installs 301K scriptsTesting
  • writing-plans

    obra/superpowers

    Use when you have a spec or requirements for a multi-step task, before touching code

    276K installs 301KTestingWriting
  • using-superpowers

    obra/superpowers

    Use when starting any conversation - establishes how to find and use skills, requiring skill invocation before ANY response including clarifying questions

    265K installs 301K
  • requesting-code-review

    obra/superpowers

    Use when completing tasks, implementing major features, or before merging to verify work meets requirements

    256K installs 301KCode reviewGit & GitHub
  • Use when about to claim work is complete, fixed, or passing, before committing or creating PRs - requires running verification commands and confirming output before making any success claims; evidence before assertions always

    243K installs 301KTesting

← Search skills

/skills/obra/superpowers/using-git-worktrees/