# Pr

> Pushes the current branch and opens a GitHub pull request with a structured title and body.

- Skill: `samyakjhaveri/pr` (Agent Skill)
- Install (CLI): `npx skillmds add samyakjhaveri/pr`
- Raw SKILL.md: https://api.skillmd.com/api/skills/samyakjhaveri/pr/raw
- Safety review: CAUTION (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools, Dev Tooling
- Tags: Gh Cli, Git Push, Github, Pull Request
- Author: SamyakJhaveri (https://skillmd.com/u/samyakjhaveri)
- Updated: 2026-08-22
- Page: https://skillmd.com/skills/samyakjhaveri/pr

---


<recent_commits>
!`git log --oneline -10 --no-merges`
</recent_commits>

<branch>
!`git branch --show-current`
</branch>

1. Push: `git push -u origin HEAD`.
2. Write PR title: type + concise description (under 72 chars).
3. Write PR body: what changed, why, how to test, risks.
4. For multi-line bodies, use a HEREDOC: `gh pr create --title "<title>" --body "$(cat <<'EOF'
<body>
EOF
)"`.
5. Output PR URL.

If push fails: stop and report the exact error. Do NOT force push.

