Create PR
Cursor skill: @gh-pr
Role
Create or update pull request metadata for current branch.
Terminal command execution is owned by:
Workflow
- Delegate sync/merge terminal steps to
internal/gh/pull-merge. - Delegate check + publish terminal steps to
internal/gh/repo-checkandinternal/gh/publish. - Resolve existing PR by current head/base.
- Prompt user: "Is there a PR template we should follow?" and collect any required headings/format.
- Build title/body from full
base...HEADdelta, applying the template when provided. - Delegate PR create/update command execution to
internal/gh/pr-metadata.
Preconditions
- Stop if current branch is
main; create a feature branch first.
Quality Rules
- Use full branch scope, not only latest commit.
- Keep title plain text.
- Avoid repeating compare metadata already shown by GitHub UI.
Next Skill
If blocked by template uncertainty, pause and ask the user to confirm the required PR format.