config/claude/skills/pr-create/SKILL.md
Create a GitHub pull request as a draft, auto-generating title and body from commits
npx skillsauth add ahmedelgabri/dotfiles pr-createInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
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).development
Interact with Neovim via RPC to annotate code, navigate files, and do walkthroughs
tools
How to use `jj`, the Jujutsu version control system
tools
Create a commit (or draft a commit message) in a Jujutsu repository
tools
Create a commit (or draft a commit message) in a Git repository