What problem does it solve? Finishing a task developed in a Git worktree requires manually promoting its commits onto master without rewriting published history, then cleaning up the worktree and branch—an error-prone process where a wrong rebase can silently rewrite master's commits and diverge from origin. ## Core Features & Use Cases - Linear History Promotion: Replays the worktree branch's unique commits onto master via fast-forward merge or ordered cherry-pick, keeping each commit separate without squashing or merging. - Safe Fallback Logic: Tries merge --ff-only first and falls back to cherry-pick master..branch when master has advanced, avoiding the dangerous git rebase that rewrites published commits. - Protected Cleanup: Removes the worktree and deletes its branch only after promotion succeeds, and never touches untracked or modified files in the user's primary working tree. - Use Case: After finishing a feature in a worktree created by the wt skill, invoke this skill to land those commits on master as a clean linear history and dispose of the temporary worktree. ## Quick Start Ask the AI to run the wtcleanup skill to promote the current worktree's commits onto master and remove the worktree and its branch.