원클릭으로
create-pr
Create a pull request with a structured description. Use when the user says "create pr", "open pr", or "pull request".
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Create a pull request with a structured description. Use when the user says "create pr", "open pr", or "pull request".
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Pick a bug from Linear, fix it test-first, verify, and update. Use when the user says "fix issue", "fix bug", "work on known issue", or "pick a bug".
Create a new ticket for task tracking. Use when the user says "create ticket", "new ticket", or "track this".
Diagnose an integration/E2E test log, classify failures by severity, and batch-create issues. Use when the user says "smoke test", "diagnose log", "triage test log", or provides a test log.
Pull Linear issues and generate a local snapshot for quick reference. Use when the user says "sync linear", "pull linear issues", "update from linear", or "show my issues".
Triage, prioritize, and groom Linear issues. Use when the user says "triage linear", "review inbox", "prioritize issues", "groom backlog", or "clean up issues".
Investigate a bug using structured differential diagnosis. Use when the user says "diagnose", "investigate this", "what's causing this", or "figure out why".
| name | create-pr |
| description | Create a pull request with a structured description. Use when the user says "create pr", "open pr", or "pull request". |
| argument-hint | [base-branch] |
| user-invocable | true |
| allowed-tools | Bash, Read, Grep, Glob |
| model | sonnet |
Create a well-formatted PR from the current branch.
Gather context:
git branch --show-current
git log --oneline main..HEAD # or dev..HEAD depending on base
git diff main..HEAD --stat # summary of all changes
If $ARGUMENTS is provided, use it as the base branch. Otherwise, determine the base branch from CLAUDE.md Production Protection section (typically dev or main).
Analyze ALL commits in the branch (not just the latest) to understand the full scope of changes.
Generate PR content:
Show the proposed PR to the user for approval before creating it.
Push and create the PR:
git push -u origin $(git branch --show-current)
gh pr create --title "<title>" --body "$(cat <<'EOF'
## Summary
- <bullet 1>
- <bullet 2>
## Changes
- <file/module>: <what changed>
## Test Plan
- [ ] <test step 1>
- [ ] <test step 2>
EOF
)"
Return the PR URL.
-u flag to set upstream tracking