بنقرة واحدة
pr-draft
Generate PR title, body, and labels from commits since the base branch, then create the PR on GitHub.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Generate PR title, body, and labels from commits since the base branch, then create the PR on GitHub.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
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.
Create Git commits by splitting changes into logical units following project conventions. Handles Git Flow automatically — detects develop branch and checks out a feature branch before committing.
Generate PR title, body, and labels from commits since the base branch, then create the PR on GitHub. Handles base branch detection, label selection, and PR creation end-to-end.
Create Git commits by splitting changes into logical units following project conventions. Handles Git Flow automatically — detects develop branch and checks out a feature branch before committing.
Run a structured checklist over changed files — DTO conventions, Java/Spring style, JPA/transaction correctness, test coverage, commit conventions, and security basics. Produces a ✓/⚠/✗ report.
For each inline PR review comment, judge whether it has been resolved in the current branch diff and reply with the resolving commit hash. Use after addressing PR feedback.
| name | pr-draft |
| description | Generate PR title, body, and labels from commits since the base branch, then create the PR on GitHub. |
| allowed-tools | Bash(git *:*), Bash(bash *create-pr.sh:*), Bash(cat *:*), Bash(gh *:*), Read, Write |
Run all at once:
git branch --show-current
git log origin/develop..HEAD --oneline 2>/dev/null || git log --oneline -15
git diff origin/develop...HEAD --stat 2>/dev/null || git diff HEAD~5...HEAD --stat
git diff origin/develop...HEAD 2>/dev/null || git diff HEAD~5...HEAD
Also read the PR template:
cat .github/PULL_REQUEST_TEMPLATE.md
Search all issues (open and closed) to find the related one:
gh issue list --state all --limit 100 --json number,title,state,labels
Match the most relevant issue by comparing issue titles and labels against the branch name and commit messages. Note the issue number for use in Steps 3–5.
Read ${CLAUDE_SKILL_DIR}/references/labels.md and select 1–2 appropriate labels.
Title — Generate 3 options:
add ::, fix ::, etc.)← 추천Body — Follow .github/PULL_REQUEST_TEMPLATE.md structure:
~하였습니다, ~되었습니다, ~추가하였습니다Close #N using the related issue number found in Step 1Start by copying the PR template as the base:
cp .github/PULL_REQUEST_TEMPLATE.md PR_BODY.md
Then fill in each section of PR_BODY.md with the generated content — do not change the section headers or structure. Display:
## 추천 PR 제목
1. title1
2. title2
3. title3 ← 추천
## 선택된 라벨
- label1, label2
## 관련 이슈
- #N: issue title
## PR 본문 미리보기
[body content]
Ask the user to confirm which title to use. If no answer, proceed with the recommended title.
Push the current branch to remote first:
git push -u origin HEAD
Then create the PR:
bash "${CLAUDE_SKILL_DIR}/scripts/create-pr.sh" "<confirmed-title>" "PR_BODY.md" "<label1>,<label2>"
After creation, display the PR URL.
Cleanup: remove PR_BODY.md.