What problem does it solve?
This Skill safely drains multiple open xt worktree pull requests in the correct order, preventing history drift, stale CI decisions, and avoidable rebase conflicts when several sessions are waiting to merge.
Core Features & Use Cases
- FIFO PR queue handling: Finds open xt/ pull requests, sorts them by creation time, and merges the oldest first.
- CI and SHA validation: Checks that the current PR head matches the CI run before merging, so a green result is still trustworthy after rebases.
- Rebase cascade management: Rebases every remaining branch onto the new main after each merge to keep history linear.
- Failure-aware workflow: Stops on auth, dirty working tree, lease violations, and unresolved conflicts so you can intervene safely.
- Use case: When a project has several worktree sessions finishing at different times, this Skill turns the merge process into a repeatable queue instead of a manual branch-by-branch cleanup task.
Quick Start
Use the xt-merge skill to review the open xt/ pull request queue, verify the head PR’s CI, and merge the oldest branch while rebasing the remaining branches in order.