一键导入
merge-pr
Merge a GitHub PR and clean up the worktree. Use when merging a PR from a feature branch worktree that meets merging criteria.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Merge a GitHub PR and clean up the worktree. Use when merging a PR from a feature branch worktree that meets merging criteria.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | merge-pr |
| description | Merge a GitHub PR and clean up the worktree. Use when merging a PR from a feature branch worktree that meets merging criteria. |
This skill handles the complete workflow for merging a GitHub PR when working in a gwt-managed worktree. It coordinates the merge, worktree cleanup, and branch synchronization.
Use this skill when:
When working in a gwt worktree, the standard gh pr merge -sd command is insufficient because:
-d flag cannot delete the local branch while it's checked out in the current worktreeVerify the current state and PR readiness:
# Check current branch and worktree
gwt current
# Check PR status - ensure it's ready to merge
gh pr view
STOP and ask for instructions if:
git status shows modifications)Merge with squash (do not delete branches yet):
gh pr merge -s
Once the merge succeeds, proceed with cleanup.
Remove the current worktree and switch back to home:
gwt rm --this -y
If gh pr merge fails:
gh pr viewIf gwt rm --this fails:
gwt ls