wt-new

michael-menard's avatarfrom michael-menard

Create a new git worktree and branch for feature development. Use when starting a new feature or story that needs isolated development. Creates worktree in tree/ directory with proper branch setup.

⭐0stars🔀0forks📁View on GitHub🕐Updated Dec 28, 2025

When & Why to Use This Skill

This Claude skill automates the creation of Git worktrees and branches, enabling developers to start new features in isolated environments quickly. By streamlining the setup process—including base branch verification, pulling updates, and directory organization—it enhances workflow efficiency and minimizes the friction of context-switching during complex software development tasks.

Use Cases

  • Feature Isolation: Starting a new feature or user story in a dedicated directory without disturbing your current work-in-progress.
  • Concurrent Task Management: Managing multiple bug fixes or tasks simultaneously by maintaining separate, independent worktrees for each branch.
  • Workflow Standardization: Ensuring team-wide consistency by automatically organizing all feature worktrees within a structured 'tree/' directory.
  • Rapid Context Switching: Quickly jumping between different versions of a codebase for testing, debugging, or comparison without the need for frequent stashing or switching branches in a single directory.
namewt-new
descriptionCreate a new git worktree and branch for feature development. Use when starting a new feature or story that needs isolated development. Creates worktree in tree/ directory with proper branch setup.

/wt:new - Create New Worktree and Branch

Description

Quick command to activate the Git Worktree Manager skill and start a new feature worktree.

Usage

/wt:new

What It Does

This slash command:

  1. Activates the Git Worktree Manager skill (@git-worktree)
  2. Automatically runs the *start-feature command
  3. Guides you through creating a new worktree with a new branch

Workflow

The command will:

  1. Verify git repository - Ensure you're in a valid git repo
  2. Ask for base branch - Which branch to start from (e.g., main, develop)
  3. Ask for feature branch name - Name for your new branch (e.g., feature/gallery-123)
  4. Checkout base branch - Switch to the base branch
  5. Pull latest changes - Ensure base is up-to-date
  6. Create worktree directory - Create tree/ if it doesn't exist
  7. Create worktree - Create the new worktree at tree/{branch-name}
  8. Confirm success - Show you the path to your new worktree

Benefits

✅ Quick Start - One command to create a new worktree ✅ Guided Process - Interactive prompts for all inputs ✅ Safe - Verifies git state before making changes ✅ Organized - Keeps all worktrees in tree/ directory