worktrees

SKILL.md

Worktrees

Create a git worktree in a new tmux session with Claude Code running a specific prompt.

Command

~/Scripts/worktree-branch --detached --pull --cmd 'amp "$PROMPT"' "$BRANCH"

Parameters

  • $BRANCH - Branch name or remote/branch (e.g., my-feature)
  • $PROMPT - The prompt to pass to Claude Code in the new worktree

Examples

Installs
3
First Seen
Mar 19, 2026