PR merge 후 부산물 정리
SkillProductivityApplies a procedure for cleaning up after confirming a PR merge. Closes the GitHub issue, deletes the publish/task{N} remote branch, cleans up the local local/task{N} branch and its linked worktree, and returns to {BASE_BRANCH}. Call only immediately after the PR has actually been merged.
Available today. Use it from your connected AI after setup.
No other account needed.
Connect ahel once, and every AI you use reads what you have installed.
Then ask your AI: use the PR merge 후 부산물 정리 skill
What this skill tells your AI
The instructions your AI receives, as published by postmelee/hyper-waterfall in templates/mydocs/skills/pr-merge-cleanup/SKILL.md and read by ahel’s review.
트리거
- 작업지시자가 "merge 후 정리", "타스크 정리"를 명시 지시한 경우
- 본 SKILL을 직접 호출한 경우
사전 조건
- 대상 PR이 GitHub에서 실제 merged 상태 (
gh pr view {번호} --json state,mergeCommit) - 작업지시자의 이슈 close 승인 (또는 PR 본문에
closes #N명시되어 자동 close된 상태)
절차
- PR과 이슈 상태 확인
gh pr view {번호} --json state,mergedAt,mergeCommit,headRefName gh issue view {N} --json state- PR
state == MERGED아니면 즉시 중단하고 작업지시자 보고
- PR
- 이슈 close (자동 close 안 된 경우만)
gh issue close {N} - {BASE_BRANCH} 최신화
git fetch origin --prune git checkout {BASE_BRANCH} git pull --ff-only - 원격 publish 브랜치 삭제 (이미 PR merge 시
--delete-branch로 삭제된 경우 skip)git push origin --delete publish/task{N} 2>&1 || echo "이미 삭제됨" - 분리 worktree 사용했다면 제거
git worktree remove ../{repo}-task{N} git worktree prune - 로컬 작업 브랜치 삭제 (재사용 가능성 없을 때만)
git branch -d local/task{N} # 강제 삭제는 작업지시자 명시 승인 후에만: git branch -D local/task{N} - 오늘할일 최종 정리:
mydocs/orders/{yyyymmdd}.md의 #{N} 행이완료+ 시각 기록되어 있는지 재확인 - 결과 보고: 정리된 항목 목록을 작업지시자에게 짧게 회신
검증
gh pr view {번호}state == MERGED확인git branch -vv | grep local/task{N}출력 없음 (삭제된 경우)git ls-remote origin publish/task{N}빈 출력 (원격 삭제 확인)git worktree list출력에 정리 대상 worktree 미존재git branch --show-current가{BASE_BRANCH}
절대 하지 말 것
- PR이 merged 상태가 아닌데 이슈 close
- 작업지시자 다른 task 브랜치(
local/task{다른번호})나 메인 worktree 삭제 git branch -D강제 삭제 무단 사용 (병합 안 된 커밋이 있을 때 손실 위험)- 다른 작업자의 stash 삭제
호출 방법
- Codex:
$pr-merge-cleanup또는/skills메뉴 - Claude Code:
/pr-merge-cleanup
Signals
- GitHub stars
- 80
- Forks
- 15
- Last commit
- Jul 2026
Advanced
- Catalog kind
- skill
- Gateway key
pr-merge-cleanup- Source
- github.com/postmelee/hyper-waterfall