Back to list
richardgill

worktrees

by richardgill

30🍴 1📅 Jan 21, 2026

SKILL.md


name: worktrees description: | This skill creates git worktrees with tmux sessions and spawns Claude with a prompt. Triggers: "create a worktree", "new worktree", "worktree for branch", "spawn worktree", "parallel branch", "work on branch in new session", "worktree-branch script". Creates isolated worktree directories with Claude Code running automatically. Not for regular git branching or checkout operations.

Worktrees

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

Command

~/Scripts/worktree-branch --detached --pull --cmd 'codex "$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

# Create worktree from new branch with Claude prompt
~/Scripts/worktree-branch --detached --pull --cmd 'codex "fix the login bug"' fix-login

# Create worktree from remote branch
~/Scripts/worktree-branch --detached --pull --cmd 'codex "implement the feature from the PR description"' origin/feature-branch

Notes

  • Uses --detached to stay in current tmux session
  • Uses --pull to automatically pull main if behind (no prompt)
  • The new worktree session is created but not switched to
  • Claude Code starts automatically in the ai1 window with the given prompt

$ARGUMENTS

Score

Total Score

60/100

Based on repository quality metrics

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

+10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

Reviews

💬

Reviews coming soon