Push branch and create a PR with concise description and labels
Scanned 9/12/2026
Install to Claude Code
npx -y skills add gacela-project/gacela --skill pr --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Pr?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/gacela-project-gacela)More formats (shields.io, HTML) on the badges page.
---
description: Push branch and create a PR with concise description and labels
argument-hint: "[issue-number]"
disable-model-invocation: true
allowed-tools: "Read, Edit, Bash(git *), Bash(gh *)"
---
# Create Pull Request
## Context
!`git branch --show-current`
!`git log main..HEAD --oneline`
!`git diff main..HEAD --stat`
## Instructions
1. **Check CHANGELOG.md** — if it wasn't updated for these changes, update it now and commit:
```bash
git add CHANGELOG.md && git commit -m "chore: update changelog"
```
2. **Push branch**:
```bash
git push -u origin HEAD
```
3. **Generate PR title**:
- If `$ARGUMENTS` contains an issue number, fetch the issue title:
```bash
gh issue view <number> --json title -q '.title'
```
- PR title format: `<type>(<scope>): <short description>` (conventional commit style, under 70 chars)
- Derive the type from the branch prefix (`feat/` → feat, `fix/` → fix, `docs/` → docs)
4. **Read `.github/PULL_REQUEST_TEMPLATE.md`** and use its **exact section headers** (including emojis) for the PR body. Do NOT hardcode headers — always read the template file first.
5. **Create PR** using the headers from the template:
```bash
gh pr create --title "<title>" --assignee @me --label "<label>" --body "$(cat <<'EOF'
<paste exact headers from .github/PULL_REQUEST_TEMPLATE.md>
Closes #<issue-number>
EOF
)"
```
**Labels:** Pick the single most relevant from:
- `bug` — branch starts with `fix/`
- `enhancement` — branch starts with `feat/`
- `documentation` — branch starts with `docs/`
- `refactoring` — code restructuring with no behavior change
- `pure testing` — only test changes
- `dependencies` — dependency updates
**Body guidelines:**
- Focus on *what* and *why*, not implementation details
- Use `Closes #<number>` so merging auto-closes the issue
- Keep the entire body under 15 lines
6. **Report the PR URL** to the user.
Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.
No comments yet. Be the first to comment!