About gh-pr
A skill that guides pull request creation with the GitHub `gh` CLI. It requires draft PRs assigned to the current user and refers title and body formatting to the pr-style skill.
Key features
- 01Creates PRs with the `gh` CLI
- 02Requires draft pull requests
- 03Assigns PRs to @me
- 04Uses pr-style for title and body
Use cases
- 01Opening a draft PR from a branch
- 02Assigning a new PR to the current user
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ fredrikaverpil/ dotfiles --skill gh-prAfter installing, type/gh-prin Claude Code to confirm it loaded.
Details
From the project READMEGitHub Pull Request Creation with gh
When creating a pull request with the gh CLI, use the command template below.
For the title and body content, follow the "pr-style" skill (conventional
commit title, Why/What/Notes body, draft PRs).
Command Template
gh pr create --draft --assignee @me --title "<title>" --body "$(cat <<'EOF'
body here
EOF
)"
Rules
- Always create draft PRs (
--draft) - Always assign the PR to me (
--assignee @me)
Comments
Markdown supported