Create Git Worktree
SkillDev toolsLets your agent create a git worktree with the latest master code.
Available today. Use it from your connected AI after setup.
No other account needed.
Connect ahel once, and every AI you use reads what you have installed.
Then ask your AI: use the Create Git Worktree skill
About this capability
Create a git worktree in worktree/ subdirectory with up-to-date master
What this skill tells your AI
The instructions your AI receives, as published by homeassistant-ai/ha-mcp in .claude/skills/wt/SKILL.md and read by ahel’s review.
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
Signals
- GitHub stars
- 5k
- Forks
- 206
- Last commit
- Sep 2026
Advanced
- Catalog kind
- skill
- Gateway key
wt- Source
- github.com/homeassistant-ai/ha-mcp