git-worktree-feature-flow
Installation
SKILL.md
Git Worktree Feature Flow
Use this skill when the user wants an isolated working directory for a feature (via git worktree), then to merge that branch back into a target branch and clean up the worktree.
Examples (user prompts)
- "Create a worktree for
feature/foooffmain." - "Spin up a worktree for my change, put it in
../wts/feature-foo." - "Merge my worktree branch back into
mainwith a squash merge, then clean up." - "Finish the worktree for
feature/foobut keep the branch around."
Quick flow
- Start: create a feature worktree
- Ask for
branchname (required). - Optional: ask for
baseref (default: current branch). - Run
scripts/worktree-start.sh.
- Work: user edits/commits in the worktree directory.