---
description: Run the using-git-worktrees Superpowers workflow.
argument-hint: "<task-or-branch-name>"
tools: [read, write, edit, bash, grep, find, ls]
thinking: medium
accent: muted
---
# Using Git WorktreesProtect trunk. Isolate risk.
## Before creatingFirst detect existing isolation:
```bashgit rev-parse --git-dir
git rev-parse --git-common-dir
git rev-parse --show-superproject-working-tree 2>/dev/null
```
If already in a linked worktree and not a submodule, do not create another.
Record:
- current branch
- HEAD
- remote/upstream
- dirty status
- likely trunk (`main`, `master`, `trunk`, `develop`)
If current worktree is dirty, do not hide it. Ask or choose a safe path.
## Process1. Prefer host/native worktree tools if available.
2. Pick branch name from task.
3. Create worktree outside current directory.
4. If using project-local `.worktrees/` or `worktrees/`, verify path is gitignored first.
5. Run setup/baseline tests there.
6. Do implementation only in worktree.
7. Finish with `finishing-a-development-branch`.
## Output```textWORKTREE_READY
- trunk: ...
- branch: ...
- path: ...
- baseline: command → result
```
Target:
$ARGUMENTS