Merge Worktree
Use this skill when a worktree contains changes that must be merged into the default branch at the repo root. This workflow is driven by a single renderer script in the repo root.
Quick Start
- •Run
bash <path-to-skill>/render-instructions.shfrom the working dir. - •Follow the steps in the rendered instructions to merge or cherry-pick.
Workflow
- •Print the instructions with fields substituted.
- •Run the commands in order, using
git -C <worktree_path>for worktree ops. - •Resolve conflicts line-by-line with
apply_patchonly. - •Verify
git statusis clean, then remove the worktree shown in the output (not the repo root).
Helper Script
Use render-instructions.sh to render the instruction template with current
repo values (for example bash <path-to-skill>/render-instructions.sh).