merge-worktree

Installation
SKILL.md

Merge Worktree

Branch-finishing safety patterns are adapted from the MIT-licensed finishing-a-development-branch workflow. Exact pin and relationship are recorded in sources.json.

Integrate one registered Git worktree with a merge commit. This skill owns integration and worktree cleanup; implementation workflows must hand off to it rather than merging for themselves.

Resolve Authorization

Determine these inputs from the request and repository:

  • source worktree path and branch;
  • target branch and the base from which the work forked;
  • integration mode: local or GitHub PR;
  • for PR mode, action: open only or merge after checks; and
  • cleanup choice: enabled only by an explicit --clean-up request, otherwise ask after successful integration.

Use the repository default branch only when unambiguous. If authorization is incomplete, offer: merge locally, open a PR without merging, open and merge a PR after checks, or keep the branch unchanged. Opening a PR never authorizes merging it. A local merge never authorizes a push.

Candidate handoff from orchestrate-implementation

Installs
42
Repository
legout/skills
First Seen
Sep 4, 2026