Skip to content
Back to skills

Wt

ASecurity

Create a git worktree in worktree/ subdirectory with up-to-date master

  • 4,947 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 20, 2026
ai-agentsbashgit

Security analysis

A100/100

Scanned September 20, 2026

npx -y skills add homeassistant-ai/ha-mcp --skill wt --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Wt?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Wt
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/homeassistant-ai-ha-mcp/badge)](https://www.skillsdirectory.com/skills/homeassistant-ai-ha-mcp)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: wt
description: Create a git worktree in worktree/ subdirectory with up-to-date master
argument-hint: "<branch-name>"
allowed-tools: Bash
---

# Create Git Worktree

Create a new worktree in `worktree/<branch-name>` with branch `<branch-name>`.

## Execution

```bash
# 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`

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.