PhysicsLab Worktrees
Use this skill when the user asks to start a new slice/milestone branch or create a worktree.
Behavior
- •If branch name is missing, ask for it.
- •Start with safe defaults (no push):
- •
powershell ./tools/dev/start_slice_worktree.ps1 -Branch work/vX.Yz
- •
- •Remind the user:
- •Do all work inside the created worktree folder.
- •Push is disabled unless explicitly requested (
-Push). - •The start script enforces
fetch + ff-only pullfor localmainvsorigin/main; if main is ahead/diverged, repair main first.
- •Before wrapping up a slice, always provide:
- •one suggested PR title
- •a concise PR summary/body ready to paste into GitHub.
One-liners
- •Start (local only):
- •
powershell ./tools/dev/start_slice_worktree.ps1 -Branch work/v5.5d2
- •
- •Start after syncing from remote main explicitly:
- •
git fetch origin --prune; git checkout main; git pull --ff-only origin main; powershell ./tools/dev/start_slice_worktree.ps1 -Branch work/v5.5d2
- •
- •Start and push upstream (explicit only):
- •
powershell ./tools/dev/start_slice_worktree.ps1 -Branch work/v5.5d2 -Push
- •
- •List worktrees:
- •
powershell ./tools/dev/list_worktrees.ps1
- •
- •Cleanup worktree + local branch:
- •
powershell ./tools/dev/remove_slice_worktree.ps1 -Branch work/v5.5d2 -DeleteBranch
- •