wt

Create a git worktree under worktree/<branch> and update submodules.

4.3k|185|Updated Sep 14, 2025
One-click install
npx skills add https://github.com/homeassistant-ai/ha-mcp --skill wt-homeassistant-ai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: wt
Source: https://github.com/homeassistant-ai/ha-mcp/tree/main/.claude/skills/wt
Command: npx skills add https://github.com/homeassistant-ai/ha-mcp --skill wt-homeassistant-ai

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Creating isolated git worktrees enables parallel feature development without touching the main repository, reducing merge conflicts and preserving a clean main branch.

Core Features & Use Cases

  • Create a new worktree under worktree/<branch> for the specified branch.
  • Initialize and update submodules to ensure a ready-to-work environment.
  • Validate repository location and current branch to confirm correct setup.
  • Use cases include developing a feature, reviewing a PR, or experimenting in an isolated context.

Quick Start

Create a new git worktree in the worktree/ directory for the specified branch.

Frequently Asked Questions about wt

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a git worktree for a specific feature branch?

A git worktree allows you to create an isolated working directory under worktree/<branch> for a specified branch, letting you develop features or test branches without altering your main repository. It prevents merge conflicts by keeping parallel changes separate.

How do I isolate feature development from my main git repository?

Isolating feature development is achieved by creating a dedicated git worktree in a subdirectory, which preserves a clean main branch while allowing parallel work. The Skill verifies your active branch and location to confirm the correct setup.

Do I need bash scripting to manage git worktrees and submodules?

Yes, bash scripting is required to execute the deterministic steps for creating the worktree and updating submodules. The Skill relies on bash and git to validate repository location and initialize the ready-to-work environment.

Does creating a git worktree automatically initialize and update submodules?

Yes, creating a git worktree with this Skill automatically initializes and updates submodules to ensure a ready-to-work environment. This guarantees that all nested repository dependencies are prepared immediately after the worktree is created.

What is the best way to review a PR in an isolated git context?

The best way to review a PR in an isolated git context is creating a new worktree under worktree/<branch> for the specified branch. This allows you to experiment and test branches without touching the main repository.