/git-plugin:git-worktreefrom git-plugin
Create isolated git worktrees for reviewing PRs, branches, tags, or commits without affecting main working directory.
Ships in git-plugin. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Setup: "${CLAUDE_PLUGIN_ROOT}/skills/git-worktree/setup-worktree.sh" --pr|--branch|--tag|--commit <VALUE>
Options: --editor skip | --editor-cmd <code|idea|claude>
Open main: "${CLAUDE_PLUGIN_ROOT}/skills/git-worktree/open-main-worktree.sh"
Cleanup: "${CLAUDE_PLUGIN_ROOT}/skills/git-worktree/cleanup-worktree.sh" --pr|--branch <VALUE>
Options: --yes or -y (skip confirmation)
../<project>.worktrees/<folder-name>worktree-branch-<name>, PRs → worktree-pr-<number>, tags/commits → detached HEADbash (requires Git Bash)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub vkkotha/claude-skills --plugin git-plugin