Back to list
prichodko

create-pr

by prichodko

0🍴 0📅 Jan 19, 2026

SKILL.md


name: create-pr description: Create GitHub PR with auto-generated description from commits and diff. Use when user wants to open a pull request or needs PR description.

Create PR

Generate PR description from commits/diff, confirm with user, then create PR.

Workflow

1. Pre-flight checks

# ensure not on main/master
git branch --show-current

Abort if on main or master.

2. Detect base branch

# try local detection first (faster)
git branch -l main master 2>/dev/null | head -1 | xargs

Fallback if neither exists:

git remote show origin | grep "HEAD branch" | cut -d: -f2 | xargs

3. Check if pushed

git status -sb

If "ahead", need to push first:

git push -u origin HEAD

4. Check for PR template

cat .github/PULL_REQUEST_TEMPLATE.md 2>/dev/null

Use template structure if exists.

5. Gather context

# commits since base
git log --oneline <base>..HEAD

# full diff
git diff <base>...HEAD

# changed files
git diff --name-only <base>...HEAD

Read key changed files if helpful for understanding context.

6. Analyze and draft

  • extract intent from commit messages
  • group changes: feat/fix/refactor/docs/test
  • note breaking changes (look for BREAKING: or !:)
  • link issues mentioned (#123, fixes #123)

7. Draft PR

## Summary
<1-3 bullets, what and why>

## Changes
<grouped list>

## Testing
<how to verify, if applicable>

8. Confirm with user

Present:

  • suggested title
  • full body

Wait for approval or edits. Do NOT proceed without confirmation.

9. Create PR

gh pr create --title "<title>" --body "$(cat <<'EOF'
<body>
EOF
)"

Return PR URL to user.

Notes

  • never create PR without user confirmation
  • conventional commits → conventional PR title
  • keep summary focused on "why", changes on "what"
  • if PR template exists, adapt to its structure

Score

Total Score

50/100

Based on repository quality metrics

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

Reviews

💬

Reviews coming soon