From common
현재 브랜치의 변경사항을 분석하여 GitHub PR을 생성하거나 기존 PR 본문을 업데이트하는 스킬. "PR 만들어줘", "풀리퀘 올려줘", "PR 생성해줘", "pull request 만들어줘", "PR 본문 업데이트해줘" 등의 표현이 나오면 반드시 이 스킬을 사용할 것.
How this skill is triggered — by the user, by Claude, or both
Slash command
/common:create-prThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
base 브랜치 감지:
base 브랜치 감지:
git symbolic-ref refs/remotes/origin/HEAD 2>/dev/null | sed 's|refs/remotes/origin/||'
감지 실패 시 main을 기본값으로 사용.
변경사항 확인 (감지한 base 브랜치로 대체):
git log <base>..<HEAD> --oneline
git diff <base>...<HEAD> --stat
필요시 주요 파일 diff 상세 확인.
git status -sb
현재 브랜치가 remote에 없으면 PR 생성 전에 push:
git push -u origin HEAD
아래 템플릿으로 작성:
## Summary
<!-- 1-2문장 요약 -->
## Key Changes
<!-- 주요 변경사항 목록 -->
-
## Technical Details
<!-- 구현 방식·아키텍처 변경·핵심 로직 -->
## Rationale
<!-- 이 방식을 선택한 이유·검토한 대안 -->
PR 존재 여부 확인:
gh pr view --json number,url 2>/dev/null
PR이 없는 경우 — 생성 (기본 draft):
gh pr create --draft --title "<PR 제목>" --body "$(cat <<'EOF'
<PR 본문>
EOF
)"
사용자가 "바로 올려줘", "draft 말고", "ready로" 등 명시적으로 요청한 경우 --draft 옵션을 제거한다.
PR이 이미 있는 경우 — 업데이트:
기존 본문을 먼저 읽어 내용을 보존한다:
gh pr view --json body --jq '.body'
기존 본문을 기반으로 필요한 부분만 수정하여 업데이트:
gh pr edit --title "<PR 제목>" --body "$(cat <<'EOF'
<PR 본문>
EOF
)"
기존 본문의 구조와 내용을 최대한 유지하고, 변경된 부분만 반영한다
draft/ready for review 상태는 변경하지 않는다
필요시 --reviewer, --label 옵션 추가
완료 후 PR URL 사용자에게 전달
<type>: <요약> 형식을 따른다 (commit-guidelines.md의 커밋 타입 기준)npx claudepluginhub gagip/gagip-dev --plugin commonGenerates a PR description from conversation context and git diff, then opens PR creation in browser. Useful for automating the PR drafting workflow.
Creates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.