/git-tree:create-git-treefrom git-tree
Creates git worktrees with symlinked vendor/node_modules for parallel branch work without dependency reinstallation.
Ships in git-tree. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Create git worktrees in parallel directories with automatic symlinks to vendor, node_modules, and .env.
# Resolve this once. Codex: this path resolves under Claude Code; substitute the absolute
# path to this git-tree plugin root, which contains this skill's parent skills/ directory.
GIT_TREE_ROOT="${CLAUDE_PLUGIN_ROOT}"
"$GIT_TREE_ROOT/scripts/git-tree.sh" <branch-name> [--repo <path>] [--create]
Run the resolved script with the branch name. If no branch is provided, ask the user.
Flags:
--repo <path>: Target repository (defaults to cwd)--create: Create branch if it doesn't existSuccess output:
Worktree created successfully
Created N symlink(s)
Worktree location: /path/to/gittree-branch
Failure: Script exits non-zero with error message. Common errors:
--create flag or create branch firstparent/
├── repo/ # Original (real deps)
└── gittree-branch/ # Worktree (symlinked deps)
# List all worktrees
git worktree list
# Remove a worktree
git worktree remove gittree-branch-name
rm vendor && composer installgit stashgit worktree remove <path>Need to serve a worktree via local web server (LocalWP, nginx, etc)?
See WEBSERVER-WORKTREES.md for swap/restore scripts that temporarily redirect your web server's document root.
Errors or unexpected behavior? → See TROUBLESHOOTING.md
Common issues covered: broken symlinks, pre-commit hook failures, containerized environments.
User: "I want to work on feature-auth while keeping my current work"
Action: Create worktree at ../gittree-feature-auth/
User: "Set up a worktree for PR review of branch fix-login"
Action: Create worktree at ../gittree-fix-login/
User: "I need to test two branches side by side" Action: Create worktree for the second branch, both share dependencies
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub jtsternberg/claude-plugins --plugin git-tree2 skills in this plugin