Worktree New — Git skill for Claude Code
Create a new git worktree with full dev environment for parallel work.
How to install Worktree New
Installs to ~/.claude/commands/igerber-diff-diff-worktree-new.md
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/igerber/diff-diff/HEAD/.claude/commands/worktree-new.md -o ~/.claude/commands/igerber-diff-diff-worktree-new.md Restart Claude Code, or start a new session, for it to be picked up.
What Worktree New does
description: Create a new git worktree with full dev environment for parallel work argument-hint: " [base-branch]"
Create Git Worktree
Create an isolated worktree for parallel development. Arguments: $ARGUMENTS
Instructions
1. Parse Arguments
Parse `$ARGUMENTS` to extract:
- name (required): First argument — used as both directory suffix and branch name
- base-ref (optional): Second argument — existing branch, tag, or ref to branch from (creates branch `<nam
Alternatives in Git
- Git Worktree Docs Issue: Dependency Installation — GitHub — Community feedback on official docs with full worktree lifecycle walkthrough 81.1k ★
- Worktree Parallel Init — Create multiple git worktrees for parallel development: $ARGUMENTS 23.4k ★
- Local Review — You are tasked with setting up a local review environment for a colleague's branch 10k ★
Full documentation available on GitHub
View Source RepositoryRelated Skills
Super Developer
A Claude Code plugin that orchestrates the full development lifecycle — divergent ideation, structured plannin
Worktree Spawn
Spawn an isolated git worktree with a deterministic PORT_BASE so heavy multi-port dev servers can run in paral
Sprint Worktree
Dev Team 2: create the dedicated git worktree for a parallel sprint
Parallel Tickets
Work several tickets at once — create one git worktree per ticket (detached at the base) and open a separate i
Setup Environment
Initialize development environment for git worktree
Worktrees
Set up parallel-agent git worktrees and converge them into one live dev tree
Related Agents
Parallel Worker
Executes parallel work streams in a git worktree. This agent reads issue analysis, spawns sub-agents for each
Isolated Implementer
Implement an independent work unit in an isolated git worktree when parallel writers would otherwise risk conf
Worktree Worker
Isolated implementation worker. Use to execute a well-defined coding task in a separate git worktree — ideal f