一键导入
merge-pr
Merges an approved PR and performs post-merge cleanup. Use after PR is approved.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Merges an approved PR and performs post-merge cleanup. Use after PR is approved.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Implements a task from spec/tasks in a git worktree following TDD. Use when working on a specific task by keyword.
Analyzes ROADMAP and implements tasks in parallel using worktrees and subagents. Use when starting implementation work.
Reviews a PR from the main repository without a worktree. Use for lightweight PR review.
Cleans up completed phases in ROADMAP, moving relevant info to specs or docs.
Implements a task locally (without worktree) following TDD with IPC status reporting. Use when working on a task in an existing branch.
Creates a new task file from template. Use when adding a new task to the project.
| name | merge-pr |
| description | Merges an approved PR and performs post-merge cleanup. Use after PR is approved. |
PR $ARGUMENTS をマージし、後処理を行います。
gh pr view $ARGUMENTS --json state,reviewDecision,statusCheckRollup
gh pr merge $ARGUMENTS --squash --delete-branch
git checkout main
git pull origin main
PARENT_DIR="$(cd "$(git rev-parse --show-toplevel)/.." && pwd)"
PROJECT_NAME="$(basename "$(git rev-parse --show-toplevel)")"
WORKTREE_DIR="${PARENT_DIR}/${PROJECT_NAME}--worktrees"
# Remove worktree for the merged branch if it exists
git worktree list | grep "$WORKTREE_DIR" && git worktree prune
spec/tasks/completed/ へ移動git add spec/tasks/ROADMAP.md spec/tasks/completed/
git commit -m "docs: update roadmap and move completed task"
git push origin main