From skull
Run parallel or risky work without collisions using git worktrees. Triggers on "worktree", "isolate this change", "try this without touching main", "run these agents in parallel safely", "spike/experiment", or whenever multiple subagents or features would edit the same tree at once. Each task gets its own branch + working directory, so concurrent work never clobbers another's files and a failed experiment is thrown away by deleting a folder. Pairs with subagent-orchestration for true parallel building.
How this skill is triggered — by the user, by Claude, or both
Slash command
/skull:worktree-isolationThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Parallel agents are only safe when they don't write to the **same files**. A git **worktree** gives each
Parallel agents are only safe when they don't write to the same files. A git worktree gives each task its own branch and its own working directory off the one repo — so two efforts run side by side without stepping on each other, and a dead-end spike is discarded by removing a folder.
Not needed for read-only parallel work (research/review) — those don't write, so they can't collide.
git rev-parse --git-dir vs --git-common-dir — if they differ (and
you're not in a submodule), you're already in a worktree → skip creation, just use the branch.
A worktree inside a worktree is the #1 mistake.EnterWorktree / a /worktree
command), use it — hand-rolling git worktree add when a managed tool exists creates phantom state the
harness can't track. For a dispatched subagent, prefer the harness's isolation: worktree frontmatter
(credit obra/superpowers): it branches from the default branch and auto-cleans when the work is
left unchanged, so you never hand-roll or garbage-collect the tree. Fall back to raw git only when there's
no native tool..worktrees/), confirm it's
git-ignored (git check-ignore -q); if not, add it to .gitignore and commit before creating.# one worktree per task, each on its own branch, all sharing the same repo/history
git worktree add ../wt-feature-x -b feature-x # new branch in a sibling dir
git worktree add ../wt-bugfix-y -b bugfix-y
git worktree list # see them all
# ...work happens in each dir independently...
git worktree remove ../wt-feature-x # discard a spike, or after merging
git worktree prune # tidy stale entries
Rule: one worktree per parallel writer. Assign each subagent/teammate its own worktree path in its delegation brief; never let two write the same tree.
git worktree remove the merged/abandoned ones; prune stragglers. Don't leave a
graveyard of worktrees behind.node_modules, etc.).Credits: git-worktree isolation for parallel agent work is a pattern from superpowers
(obra/superpowers, MIT) — though superpowers still reimplements it in ~200 lines of shell; the native
isolation: worktree frontmatter above is available ground it hasn't taken. See docs/ECOSYSTEM.md. Pairs
with subagent-orchestration + model-router.
npx claudepluginhub aturzone/skullCreates isolated Git worktrees for parallel development, risky refactoring, or multi-feature work without branch switching or conflicts.
Isolates risky or parallel file-mutating work in a git worktree so the main tree's uncommitted changes are never clobbered. For fan-out agents, throwaway experiments, or any change you may want to discard cleanly.
Manages isolated git worktrees for parallel agent team development. Automates creation, environment setup, baseline verification, and cleanup for subagent tasks.