open-pr

Installation
SKILL.md

Open PR

Open or update a pull request. The pr skill writes the body; this skill does everything around it.

Step 1: Find the pull request and its base

git fetch origin --prune
gh pr view --json number,url,baseRefName

Never assume the base. Diff against the branch the pull request targets:

  • A pull request exists: its baseRefName. Update it in Step 6b.
  • None exists: the default branch (main or development), from gh repo view --json defaultBranchRef --jq .defaultBranchRef.name — or the previous slice's branch when this one is stacked on it. Create it in Step 6a.

Step 2: Fetch the issue

Installs
253
First Seen
Aug 26, 2026