| name | write-pr |
| description | Create an actual GitHub pull request for Waitkit from the current branch. Gathers commits and diff, generates a Korean PR title/body, selects labels, asks for title confirmation, then runs gh pr create. Use only when the user explicitly asks to create/open/write a PR. |
| allowed-tools | Bash(git *:*), Bash(gh pr *:*), Bash(gh repo *:*), Bash(bash *create-pr.sh:*), Bash(cat *:*), Bash(mkdir:*), Bash(rm:*), Read, Write |
Waitkit Write PR
Use this skill only when the user explicitly asks to create or open a PR.
Step 1: Gather Context
git branch --show-current
git log origin/main..HEAD --oneline 2>/dev/null || git log --oneline -15
git diff origin/main...HEAD --stat 2>/dev/null || git diff HEAD~5...HEAD --stat
git diff origin/main...HEAD 2>/dev/null || git diff HEAD~5...HEAD
If .github/PULL_REQUEST_TEMPLATE.md exists, follow it. Otherwise, create a
concise Korean PR body with summary, changes, validation, and release impact.
Step 2: Select Labels
Read ${CLAUDE_SKILL_DIR}/references/labels.md and select 1-2 relevant labels
when the repository supports them.
Step 3: Generate PR Content
Title:
- Generate 3 options.
- Use concise Korean text.
- Mention package scope when useful, such as
core or docs.
Body:
- Summarize purpose, changed areas, validation commands, and release impact.
- Mention changesets when package behavior changes.
- Remove screenshot/video sections unless there is UI work.
- Create
.pr-tmp/ if needed, then write body to .pr-tmp/PR_BODY.md.
Show a preview and ask the user which title to use before creating the PR.
Step 4: Create PR
After title confirmation:
bash "${CLAUDE_SKILL_DIR}/scripts/create-pr.sh" "<confirmed-title>" ".pr-tmp/PR_BODY.md" "<label1>,<label2>"
Report the PR URL returned by gh.
Step 5: Cleanup
Remove only temporary PR body files created by this skill:
rm -f .pr-tmp/PR_BODY.md