CoreyCole

Create Worktree — Development skill for Claude Code

Development community

description: Create worktree and launch implementation session for a plan set up worktree for implementation: 2a.

How to install Create Worktree

Installs to ~/.claude/commands/coreycole-datastarui-create_worktree.md

Terminal
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/CoreyCole/datastarui/HEAD/.claude/commands/create_worktree.md -o ~/.claude/commands/coreycole-datastarui-create_worktree.md

Restart Claude Code, or start a new session, for it to be picked up.

What Create Worktree does


description: Create worktree and launch implementation session for a plan

  1. set up worktree for implementation: 2a. read `hack/create_worktree.sh` and create a new worktree with the Linear branch name: `./hack/create_worktree.sh ENG-XXXX BRANCH_NAME`

  2. determine required data:

branch name path to plan file (use relative path only) launch prompt command to run

**IMPORTANT PATH USAGE:**

  • The thoughts/ directory is synced between the main repo and worktrees
  • Always use ONLY the rel

Alternatives in Development

  • Clean Worktree (Interactive) — Interactive cleanup of worktrees: lists merged/stale branches and asks confirmation before deleting 25.5k ★
  • Worktree Cleanup — Remove worktrees and branches that have been merged: $ARGUMENTS 23.4k ★
  • Cancel Pua Loop — 取消当前活跃的 PUA Loop(原子级联:state + worktree + 记录) 19.5k ★

Full documentation available on GitHub

View Source Repository