원클릭으로
write-pr
Analyzes commits since branching from base, generates PR title/body following project conventions, and creates the PR via GitHub CLI.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Analyzes commits since branching from base, generates PR title/body following project conventions, and creates the PR via GitHub CLI.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
Git Flow-aware commit skill that auto-detects branch context, separates changes into logical units, and writes messages following project conventions loaded from .claude/skills/commit/references/commit-convention.md
Guides through DB schema change workflows in the correct order (Entity → DTO → Repository → Service → Test) with JPA DDL warnings and 2-phase column deletion strategy.
Collect PR review comments, critically assess each one against project conventions, auto-apply valid ones, post refutation replies for invalid ones, and prompt for partial ones. Replaces resolve-pr-comments.
Scans changed files for hardcoded secrets, SQL injection risks, missing auth/authz, and sensitive data in logs. Uses grep-based pattern matching on git diff output.
SOC 직업 분류 기준
| name | write-pr |
| description | Analyzes commits since branching from base, generates PR title/body following project conventions, and creates the PR via GitHub CLI. |
You are executing the write-pr skill for EveryGSM-server-v2.
git branch --show-current
git log --oneline origin/develop..HEAD
Default base is develop. If on a hotfix branch, base is main.
Confirm with user if base branch is unclear.
# All commits since branching from base
git log origin/develop..HEAD --oneline
git diff origin/develop...HEAD --stat
git diff origin/develop...HEAD
Read the full diff to understand:
Read .claude/skills/commit/references/commit-convention.md for context on scope names. Note that PR titles in this project do NOT follow the commit message format — they use a different [domain] prefix style described in Step 4.
Format: [{domain}] {Korean description}
Rules:
[...] is one of the project scopes: global, auth, admin, user, image, project[global] for cross-cutting / infrastructure / config / security / SDK / build changesv20260427.0) are an exception — they use the version string as the entire titleExamples (drawn from real project history):
[project] 프로젝트 삭제 API 구현[project] 프로젝트 등록 요청 시 디스코드 웹훅으로 메시지 전송하는 기능 구현[global] CORS 허용 출처 경로 추가[global] IP 기반 Rate-Limit 기능 구현[admin] 프로젝트 거절 사유 검증 로직 수정Follow the structure defined in @.github/PULL_REQUEST_TEMPLATE.md. The template's sections are:
# 개요 — 1~3 sentences explaining the purpose and background of the PR## 작업 내용 — concrete list of what changed in this PR## 관련 이슈 — linked issue (delete the section if none)## 체크리스트 — keep all three checkboxes; tick the ones already verified## 기타 — additional context (delete the section if none)Rules for body composition:
관련 이슈, 기타) rather than leaving them blank## 체크리스트 section as-is from the template; do not add or remove items## 작업 내용 should be a bullet list grouped by area when multiple domains are touched# Push if not yet pushed
git push -u origin $(git branch --show-current)
Create PR with gh CLI:
gh pr create \
--base develop \
--title "{title}" \
--body "$(cat <<'EOF'
{body content here}
EOF
)"
After creating the PR, output the result in this format:
## PR Created
Title: {title}
Base: develop ← {current-branch}
URL: {pr-url}
main unless it's a hotfix branch