create-pr
Installation
SKILL.md
Create a pull request
Tool routing
- Use local Git for repository identity, branch, diff, staging, commits, and push.
- Prefer the GitHub connector for repository and PR context and for PR creation after the branch is pushed.
- Use
ghfor authentication checks, Actions logs, current-branch PR discovery, forked-head syntax, or PR creation when connector coverage is insufficient.
Prepare the branch
- Read repository instructions and resolve the repository root, current branch, remotes, upstream, and remote default branch.
- Inspect
git status --short --branch, the merge base,git log --oneline <base>..HEAD,git diff --stat <base>...HEAD, and the full diff. - Confirm scope only when the worktree mixes unrelated changes. Preserve user changes outside the requested scope.
- Stay on an existing feature branch. If currently on the default branch, create a descriptive branch using the repository or host convention.
- Fetch the target remote when current remote state matters. Rebase or merge only when requested or required by repository policy.