一键导入
merge-pr
Merges a PR with automatic cleanup of worktree and branch. Handles all edge cases. Use when merging approved PRs.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Merges a PR with automatic cleanup of worktree and branch. Handles all edge cases. Use when merging approved PRs.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Reviews a GitHub PR by checking CI status, running tests, and posting review. Always reports findings to user. Use when reviewing PRs or when the user says "review PR".
Analyzes ROADMAP and implements tasks in parallel with automatic orchestration. Use when starting implementation work.
Monitors all worker agents and automatically transitions them through the workflow. Use after spawning workers with /implement, or to check orchestration status.
Detects PRs with changes requested and spawns fixer agents. Use when addressing review feedback.
Detects all open PRs and spawns reviewer agents for each. Use when starting batch review.
Creates a new task file from template. Use when adding a new task to the project.
| name | merge-pr |
| description | Merges a PR with automatic cleanup of worktree and branch. Handles all edge cases. Use when merging approved PRs. |
PR #$ARGUMENTS のマージ処理を行います。
!gh pr view $ARGUMENTS --json headRefName,state,mergeable,reviewDecision --jq '"Branch: \(.headRefName)\nState: \(.state)\nMergeable: \(.mergeable)\nReview: \(.reviewDecision)"' 2>/dev/null
!gh pr checks $ARGUMENTS 2>/dev/null
!git worktree list
Recommended: Use the merge script that handles all edge cases:
./scripts/merge-pr.sh $ARGUMENTS
This script automatically:
# Squash merge (default)
./scripts/merge-pr.sh $ARGUMENTS --squash
# Regular merge commit
./scripts/merge-pr.sh $ARGUMENTS --merge
# Rebase merge
./scripts/merge-pr.sh $ARGUMENTS --rebase
# Skip task file management
./scripts/merge-pr.sh $ARGUMENTS --no-task
# Preview what would happen
./scripts/merge-pr.sh $ARGUMENTS --dry-run
For multiple PRs, run sequentially:
./scripts/merge-pr.sh 123
./scripts/merge-pr.sh 124
./scripts/merge-pr.sh 125
Or parallel (if no conflicts expected):
./scripts/merge-pr.sh 123 &
./scripts/merge-pr.sh 124 &
./scripts/merge-pr.sh 125 &
wait
After merge, update ROADMAP if needed:
spec/tasks/ROADMAP.mdgit add -A && git commit -m "chore(tasks): complete task X"git pushThe script handles this with --force, but if it still fails:
rm -rf /workspaces/search-hub--worktrees/<branch-dir>
git worktree prune
Use -D (force delete):
git branch -D <branch-name>
You're still in the worktree. Switch first:
cd /workspaces/search-hub
git checkout main
Kill it first:
./scripts/kill-agent.sh <pane-id>