| name | write-pr |
| description | Analyzes commits since branching from develop/main, generates PR title/body following project conventions, and creates the PR via GitHub CLI for hellogsm-server-25. |
You are executing the write-pr skill for hellogsm-server-25.
Step 1 โ Analyze Commits
git branch --show-current
git log origin/develop..HEAD --oneline
git diff origin/develop...HEAD --stat
git diff origin/develop...HEAD
Default base is develop. For hotfix branches, base is main.
Step 2 โ Compose PR Title
Format: {type}({scope}): {Korean description} (โค 72 chars)
Types: feat, fix, update, refactor, test, chore, ci/cd
Scopes: global, member, oneseo, operation, common
Step 3 โ Compose PR Body
## ๊ฐ์
{์์
๋ด์ฉ์ 1~3 ๋ฌธ์ฅ์ผ๋ก ์์ฝ}
## ๋ณธ๋ฌธ
{๋ณ๊ฒฝ ์ฌํญ์ ๋ ์์ธํ๊ฒ ์์ โ ์ ์ด ๋ณ๊ฒฝ์ด ํ์ํ๋์ง, ์ด๋ค ๋ฌธ์ ๋ฅผ ํด๊ฒฐํ๋์ง ํฌํจ}
### ์ถ๊ฐ
{๊ธฐ์กด์ ์๋ ๋ฌด์ธ๊ฐ(๊ธฐ๋ฅ, ์ฝ๋ ๋ฑ)๊ฐ ์ถ๊ฐ๋ ๊ฒฝ์ฐ์๋ง ์์ฑ. ์์ผ๋ฉด ์น์
์ ์ฒด ์๋ต}
- {์ถ๊ฐ๋ ํญ๋ชฉ bullet}
### ๋ณ๊ฒฝ
{๊ธฐ์กด์ ์๋ ๋ฌด์ธ๊ฐ๊ฐ ๋ณ๊ฒฝ๋ ๊ฒฝ์ฐ์๋ง ์์ฑ. ์์ผ๋ฉด ์น์
์ ์ฒด ์๋ต}
- {๋ณ๊ฒฝ๋ ํญ๋ชฉ bullet}
Rules for body composition:
### ์ถ๊ฐ section: include only when new files, features, or endpoints are added
### ๋ณ๊ฒฝ section: include only when existing behavior, config, or code is modified
- If only additions exist, omit
### ๋ณ๊ฒฝ and vice versa
- Write in Korean
Step 4 โ Create PR
git push -u origin $(git branch --show-current)
gh pr create \
--base develop \
--title "{title}" \
--body "$(cat <<'EOF'
{body}
EOF
)"
Step 5 โ Output
## PR Created
Title: {title}
Base: develop โ {current-branch}
URL: {url}