원클릭으로
create-pr
Create or update a PR from current branch to main and address feedback
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Create or update a PR from current branch to main and address feedback
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
| name | create-pr |
| description | Create or update a PR from current branch to main and address feedback |
The user likes the state of the code.
There are $git status --porcelain | wc -l | tr -d ' ' uncommitted changes.
The current branch is $git branch --show-current.
The target branch is origin/main.
$git rev-parse --abbrev-ref @{upstream} 2>/dev/null && echo "Upstream branch exists." || echo "There is no upstream branch yet."
Existing PR: $gh pr view --json number,title,url --jq '"#\(.number): \(.title) - \(.url)"' 2>/dev/null || echo "None"
The user requested a PR.
Follow these exact steps:
git diff to review uncommitted changesgit diff origin/main... to review the full PR diff/tmp/pr-body.txt)../.agents/skills/create-pr/scripts/pr-body-update.sh --file /tmp/pr-body.txtgh pr view --json body --jq .body to confirm it changed.gh pr create --base main to create a new PR. Keep the title under 80 characters and the description under five sentences.The PR description should summarize ALL commits in the PR, not just the latest changes.
Report the PR URL to the user. Do not poll for CI status — the user monitors CI externally.
If the user reports CI failures or review feedback, address them:
If the user asks to merge:
gh pr merge --squash --delete-branch to squash-merge and delete the remote branch[ "$(git rev-parse --git-common-dir)" != "$(git rev-parse --git-dir)" ]wt remove --yes --force.git checkout main && git pullIf any step fails in a way you cannot resolve, ask the user for help.