pr

📁 jacehwang/skills 📅 Jan 31, 2026
12
总安装量
12
周安装量
#26886
全站排名
安装命令
npx skills add https://github.com/jacehwang/skills --skill pr

Agent 安装分布

claude-code 12
opencode 10
antigravity 10
github-copilot 10
codex 10
kimi-cli 10

Skill 文档

Context

  • Current branch: !git branch --show-current
  • Uncommitted changes: !git status --short
  • Remote tracking status: !git status -sb | head -1
  • Existing PR: !gh pr view --json number,title,url 2>/dev/null || echo "none"
  • Commits since main: !git log main..HEAD --oneline
  • Full commit details: !git log main..HEAD --format="- %h: %s"
  • Changes summary: !git diff main...HEAD --stat | tail -5

Your task

Create a new PR or update an existing PR for the current branch.

Pre-checks

  1. Uncommitted changes: If there are uncommitted changes, warn the user and ask if they want to commit first
  2. Push status: If the branch is not pushed or behind remote, push it first with git push -u origin <branch>

Behavior

If NO existing PR → Create new PR

Use gh pr create with title, body, and assignee.

If PR already exists → Update PR body only

Use gh pr edit to update the body with the latest commit list. Do NOT change the title.

PR Format

Title (for new PRs only)

Rules:

  • English only – Never use Korean in titles
  • 40 chars max (excluding prefix) – Be extremely concise
  • Use short verbs: Add, Fix, Update, Remove, Refactor
  • Ticket prefix: If the branch name contains a ticket identifier (pattern: letters + hyphen + numbers, e.g., ABC-123 or proj-1), extract it, uppercase it, and prepend as [ABC-123] prefix to the title

Format:

  • With ticket: [TASK-123] Concise description
  • Without ticket: Concise description

Ticket detection examples:

  • Branch TASK-123 → [TASK-123]
  • Branch TASK-123-add-feature → [TASK-123]
  • Branch feature/JIRA-456-fix-bug → [JIRA-456]
  • Branch proj-42 → [PROJ-42]
  • Branch proj-42-fix-layout → [PROJ-42]
  • Branch add-new-feature → no prefix

Examples:

  • [TASK-123] Add proposal management
  • [FE-42] Fix auth flow
  • [PROJ-42] Fix layout issue (lowercase branch → uppercased prefix)
  • Update Claude Code config (no ticket in branch)

Body

한국어로 작성. Use this format with HEREDOC:

Creating new PR:

gh pr create --title "[TASK-123] Description" --assignee @me --body "$(cat <<'EOF'
## 요약
<이 PR이 하는 일을 간략히 설명>

## 변경사항
<커밋 해시와 함께 목록으로 작성>

🤖 Generated with [Claude Code](https://claude.com/claude-code)
EOF
)"

Updating existing PR:

gh pr edit --body "$(cat <<'EOF'
## 요약
<이 PR이 하는 일을 간략히 설명 - 기존 요약 유지 또는 확장>

## 변경사항
<모든 커밋 해시와 함께 목록으로 작성 - 전체 목록>

🤖 Generated with [Claude Code](https://claude.com/claude-code)
EOF
)"

Guidelines

  • Analyze ALL commits in the branch (not just the latest) to understand the full scope
  • Title은 영어로, Body는 한국어로 작성
  • Include all commit hashes in the body for traceability
  • When updating, preserve the intent of the original summary while incorporating new changes