worktree-workflow

star 47

Use when the user wants to work on a new feature in isolation, create a worktree, or manage parallel development branches. Describes the worktree + tmux session workflow.

g4rcez By g4rcez schedule Updated 3/17/2026

name: worktree-workflow description: Use when the user wants to work on a new feature in isolation, create a worktree, or manage parallel development branches. Describes the worktree + tmux session workflow.

Worktree Workflow

This project uses git worktrees for isolated feature development. Each worktree gets its own tmux session.

Core Commands

Create a worktree for a new branch

worktree add <branch-name> [base-branch]

Examples:

  • worktree add feature/auth — creates from current HEAD
  • worktree add feature/auth main — creates from main
  • worktree add feature/auth origin/develop — creates from remote branch

Worktrees are stored at ~/.tmp/git/<repo-name>/<branch-name>.

Open a worktree in a tmux session

worktree mux

Presents an fzf picker of all worktrees; creates or attaches to a tmux session named after the branch.

List worktrees with status

worktree overview

Prints a table: branch | tmux session (●/○) | dirty file count | ahead/behind upstream.

Navigate to a worktree

cd $(worktree cd <branch-name>)

Remove a worktree

worktree remove <branch-name>

Interactive list with preview

worktree list

fzf picker showing git log or live tmux pane preview. Ctrl-D to delete.

Typical Flow

  1. worktree add feature/my-task main — create isolated worktree
  2. worktree mux — pick the new worktree and open a tmux session
  3. Inside the session: run claude to start an AI session in that worktree
  4. When done: worktree remove feature/my-task

AI Commit Helpers

  • wip.ai() — stages all, generates commit message via Gemini, commits + pushes
  • wip.cc() — same but uses Claude CLI (claude -p ...) instead of Gemini
  • aicommit — just generate the message (Gemini), copies to clipboard
  • aicommit.cc() — same but uses Claude CLI
Install via CLI
npx skills add https://github.com/g4rcez/dotfiles --skill worktree-workflow
Repository Details
star Stars 47
call_split Forks 2
navigation Branch main
article Path SKILL.md
More from Creator