← スキル一覧に戻る

create-pr
by genlayerlabs
create-prは、other分野における実用的なスキルです。複雑な課題への対応力を強化し、業務効率と成果の質を改善します。
⭐ 75🍴 28📅 2026年1月23日
SKILL.md
name: create-pr description: Create GitHub pull requests by analyzing branch diff and following the project template
Create Pull Request Skill
Create GitHub pull requests by analyzing branch diff and following the project template.
Prerequisites
- On a feature branch (not main)
- Changes committed locally
- GitHub CLI (
gh) authenticated
Workflow
1. Gather Context
# Get current branch name
git branch --show-current
# Check if branch is pushed
git status
# Get diff against main
git diff main...HEAD --stat
git diff main...HEAD
# Get commit history for this branch
git log main..HEAD --oneline
2. Analyze Changes
Review the diff to understand:
- What: Files changed, functions modified, features added/removed
- Why: The purpose behind the changes (bug fix, feature, refactor)
- Testing: What tests were added or should be run
3. Create PR
Use gh pr create with the project template structure:
gh pr create --title "<type>: <description>" --body "$(cat <<'EOF'
Fixes #issue-number-here
# What
- [Describe specific changes made]
- [List modified components/files]
# Why
- [Explain the motivation]
- [Reference related issues]
# Testing done
- [List tests run]
- [Describe manual testing]
# Decisions made
- [Document any non-obvious choices]
# Checks
- [x] I have tested this code
- [x] I have reviewed my own PR
- [ ] I have created an issue for this PR
- [x] I have set a descriptive PR title compliant with conventional commits
# Reviewing tips
- [Guidance for reviewers]
# User facing release notes
- [Changes visible to end users, if any]
EOF
)"
Conventional Commit Types
| Type | Use Case |
|---|---|
| feat | New feature |
| fix | Bug fix |
| docs | Documentation only |
| style | Formatting, no code change |
| refactor | Code change, no feature/fix |
| perf | Performance improvement |
| test | Adding/fixing tests |
| chore | Maintenance, deps, config |
Examples
Feature PR
gh pr create --title "feat: add user authentication" --body "..."
Bug Fix PR
gh pr create --title "fix: resolve timeout in consensus worker" --body "..."
With Issue Link
gh pr create --title "fix: handle empty contract data" --body "Fixes #123..."
Tips
- Keep PR title under 72 characters
- Reference issue numbers with
Fixes #NorCloses #Nfor auto-close - For WIP, use
gh pr create --draft - Push branch first if needed:
git push -u origin $(git branch --show-current)
スコア
総合スコア
60/100
リポジトリの品質指標に基づく評価
✓SKILL.md
SKILL.mdファイルが含まれている
+20
✓LICENSE
ライセンスが設定されている
+10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
✓フォーク
10回以上フォークされている
+5
○Issue管理
オープンIssueが50未満
0/5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
レビュー
💬
レビュー機能は近日公開予定です