원클릭으로
pr-creator
Creates GitHub pull requests with comprehensive descriptions by analyzing git history and code changes
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Creates GitHub pull requests with comprehensive descriptions by analyzing git history and code changes
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Performs thorough code review on local changes or PRs. Use this skill proactively after implementing code changes to catch issues before commit/push. Also use when reviewing PRs from other engineers.
Generate a portable session handoff document (task, decisions, state, next steps) as a single copy-pasteable markdown block for resuming on another device or terminal.
Create or update AGENTS.md with repo-specific patterns, conventions, commands, and gotchas for LLM coding agents. Use after implementing features that introduce new patterns worth documenting.
Continues after a session crash while working on a task
Get multi-model perspectives (Codex + Gemini) on any work product. Use at any development stage — planning, design, implementation, testing — to catch blind spots the primary agent might miss.
Creates or updates PLAN.md based on session - auto-detects create vs update mode
| name | pr-creator |
| version | 1.0.0 |
| description | Creates GitHub pull requests with comprehensive descriptions by analyzing git history and code changes |
| allowed-tools | AskUserQuestion, Bash, Glob, Grep, Read, TodoWrite |
| model | sonnet |
git rev-parse --show-toplevel 2>/dev/null || echo "NOT_IN_GIT_REPO"git rev-parse --abbrev-ref HEAD 2>/dev/null || echo "NO_BRANCH"git symbolic-ref refs/remotes/origin/HEAD 2>/dev/null | sed 's@^refs/remotes/origin/@@' || echo "main"git status --porcelain 2>/dev/null | wc -l | xargsgit rev-parse --abbrev-ref --symbolic-full-name @{u} 2>/dev/null || echo "NOT_PUSHED"git rev-list --count @{u}..HEAD 2>/dev/null || echo "0"Usage: /pr-creator - Create draft PR (default) | /pr-creator open - Create regular PR
Expert software engineer creating high-quality PR descriptions that facilitate efficient code review.
Validate environment:
Mode: Check $1 equals "open" → regular PR, else draft PR
Classify PR type via git log origin/{base}..HEAD --format="%s":
Inspect changes:
git log origin/{base}..HEAD
git diff origin/{base}...HEAD --stat
git diff origin/{base}...HEAD
gh issue list --limit 20 # Search for related open issues
Look for: External reference IDs in commits/branch name (GitHub issues, Jira tickets, Sentry issues, PagerDuty incidents) | Related open issues via gh issue list | Breaking changes | New dependencies | Security changes (auth, validation) | Performance implications
Use structure from references/templates.md. Key principles:
-), no bold/headers in body; no hard line wraps in prose paragraphs; no or non-breaking spaces — regular spaces onlyreferences/templates.md)Claude-Session: links or agent attribution footersSee references/templates.md for detailed structure and examples.
Check for PLAN files:
git log origin/{base}..HEAD --name-only --pretty=format: | grep -q "^PLAN" || git ls-files | grep -q "^PLAN"
If found: STOP - PLAN files are dev docs that shouldn't be in PRs. Provide remediation: Remove PLAN files and amend/rebase OR Create clean branch without PLAN files
Ensure branch pushed:
# If Remote status = "NOT_PUSHED":
git push -u origin HEAD
Title must use conventional commit format: <type>(<optional-scope>): <imperative verb> <specific change> (50-70 chars). Use the PR type detected in Step 1. Same accuracy rules as Commit Messages in AGENTS.md.
Create (use HEREDOC for formatting):
Draft (default):
gh pr create --title "Title" --base {base} --draft --body "$(cat <<'EOF'
[Full description]
EOF
)"
Regular (open override):
gh pr create --title "Title" --base {base} --body "$(cat <<'EOF'
[Full description]
EOF
)"
Display PR URL upon success.
Accuracy: Inspect actual commits via git | Review code changes via diff | Don't rely solely on commit messages | Verify issue refs exist | Derive URLs for external references from context (never hardcode base URLs)
Structure: Follow 3-section format (opening, context, implementation) | 6-12 lines maximum | Proper issue ref formatting
Branch Management: Verify branch pushed before PR | Use git push -u origin HEAD if needed | Confirm base branch correct | Block PRs with PLAN files
Formatting: Always use HEREDOC in gh pr create --body | Ensure proper line breaks/bullets | Blank line before issue refs
PR Maintenance: This skill covers PR creation only. After pushing additional commits to an existing PR, follow the PR Maintenance rule in AGENTS.md: rewrite the description from scratch as a snapshot of what the branch changes vs. main.
Goal: Create PR descriptions making code review efficient and thorough, providing reviewers all context to understand and evaluate changes quickly.