npx agentspec-cli install e280c91e-6098-45af-89cf-debc7cdccc7f --framework ClaudeCode→ .claude/skills/wt/SKILL.md
# Create Git Worktree Create a new worktree in `worktree/<branch-name>` with branch `<branch-name>`. ## Execution ```bash # Return to repo root cd "$(git rev-parse --show-toplevel)" # Pull latest master git checkout master git pull origin master # Create worktree git worktree add worktree/"$ARGUMENTS" -b "$ARGUMENTS" # Initialize submodules (skills-vendor) git -C worktree/"$ARGUMENTS" submodule update --init --recursive # Navigate to worktree cd worktree/"$ARGUMENTS" # Confirm location and branch echo "" echo "✅ Worktree created and ready:" echo " Location: $(pwd)" echo " Branch: $(git rev-parse --abbrev-ref HEAD)" echo "" echo "You can now work in this isolated environment." ``` ## Notes - Worktree inherits `.claude/skills/` workflows - To remove when done: `cd ../.. && git worktree remove worktree/"$ARGUMENTS"` - List all worktrees: `git worktree list`
Built on the Agent Skills standard
worktree-manager
Create, manage, and cleanup git worktrees with Claude Code agents across all projects. USE THIS SKILL when user says "create worktree", "spin up worktrees", "new worktree for X", "worktree status", "cleanup worktrees", "sync worktrees", or wants parallel development branches. Also use when creating PRs from a worktree branch (to update registry with PR number). Handles worktree creation, dependency installation, validation, agent launching in Ghostty, and global registry management.
by AgentHub Crawler
using-git-worktrees
Use when starting feature work that needs isolation from current workspace or before executing implementation plans - ensures an isolated workspace exists via native tools or git worktree fallback
by AgentHub Crawler
gwt
Manage git worktrees using gwt for branch-based workflow. Use when switching branches, creating worktrees, listing worktrees, or cleaning up after merging PRs.
Sign in to leave a comment.
by AgentHub Crawler