# Open Pr

> Create a PR to provided base branch using the pull request template. Use when opening a new PR.

- Skill: `casper-studios/open-pr` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add casper-studios/open-pr`
- Raw SKILL.md: https://api.skillmd.com/api/skills/casper-studios/open-pr/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: casper-studios (https://skillmd.com/u/casper-studios)
- Updated: 2026-09-10
- Page: https://skillmd.com/skills/casper-studios/open-pr

---


Summarize the latest changes in this branch to create a pull request on GitHub.

<workflow-steps>

1. Compare the current branch against the base branch to see what changes need to be described in the pull request. Use the `$base` argument if provided, otherwise the repository's default branch (`origin/HEAD`):
   ```bash
   git log "${base:-origin/HEAD}"..HEAD --oneline
   git diff "${base:-origin/HEAD}"...HEAD
   ```
Make sure to only focus on the finalized implementation details. Since pull requests tend to have work-in-progress commits at the beginning, you should be extra mindful on whether these are still relevant in the finalized snapshot.
2. Use the [pull request template](assets/pull-request-template.md) to generate a `.agents/scratchpad/PR.md`.
3. Pause here and prompt the user to check the `.agents/scratchpad/PR.md` before proceeding.
4. Once edited and approved by the user, fill in the missing details in the following script and then run it. With no `$base`, `gh` targets the repository's default branch:
   ```bash
   gh pr create ${base:+--base "$base"} \
     --head "$(git rev-parse --abbrev-ref HEAD)" \
     --title '[TICKET-123] category: short title' \
     --body-file .agents/scratchpad/PR.md
   ```
5. Delete `.agents/scratchpad/PR.md` once successfully submitted.

</workflow-steps>

