Back to skills
SKILL.md
Git Worktree
ASecurityCreate isolated git worktrees for reviewing PRs, branches, tags, or commits without affecting main working directory.
- 30 stars
- 0 votes
- 0 copies
- 4 views
- Added November 8, 2026
Works with
Security analysis
100/100npx -y skills add majiayu000/claude-skill-registry-data --skill git-worktree --agent claude-codeAre you the author of Git Worktree?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/majiayu000-git-worktree-claude-skill-registry-data)---
name: "git-worktree"
description: "Create isolated git worktrees for reviewing PRs, branches, tags, or commits without affecting main working directory."
---
# Git Worktree
## Scripts
**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)
## Behavior
- Location: `../<project>.worktrees/<folder-name>`
- IDE auto-detection: VS Code, JetBrains, or Claude CLI
- Branch handling: local branches used directly, remote → `worktree-branch-<name>`, PRs → `worktree-pr-<number>`, tags/commits → detached HEAD
- Windows: prefix with `bash` (requires Git Bash)
Attribution
Related skills
View all in ai-agents →Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.