Skip to content
Development
Command

/worktree-create

Create a git worktree for parallel development on a separate branch without stashing.

From plugin
rohitg00-claude-code-toolkit
2.5k199 skills138 agents199 commands
Install
$ npx -y skills add rohitg00/awesome-claude-code-toolkit --agent claude-code

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/worktree-create

Context preview

What this command does when you run it.

Create a git worktree for parallel development on a separate branch without stashing.

Command definition

worktree-create.md

Create a git worktree for parallel development on a separate branch without stashing.

Steps

1. Verify the current repository supports worktrees: 2. Determine the worktree configuration: 3. Create the worktree: 4. Set up the worktree environment: 5. List active worktrees with `git worktree list`. 6. Provide the path and instructions to switch to the new worktree.

Format

Worktree Created:
  Path: <absolute path>
  Branch: <branch name>
  Base: <parent branch>

Rules

  • Always create worktrees outside the main repository directory.
  • Use descriptive branch names following project conventions.
  • Do not copy .env files with secrets to worktrees.
Ships withrohitg00-claude-code-toolkit

The most comprehensive toolkit for Claude Code -- 135 agents, 35 curated skills (+400,000 via SkillKit), 42 commands, 176+ plugins, 20 hooks, 15 rules, 7 templates, 15 MCP configs, 26 companion apps, 53 ecosystem entries, and more.

Get the whole plugin