git-worktree

Installation
SKILL.md

Git Worktree

Overview

This skill allows you to quickly create a new git worktree for the current project. The worktree is created in the same parent directory as the current project's root, following the naming convention PROJECT-NAME-T-BRANCH-NAME.

Workflow

  1. Verification:

    • Verify the current directory is within a Git repository.
    • Identify the absolute path of the project's root.
  2. User Interaction: Proactively suggest values for the required parameters. Ask the user for:

    • New branch name: The name of the branch to be created. Suggest a context-aware name (e.g., feat-improvement or fix-issue-123 based on context.
    • Base branch: The branch to base the new branch on (Default: the current branch).

    Crucially, if the user does not respond to a question or provides no alternative, proceed immediately using your suggested values instead of repeating the question. The goal is to minimize friction while allowing for customization.

  3. Path Calculation: Calculate the new worktree path at the same directory level as the project root. For example, if the project is in /Users/user/my-project, the worktree will be created at /Users/user/my-project-T-NEW-BRANCH.

  4. Creation: Execute scripts/create_worktree.sh to:

    • Create the new worktree and branch.
Related skills

More from hu-wentao/wyatt_skills

Installs
14
First Seen
Feb 21, 2026