← スキル一覧に戻る
name: git-pr-creation
description: |
This skill creates pull requests using the GitHub CLI with AI-generated descriptions. It analyzes the current branch, detects available target branches, and generates concise PR descriptions based on the commit history and changes. Use this when asked to create a pull request, file a PR, or when the user uses the

git-pr-creation
by foontinz
⭐ 0🍴 0📅 2025年12月24日
SKILL.md
name: git-pr-creation
description: |
This skill creates pull requests using the GitHub CLI with AI-generated descriptions. It analyzes the current branch, detects available target branches, and generates concise PR descriptions based on the commit history and changes. Use this when asked to create a pull request, file a PR, or when the user uses the /pr or /gpr command. It automates the PR creation process while ensuring quality descriptions.
Overview
This skill streamlines the pull request creation process by automatically generating professional PR descriptions and handling branch selection through the GitHub CLI. It analyzes commit history and changes to create meaningful, concise descriptions that follow best practices.
How It Works
- Branch Analysis: The skill identifies the current branch and available target branches using
ghCLI. - Target Branch Selection: Presents available branches for user selection.
- Change Analysis: Examines commits and changes between branches.
- PR Description Generation: Creates a concise, well-structured PR description.
- PR Creation: Uses GitHub CLI to create the pull request.
When to Use This Skill
This skill activates when you need to:
- Create a pull request from current branch.
- Generate a PR description automatically.
- Use the
/pror/gprcommand. - Streamline the PR creation workflow.
Examples
Example 1: Feature Branch PR
User request: "Create a PR for my feature branch"
The skill will:
- Detect current branch (e.g.,
feature/user-auth) - Present target branch options (main, develop, etc.)
- Analyze commits and changes
- Generate PR description like:
## Summary • Add user authentication module with OAuth2 support • Implement login/logout functionality • Add user profile management ## Test plan - [ ] Test OAuth2 login flow - [ ] Verify user session management - [ ] Test profile update functionality - Create the PR using GitHub CLI
Example 2: Bug Fix PR
User request: "/gpr"
The skill will:
- Detect current branch (e.g.,
fix/login-validation) - Present target branch options
- Analyze the bug fix changes
- Generate focused PR description highlighting the fix
- Create the PR with appropriate description
Best Practices
- Clean Branch History: Ensure the branch has a clean, logical commit history before PR creation.
- Descriptive Commits: Good commit messages help generate better PR descriptions.
- Review Before Creation: Always review the generated PR description before creation.
- Target Branch Selection: Choose the appropriate target branch (main, develop, etc.).
Integration
This skill integrates with the GitHub CLI and requires:
- Authenticated GitHub CLI (
gh auth login) - Sufficient permissions to create PRs
- Current branch should be pushed to remote
It complements other Git-related skills by providing a complete PR creation workflow.
スコア
総合スコア
35/100
リポジトリの品質指標に基づく評価
✓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
○言語
プログラミング言語が設定されている
0/5
○タグ
1つ以上のタグが設定されている
0/5
レビュー
💬
レビュー機能は近日公開予定です