create-worktree

Installation
SKILL.md

Create Worktree with Environment Setup

When this command is invoked with /create-worktree <branch-name> [base-branch] [path=<folder>], execute the following steps:

Step 1: Parse Arguments

Extract the branch name, optional base branch, and optional path override from the command arguments.

Derive the worktree folder name:

  • If an explicit path=<folder> argument was provided, use that.
  • Otherwise, use the last segment of the branch name (the part after the final /).
    • autoresearch/multisector-mar22multisector-mar22
    • feature/authauth
    • feature-authfeature-auth (no slash, use as-is)

The worktree will be created at ../{folder}. The git branch is still created as {branch-name} (preserving the full hierarchical name).

Step 2: Create Git Worktree

Installs
7
GitHub Stars
2
First Seen
Mar 6, 2026
create-worktree — giladresisi/ai-dev-env