Agent Skills: Pull Request

Create or update a GitHub pull request. Use when asked to create a PR, submit for review, or push changes as a PR. Not for code review comments — use conventional-comments for that.

UncategorizedID: hairihou/dotfiles/pr

Install this agent skill to your local

pnpm dlx add-skill https://github.com/hairihou/dotfiles/tree/HEAD/src/.config/claude/skills/pr

Skill Files

Browse the full folder contents for pr.

Download Skill

Loading file tree…

src/.config/claude/skills/pr/SKILL.md

Skill Metadata

Name
pr
Description
Create or update a GitHub pull request. TRIGGER on any intent to ship branch work upstream — explicit ("create PR") or implicit ("push this", "ship it", or Claude proposing to push after completing work). DO NOT USE for code review comments — use conventional-comments instead.

Pull Request

Context

  • Current branch: !git rev-parse --abbrev-ref HEAD
  • Default branch: !gh repo view --json defaultBranchRef --jq '.defaultBranchRef.name' 2>/dev/null || echo 'unknown'
  • Git status: !git status -b --porcelain

Title and Commit Message

  1. Check .gitmessage / CONTRIBUTING.md first (respect project conventions)
  2. Fallback to Conventional Commits

PR Body Templates

Standard:

## Summary

<description>

With issue linking (branch starts with #<number>_):

closes #<number>

---

## Summary

<description>

Steps

  1. If open PR exists (gh pr view) → gh pr edit --title ... --body ...
  2. Otherwise → gh pr create --draft --title ... --body ... --base <base> --assignee @me
    • Base: $ARGUMENTS if provided, else default branch
    • Always create as draft; the author marks ready for review manually
Pull Request Skill | Agent Skills