ワンクリックで
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