Loading...
Loading...
Creates GitHub Pull Requests with automated validation and task tracking. Use when user wants to create PR, open pull request, submit for review, or check if ready for PR. Analyzes commits, validates task completion, generates Conventional Commits title and description, suggests labels. NOTE - for merging existing PRs, use github-pr-merge instead.
npx skill4agent add fvadicamo/dev-agent-skills github-pr-creation# 1. Verify GitHub CLI
gh --version && gh auth status
# 2. Gather information (Claude does this directly)
git log develop..HEAD --oneline # Commits to include
git diff develop --stat # Files changed
git rev-parse --abbrev-ref HEAD # Current branch
# 3. Run project tests
make test # or: pytest, npm test
# 4. Create PR (after generating content)
gh pr create --title "..." --body "..." --base develop --label featuregh --version && gh auth statusbrew install ghgh auth loginI'm about to create a PR from [current-branch] to [target-branch]. Is this correct?
- feature branch → develop (90% of cases)
- develop → master/main (releases)# Current branch
git rev-parse --abbrev-ref HEAD
# Commits since base branch
git log [base-branch]..HEAD --pretty=format:"%H|%an|%ai|%s"
# Commits with full details (for context)
git log [base-branch]..HEAD --oneline
# Files changed
git diff [base-branch] --stat
# Remote tracking status
git status -sb.kiro/specs/*/tasks.mddocs/specs/*/tasks.mdspecs/*/tasks.mdtasks.mdTask XTask X.YRequirements: X, Y, Ztask X.YTask X#X.YBREAKING CHANGEfeature/task-2-*✗ Task 2 INCOMPLETE: 1/3 sub-tasks missing
- Task 2.1: ✓ Implemented
- Task 2.2: ✓ Implemented
- Task 2.3: ✗ MISSINGtestmake testnpm testpytest| Branch Flow | PR Type | Title Prefix |
|---|---|---|
| feature/* → develop | Feature | |
| fix/* → develop | Bugfix | |
| hotfix/* → main | Hotfix | |
| develop → main | Release | |
| refactor/* → develop | Refactoring | |
references/pr_templates.md<type>(<scope>): <description>| Commit Type | Labels |
|---|---|
| feat | feature, enhancement |
| fix | bug, bugfix |
| refactor | refactoring, tech-debt |
| docs | documentation |
| ci | ci/cd, infrastructure |
| security | security |
| hotfix | urgent, priority:high |
gh label listgh pr create --title "[title]" --body "$(cat <<'EOF'
[body content]
EOF
)" --base [base_branch] --label [labels]brew install gh && gh auth loginreferences/pr_templates.mdreferences/conventional_commits.md