원클릭으로
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