agent-pr-creator
Installation
SKILL.md
Agent PR Creator
Analyze git diffs and commit history to intelligently fill PR templates and create pull requests via gh CLI. This skill walks through detecting the base branch, analyzing changes, reading the project's PR template, filling it with context from commits and diffs, and creating the PR.
Workflow
Phase 1: Detect Base Branch and Check for Existing PR
Determine what base branch this PR will target:
# Check if develop exists; fall back to main
git rev-parse --verify develop 2>/dev/null && echo "develop" || echo "main"
# Current branch
git branch --show-current
Check if a PR already exists for the current branch: