원클릭으로
publish
Refactor recent changes then ship as a PR with auto-merge.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Refactor recent changes then ship as a PR with auto-merge.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
| name | publish |
| description | Refactor recent changes then ship as a PR with auto-merge. |
| user-invocable | true |
| allowed-tools | Read, Edit, Write, Bash, Glob, Grep, Agent |
Sync, refactor recent changes, sync again, then ship the current branch as a PR with auto-merge enabled. Be thorough on refactoring but efficient on shipping.
Input: $ARGUMENTS optionally describes what was done
(used for the commit message and PR description).
Sync the branch with the remote default branch before refactoring to avoid working on stale code.
Run in parallel:
git fetch origingit remote show origin | grep 'HEAD branch' | awk '{print $NF}'git branch --show-currentDetermine DEFAULT_BRANCH and CURRENT_BRANCH. If on default branch, STOP: "Create a feature branch first."
Then rebase:
git rebase origin/<DEFAULT_BRANCH>
If conflicts, STOP and show files.
Identify recent changes: use git diff and git log to
find newly implemented or modified code. Establish the list
of files to review.
Re-read all identified files from disk, then:
Apply fixes, then summarize Pass 1 changes.
Re-read ALL the same files again from disk (fresh read), then:
Apply fixes, then summarize Pass 2 changes.
Execute the shipping process efficiently. Batch commands and do NOT deliberate.
Run git status --porcelain and
git diff --stat && git diff --cached --stat in parallel
to check for uncommitted changes.
If there are changes:
.env, credentials, large
binaries). In parallel, check merge-base:
git merge-base --is-ancestor HEAD origin/<DEFAULT_BRANCH>git commit --amend.$ARGUMENTS was
provided, use it to inform the commit message. Infer type
and scope from the diff.Sync again to pick up any changes that landed during refactoring:
git fetch origin && git rebase origin/<DEFAULT_BRANCH>
If conflicts, STOP and show files. Otherwise, in parallel:
git push --force-with-lease origin HEADgh pr view --json url,title,state 2>/dev/nullgh pr merge --auto --rebase, print URL.gh pr create with concise title (<70 chars),
body with ## Summary (bullets) and ## Test plan. If
$ARGUMENTS provided, use it for the summary. Then run
gh pr merge --auto --rebase.Print a short summary (max 5 lines):