SkillsReviewed · homeassistant-ai

ha-mcp wt Git Worktree Skill

wt is a Claude skill for developers creating a separate working directory for a new Git branch, but it first switches the existing checkout to master and pulls from origin. It creates worktree/<branch-name> and initializes submodules recursively.

Researched 16 Nov 2026

In short.

wt is a Claude skill for developers who want a new Git branch in its own working directory, but its setup changes the original checkout by switching to master and pulling from origin. The instructions create worktree/<branch-name>, initialize submodules recursively and print the resulting location and branch. The fixed branch and remote names limit portability, and the command block lacks explicit failure handling. Execution and assistant compatibility were not assessed.

Researched and written by an AI model and checked by a second AI model. How it works

The supplied manifest identifies complete coverage of .claude/skills/wt at the captured revision, with SKILL.md as its sole selected file. The repository-root LICENSE is the accompanying notice. The rest of ha-mcp, other skills, assistant implementation and submodule contents are outside the supplied evidence. Installation, command execution, remote access, worktree creation, cleanup and costs were not tested or measured.

The overview

Identity

The resource is .claude/skills/wt/SKILL.md in homeassistant-ai/ha-mcp. Its declared name is wt, its argument hint is <branch-name>, and its allowed tool is Bash. It defines a repository workspace preparation procedure.

The original folder address is [https://github.com/homeassistant-ai/ha-mcp/tree/master/.claude/skills/wt]. The supplied contents come from a fixed commit rather than an independently verified current copy of master.

Assessment

The skill offers a compact starting routine for developers who repeatedly create branches in separate directories. It combines updating the base branch, creating the worktree and preparing submodules.

Its fit depends on accepting changes to the existing checkout and using the master/origin naming convention. The commands are available for inspection, but successful execution, recovery from failures and host integration were not assessed.

Users

The main audience is developers using a coding assistant to start branch work in a separate folder. For beginners, the intended result is another checked-out directory where the new branch can be edited.

Experienced developers can assess the exact Git sequence and adapt its fixed conventions. Users need to understand that the initial checkout and pull operate on the existing working directory before the new one is created.

Capabilities

The procedure locates the repository root, checks out master, pulls origin master, and creates a new branch and worktree using the supplied argument. It then initializes submodules recursively inside that worktree.

The file also provides commands for listing worktrees and removing the created worktree. Its notes say the new checkout inherits .claude/skills/ workflows; the contents and behavior of those other workflows are not established here.

Using it

Requirements

The shown procedure needs Bash, Git with worktree support, a writable repository, a local master branch and an origin remote. Access to remote or submodule sources may require network connectivity and credentials.

The assistant host must recognize the skill format and supply the branch argument through $ARGUMENTS. Supported host versions, minimum Git versions and authentication setup are not documented. The chosen branch name and destination must be acceptable to Git.

Mechanism

The block first uses git rev-parse --show-toplevel to locate the repository root. It then runs git checkout master and git pull origin master. If those steps succeed, the new branch starts from the resulting master checkout.

git worktree add creates worktree/<branch-name> with a new branch of the same name using -b. git submodule update --init --recursive runs against that directory. Finally, the shell changes into it and prints its location and current branch.

Setup

The supplied repository layout places the file at .claude/skills/wt/SKILL.md. Using that layout requires an assistant host that supports it; the evidence supplies no installer, invocation syntax or compatibility matrix.

Before use, review the working directory state, master branch, origin remote, destination path and submodule configuration. Supply a new valid branch name as the argument. These are preparation recommendations derived from the commands, not a verified installation procedure.

Example

For an illustrative argument of fix-device-name, the intended result is a branch named fix-device-name in worktree/fix-device-name, based on master after the pull. The procedure then initializes submodules in that directory and prints the location and branch.

This example was not executed. Actual results depend on repository state, remote access, available branch and path names, and successful completion of each command.

Assessment & evidence

Limitations

The commands hard-code master, origin and the worktree/ directory. They always request a new branch with -b and provide no alternative flow for an existing branch or destination.

The block has no explicit stop-on-error setting or checks between steps. If the host continues after a failed command, later steps and the ready message may still run. That message alone therefore does not establish successful setup.

The removal shortcut uses cd ../.. from the created directory. From the path construction, a branch name containing a slash creates extra directory levels, so that shortcut can return to the wrong directory. This is a static inference, not an executed result. Whether the host preserves the final working directory across later calls is also undocumented.

Reasoning

The practical value comes from collecting several concrete Git preparation steps into one reusable skill, including recursive submodule setup. Its suitability depends on whether those exact steps match the repository.

The same sequence explains the main tradeoff: creating a separate workspace begins with changing and updating the existing checkout. Fixed names and missing explicit failure handling warrant review before adoption.

Alternatives

For occasional use, developers can perform the individual Git commands shown in the file manually, reviewing the checkout and pull before proceeding.

A repository-specific adaptation could use another base branch, remote or destination directory, but that requires changing the supplied instructions. No comparison with other skills or tools is provided.

Evidence

The captured skill file is available at [https://raw.githubusercontent.com/homeassistant-ai/ha-mcp/5cbb16518ac734e1e1e7b763d5d187131bd66534/.claude/skills/wt/SKILL.md]. It establishes the declared interface, command sequence and maintenance shortcuts.

The accompanying license is available at [https://raw.githubusercontent.com/homeassistant-ai/ha-mcp/5cbb16518ac734e1e1e7b763d5d187131bd66534/LICENSE]. These sources provide instructions and license terms, but no runtime results, host compatibility evidence or submodule contents.

Access & freshness

Costs

The supplied MIT license grants permission to use the software without a license fee. The evidence gives no assistant subscription, model usage or execution resource prices, so total operating cost is unknown.

No execution, usage or cost measurements are supplied.

Rights

The accompanying repository-level LICENSE is MIT, with copyright attributed to Julien in 2024. It permits use, copying, modification, distribution, sublicensing and sale, subject to retaining the copyright and permission notice in copies or substantial portions.

The license disclaims warranties and liability. Rights for any separately fetched submodule contents are not established by these two files.

Freshness

The supplied capture is dated 16 November 2026 at 08:54:05.446 UTC and identifies source commit 5cbb16518ac734e1e1e7b763d5d187131bd66534.

The findings describe that fixed snapshot. The current contents of master and compatibility with other assistant or Git versions are unknown.

Actions

Before adopting the skill, confirm that switching the existing checkout to master and pulling origin master matches the intended workflow. Check that the requested branch and destination are available and that recursive submodule initialization is wanted.

Consider adding explicit failure handling and adapting the fixed names where necessary. Inspect the resulting directory, branch and submodule state before relying on the ready message. For removal, use the actual repository root rather than assuming cd ../.. reaches it.

Retain the MIT copyright and permission notice when copying or redistributing the skill.

Evidence for this report

.claude/skills/wt/SKILL.mdselected · checked 2026-11-16
LICENSEnotice · checked 2026-11-16