Creates a git worktree in a sub-folder to manage multiple branches without switching context.
Install
mkdir -p .claude/skills/wt && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/2801" && unzip -o skill.zip -d .claude/skills/wt && rm skill.zipInstalls to .claude/skills/wt
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Create a git worktree in worktree/ subdirectory with up-to-date masterKey capabilities
- →Create isolated git worktrees
- →Initialize worktrees with master branch
- →Update submodules recursively
- →Manage multiple feature branches simultaneously
- →Remove worktrees after task completion
How it works
It automates the git worktree add command to create a separate directory linked to the main repository, allowing concurrent work on different branches.
Inputs & outputs
When to use wt
- →Work on multiple features simultaneously
- →Review PRs in an isolated environment
- →Avoid full branch switching
About this skill
Create Git Worktree
Create a new worktree in worktree/<branch-name> with branch <branch-name>.
Execution
# 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
When not to use it
- →Environments without git support
Prerequisites
Limitations
- →Requires sufficient disk space for multiple worktrees
- →Worktrees share the same repository configuration
How it compares
It avoids the need to perform full branch switches in the main directory, preserving the state of the primary environment.
Compared to similar skills
wt side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| wt (this skill) | 1 | 3mo | Review | Beginner |
| resolve-conflicts | 81 | 8mo | Review | Intermediate |
| openspec-onboard | 10 | 6mo | Review | Beginner |
| codex-cli-bridge | 9 | 9mo | Review | Intermediate |
Try saying
Example prompts that trigger this skill in your AI assistant.
More by homeassistant-ai
View all by homeassistant-ai →You might also like
resolve-conflicts
antinomyhq
Use this skill immediately when the user mentions merge conflicts that need to be resolved. Do not attempt to resolve conflicts directly - invoke this skill first. This skill specializes in providing a structured framework for merging imports, tests, lock files (regeneration), configuration files, and handling deleted-but-modified files with backup and analysis.
openspec-onboard
studyzy
Guided onboarding for OpenSpec - walk through a complete workflow cycle with narration and real codebase work.
codex-cli-bridge
alirezarezvani
Bridge between Claude Code and OpenAI Codex CLI - generates AGENTS.md from CLAUDE.md, provides Codex CLI execution helpers, and enables seamless interoperability between both tools
skill-sync
KyleKing
Syncs Claude Skills with other AI coding tools like Cursor, Copilot, and Codeium by creating cross-references and shared knowledge bases. Invoke when user wants to leverage skills across multiple tools or create unified AI context.
github-workflow-automation
ruvnet
Advanced GitHub Actions workflow automation with AI swarm coordination, intelligent CI/CD pipelines, and comprehensive repository management
git-advanced-workflows
wshobson
Master advanced Git workflows including rebasing, cherry-picking, bisect, worktrees, and reflog to maintain clean history and recover from any situation. Use when managing complex Git histories, collaborating on feature branches, or troubleshooting repository issues.