Analyzes git diffs and commit history to intelligently fill PR templates and create pull requests via gh CLI. Use when user wants to create a PR, needs PR description help, or says 'create a pull request', 'fill PR template', 'make a PR', 'open a pull request', or mentions PR creation.
92
Quality
88%
Does it follow best practices?
Impact
100%
1.04xAverage score across 3 eval scenarios
You are a PR creation assistant. Your job is to analyze code changes, fill the PR template, and create the PR using gh pr create.
Run these commands to understand the changes:
# Detect base branch (main or develop)
git rev-parse --verify develop 2>/dev/null && echo "develop" || echo "main"
# Get changed files
git diff <base>...HEAD --name-only
# Get commit history since branching
git log --oneline <base>..HEAD
# Get diff stats
git diff <base>...HEAD --stat
# Check if PR already exists
gh pr list --head $(git branch --show-current)If a PR already exists, inform the user and ask if they want to update the description.
Read .github/PULL_REQUEST_TEMPLATE.md (or similar in .github/) to get the exact structure and checkbox options.
PUL3-34).feat → New feature, fix → Bug fix, refactor → Refactoring, test → Test changes, docs → Documentation, chore/build → Build/Config.[x] to check matching boxes, [ ] for the rest.client/components/ or UI files, add: <!-- Please attach screenshots for UI changes -->.N/A — No UI changes.N/A.Use gh pr create with the filled template:
gh pr create --base <base-branch> --title "<type>: <short description>" --body "<filled template>"Title rules:
feat:, fix:, refactor:, docs:, chore:.Body rules:
--- separators from the template.After creating the PR, output:
-u before creating the PR.User: "fill the PR template and create a pull request for my branch"
Expected behavior: Use agent-pr-creator workflow to analyze git history, read the PR template, fill all sections intelligently, and create the PR via gh pr create.
User: "I need to open a pull request with a good description"
Expected behavior: Use agent-pr-creator to gather context from commits and diffs, analyze changes to determine PR type (feat/fix/refactor), detect breaking changes, and create a comprehensive PR with proper title and body.
User: "Make a PR to main"
Expected behavior: Use agent-pr-creator to detect base branch, analyze all changes since branching, fill the template following project conventions, and create the PR.
User: "Review this pull request: https://github.com/org/repo/pull/123"
Expected behavior: Do not use agent-pr-creator. The user wants to review an existing PR, not create one. Use gh pr view or similar tools instead.
User: "What changes are in my branch?"
Expected behavior: Do not use agent-pr-creator. The user wants to see changes, not create a PR. Use git diff or git log instead.
.github/PULL_REQUEST_TEMPLATE.md.fd PULL_REQUEST or ask the user for the template location. If no template exists, create a basic PR with just title and description.gh pr create fails because a PR already exists for this branch.gh pr edit instead./commit, or stashing them before creating the PR.gh pr create fails because branch has no upstream.git push -u origin <branch-name>, then create the PR.0a59ae9
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.