/worktree
Set up git worktrees for parallel development on multiple branches simultaneously.
$ npx -y skills add rohitg00/awesome-claude-code-toolkit --agent claude-codeHow 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
Context preview
What this command does when you run it.
Set up git worktrees for parallel development on multiple branches simultaneously.
Command definition
worktree.mdSet up git worktrees for parallel development on multiple branches simultaneously.
Steps
1. Verify the current repository is not a bare clone: `git rev-parse --is-bare-repository`. 2. List existing worktrees with `git worktree list` and display them. 3. If creating a new worktree:
- Accept a branch name argument (required) and optional base branch (defaults to `main`).
- Determine the worktree path: `../<repo-name>-<branch-name>`.
- Create it: `git worktree add ../<repo-name>-<branch> -b <branch> <base>`.
4. Copy essential config files that are gitignored (`.env`, `.env.local`) if they exist. 5. Run the package manager install in the new worktree directory. 6. Print the worktree path and instructions for switching to it. 7. If removing a worktree, run `git worktree remove <path>` and `git worktree prune`.
Format
Worktree created: Path: /absolute/path/to/worktree Branch: feature/my-branch Base: main Next: cd /absolute/path/to/worktree
Rules
- Never create a worktree inside the current repository directory.
- Always check that the branch name does not already exist before creating.
- Warn if there are more than 5 active worktrees (potential cleanup needed).
- Do not delete worktrees that have uncommitted changes without confirmation.
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.
Repo: rohitg00/awesome-claude-code-toolkit
Other commands on rohitg00-claude-code-toolkit.
- /adr
Write an Architecture Decision Record documenting a significant technical decision.
Open command - /design-review
Conduct a structured design review of a module, feature, or system component.
Open command - /diagram
Generate Mermaid diagrams from codebase analysis or description.
Open command - /migrate
Plan and execute a framework or library migration incrementally.
Open command - /plan
Create a structured implementation plan for the requested feature or change.
Open command - /refactor
Perform a systematic refactoring of the specified code area.
Open command

