Wt
DevelopmentwtWt is an Agent Skill for development published in the homeassistant-ai/ha-mcp repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
Create a git worktree in worktree/ subdirectory with up-to-date master
QUICK START
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/homeassistant-ai/ha-mcp/blob/HEAD/.claude/skills/wt/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/wt, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
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