create-pull-request

Create GitHub pull requests. Use when user asks to "create a pull request", "open a PR", "/create-pull-request", or requests creating a pull request. Don't use for reviewing PRs, merging branches, or committing local changes.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "create-pull-request" with this command: npx skills add helderberto/skills/helderberto-skills-create-pull-request

Create Pull Request

Mode: $ARGUMENTS

If --draft is passed, create as draft PR.

Pre-loaded context

  • Branch status: !git status && git branch -vv
  • Recent commits: !git log --oneline -10

Workflow

  1. Run in parallel:
  2. Read template if found
  3. Review ALL commits (not just latest)
  4. Draft title (<70 chars) and body:
    • Use template structure if available
    • Otherwise: Summary + Test plan
  5. In parallel:
    • Create branch if needed
    • Push with -u if needed
    • Create PR with gh pr create using HEREDOC (add --draft if requested)

See examples.md for output format and gh-flags.md for advanced options.

Rules

  • Use PR template if available
  • Analyze ALL commits, not just the latest
  • Return PR URL when done
  • Use gh CLI only
  • NEVER force push to main/master
  • NEVER push without user confirmation if already on main/master
  • NEVER create PR with uncommitted changes — commit first

Error Handling

  • If gh pr create fails with "already exists" → run gh pr view and return existing PR URL
  • If branch is not pushed → run git push -u origin HEAD before creating PR
  • If gh auth status fails → ask user to run gh auth login and retry

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Coding

explain-code

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

code-review

No summary provided by upstream source.

Repository SourceNeeds Review
Security

audit-deps

No summary provided by upstream source.

Repository SourceNeeds Review