Manage git worktrees (create/list/switch/cleanup) and copy .env files. Use for parallel feature work, isolated review, clean workspace, or when user mentions worktrees.
Use the manager script for all worktree actions.
ROOT="$(git rev-parse --show-toplevel)" PLUGIN_ROOT="$ROOT/.opencode/skill" bash "$PLUGIN_ROOT/flow-next-worktree-kit/scripts/worktree.sh" <command> [args]
Commands:
create <name> [base]
list
switch <name>
cleanup
copy-env <name>
Safety notes:
create
.env*
.worktrees/
copy-env
origin