This automates the setup of isolated git worktrees so you can work on a new feature without touching your current branch. It checks if you're already in an isolated workspace, looks for native worktree tools in your environment first, then falls back to manual git worktree commands if needed. The detection logic is careful about submodules and existing worktrees to avoid nesting issues. It handles directory placement based on project conventions, validates that worktree folders are gitignored, runs your project's setup commands (npm install, cargo build, etc.), and verifies tests pass before you start coding. Designed to be called by skills like brainstorming or executing-plans whenever they need clean isolation. The emphasis on native tools first is smart since fighting your harness creates phantom state.
npx skills add https://github.com/jnmetacode/superpowers-zh --skill using-git-worktrees