From pr
Create a GitHub pull request as a draft, auto-generating title and body from commits
How this skill is triggered — by the user, by Claude, or both
Slash command
/pr:createThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Create a GitHub pull request for the current branch using the `gh` CLI.
Create a GitHub pull request for the current branch using the gh CLI.
Determine the default branch by running:
gh repo view --json defaultBranchRef --jq '.defaultBranchRef.name'
Use this as the base branch unless the user has specified a different base.
Gather context by running these in parallel:
git log <base>..HEAD --oneline to see all commits being proposedgit diff <base>...HEAD --stat to see a summary of changed filesgit diff <base>...HEAD to see the full diffCheck for a PR template by looking for files in these locations (in order of priority):
.github/PULL_REQUEST_TEMPLATE.md.github/PULL_REQUEST_TEMPLATE/ directory (if multiple templates exist, pick the default one, or ask the user which to use)PULL_REQUEST_TEMPLATE.md (repo root)If a template is found, read it and use its structure for the PR body. Fill in the template sections based on the commits and diff.
Draft the PR title and body:
Present the draft to the user:
Create the PR by running:
gh pr create --draft --title "<title>" --body "<body>" --base <base-branch>
Use a HEREDOC for the body to preserve formatting.
Report the PR URL back to the user.
git push -u origin HEAD (after checking that origin is the correct remote for GitHub by inspecting the output of git remote -v).Creates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.
npx claudepluginhub wincent/wincent-agent-plugins --plugin pr