Create Pull Request Skill
Overview
Create a pull request (PR) from the current branch with a clear, conventional commit style title and description summarizing the changes made.
Instructions
When creating a PR, follow these steps:
- •Check the current branch - Run
git branch --show-currentto determine the current branch name. - •Determine the base branch - Identify the target branch for the PR, typically
mainordevelop. You may need to ask the user if unsure. - •Ensure unmerged - Ensure this branch is not already used in a merged PR.
- •Generate PR title and description - Based on the commits in the current branch, generate a PR title and description:
- •The title should follow conventional commit style, summarizing the main change (e.g.,
feat: add user authentication). - •The description should provide more detail about what was changed and why, referencing any relevant issues or tickets.
- •The title should follow conventional commit style, summarizing the main change (e.g.,
- •Create the PR - Use the appropriate git hosting service CLI (e.g.,
gh pr createfor GitHub) or web interface to create the pull request with the generated title and description. - •Provide the PR link - After creating the PR, provide the user with the link to the newly created pull request for review.