skills/helderberto/skills/create-pull-request

create-pull-request

SKILL.md

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
Weekly Installs
5
First Seen
12 days ago
Installed on
mcpjam5
claude-code5
replit5
junie5
windsurf5
zencoder5