用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/ncukondo/search-hub --skill merge-pr命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| 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 --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 spec/tasks/ROADMAP.md && git commit -m "chore(tasks): complete task X"git pushThe script handles this with --force, but if it still fails:
rm -rf "$HOME/.herdr/worktrees/search-hub/<branch-dir>"
git worktree prune
Use -D (force delete):
git branch -D <branch-name>
You're still in the worktree. Switch first:
cd "$(git rev-parse --show-toplevel)"
git checkout main
Kill it first:
./scripts/kill-agent.sh <pane-id>
Implements a task from spec/tasks in a git worktree following TDD. Use when working on a specific task by keyword.
Detects PRs with changes requested and spawns fixer agents. Use when addressing review feedback.
Analyzes ROADMAP and implements tasks in parallel with automatic orchestration. Use when starting implementation work.