
Github Pr Creation
- 225 installs
- 69 repo stars
- Updated August 4, 2026
- fvadicamo/dev-agent-skills
Automate GitHub pull request creation from agent-finished branches with titles, descriptions, linked issues, and review metadata so code enters formal review without manual gh or web UI steps.
About
github-pr-creation from fvadicamo/dev-agent-skills automates creating GitHub pull requests after agent-driven development, formatting titles, bodies, and metadata so branch work enters the formal review pipeline without manual CLI or browser steps.
- Automated PR scaffolding
- Branch-to-review handoff
- GitHub API integration
- Agent dev workflows
- Review-ready descriptions
Github Pr Creation by the numbers
- 225 all-time installs (skills.sh)
- Ranked #167 of 733 Git & Pull Requests skills by installs in the Skillselion catalog
- Data as of Aug 5, 2026 (Skillselion catalog sync)
npx skills add https://github.com/fvadicamo/dev-agent-skills --skill github-pr-creationAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 225 |
|---|---|
| repo stars | ★ 69 |
| Last updated | August 4, 2026 |
| Repository | fvadicamo/dev-agent-skills ↗ |
What it does
Automate GitHub pull request creation from agent-finished branches with titles, descriptions, linked issues, and review metadata so code enters formal review without manual gh or web UI steps.
Files
GitHub PR creation
Creates Pull Requests with task validation, test execution, and Conventional Commits formatting.
Current state
!git rev-parse --abbrev-ref HEAD 2>/dev/null !git log @{u}..HEAD --oneline 2>/dev/null || echo "(no upstream tracking)"
Core workflow
1. Confirm target branch
ALWAYS ask user before proceeding:
Creating PR from [current-branch] to [target-branch]. Correct?| Branch flow | Typical target |
|---|---|
| feature/* | develop |
| fix/* | develop |
| hotfix/* | main/master |
| develop | main/master |
2. Search for task documentation
Look for task/spec files that describe what this PR should accomplish. Common locations by tool:
| Tool/Convention | Path |
|---|---|
| Spec2Ship (s2s) | .s2s/plans/*.md (look for active plan matching branch name or commits) |
| AWS Kiro | .kiro/specs/*/tasks.md |
| Cursor | .cursor/rules/*.md, .cursorrules |
| Trae | .trae/rules/*.md |
| GitHub Issues | gh issue list --assignee @me --state open |
| Generic | docs/specs/, specs/, tasks.md, TODO.md |
Extract task IDs, titles, descriptions, and requirements references when found.
3. Analyze commits
For each commit on this branch, identify type, scope, task references, and breaking changes. Map commits to documented tasks when task files exist.
4. Verify task completion
If task documentation exists:
1. Identify main task from branch name (e.g., feature/task-2-* -> Task 2) 2. Find all sub-tasks (e.g., Task 2.1, 2.2, 2.3) 3. Check which sub-tasks are referenced in commits 4. Report missing sub-tasks
If tasks incomplete, STOP and show status:
Task 2 INCOMPLETE: 1/3 sub-tasks missing
- Task 2.1: done
- Task 2.2: done
- Task 2.3: MISSINGAsk user whether to complete missing tasks or proceed anyway.
5. Run tests
Run the project test suite. Tests MUST pass before creating PR.
6. Determine PR type and generate title
| Branch flow | Title prefix |
|---|---|
| feature/* -> develop | feat(scope): |
| fix/* -> develop | fix(scope): |
| hotfix/* -> main | hotfix(scope): |
| develop -> main | release: |
| refactor/* -> develop | refactor(scope): |
| chore/* -> develop | chore(scope): |
| ci/* -> develop | ci(scope): |
| docs/* -> develop | docs(scope): |
Title format: <type>(<scope>): <description>
- Type: dominant commit type from analysis (feat > fix > refactor > ci > chore)
- Scope: most common scope from commits (kebab-case)
- Description: imperative, lowercase, no period, max 50 chars
Breaking changes: if any commit contains BREAKING CHANGE: or ! after type:
- Add
breakinglabel if it exists in the project - Include a
## Breaking changessection in the PR body
7. Generate PR body
Use the appropriate template from references/pr_templates.md based on PR type and populate with gathered data.
8. Suggest labels
ALWAYS check available labels first:
gh label listMatch commit types to available project labels. The project may use different names than standard (e.g., "feature" instead of "enhancement").
| Commit type | Common label names |
|---|---|
| feat | feature, enhancement |
| fix | bug, bugfix |
| refactor | refactoring, tech-debt |
| docs | documentation |
| ci | ci/cd, infrastructure |
| security | security |
| hotfix | urgent, priority:high |
If no matching label exists: suggest creating one. The user may have removed default labels, so offering to add relevant ones is appropriate.
9. Determine milestone
Check for open milestones:
gh api repos/$(gh repo view --json nameWithOwner -q '.nameWithOwner')/milestones \
--jq '.[] | select(.state == "open") | "\(.number): \(.title)"'- If one active milestone exists: assign the PR to it (all work in progress belongs to the next release)
- If multiple milestones exist: ask the user which one applies
- If no milestones exist: skip (do not create one automatically)
10. Create PR
ALWAYS show title, body, labels, and milestone for user approval first.
gh pr create \
--title "[title]" \
--body "$(cat <<'EOF'
[body content]
EOF
)" \
--base [base_branch] \
--label "[label1]" --label "[label2]" \
--milestone "[milestone-title]" \
--reviewer "[username]" # if teammates are knownUse --draft if the PR is not ready for merge review yet (work in progress, awaiting CI, or created only to trigger AI bot review on the branch).
Important rules
- ALWAYS confirm target branch with user
- ALWAYS run tests before creating PR
- ALWAYS show PR content for approval before creating
- ALWAYS check available labels with
gh label listbefore suggesting - ALWAYS use HEREDOC for body to preserve formatting
- ALWAYS add
--labelfor each label separately (not comma-separated in one string) - ALWAYS check for open milestones and assign if one is active
- NEVER create PR without user confirmation
- NEVER modify repository files (read-only analysis)
- NEVER create a milestone automatically - only assign existing ones
- Use
--draftfor PRs not ready for merge review - Use
--reviewerwhen teammates are known from team config or CODEOWNERS
References
references/pr_templates.md- PR body templates for all types (feature, release, bugfix, hotfix, refactoring, docs, CI/CD)
PR templates
Select the template matching the PR type.
---
Feature (feature/* -> develop)
Title: feat(<scope>): <description>
## What
- [List of implemented features/components]
- [Main functionality highlights]
## Why
- [Business/operational impact]
- [Pain points resolved]
## Details
### Task X.Y: [Task title]
- [Implementation detail 1]
- [Implementation detail 2]
- **Requirements**: X, Y, Z
## Checklist
- [ ] Main feature implemented
- [ ] Tests written and passing
- [ ] Documentation updated
- [ ] Code review ready---
Release (develop -> main)
Title: release: version X.Y with [main features]
## What
This release includes:
- [Feature set 1 - Task N]
- [Feature set 2 - Task M]
## Why
[Release motivation, milestone reached]
## Details
### Task N: [Feature name] (COMPLETE)
- **Task N.1**: [Description]
- **Task N.2**: [Description]
- **Requirements**: X, Y, Z
## Testing
- Coverage: XX%
- Integration tests: pass/fail
## Checklist
- [ ] All tasks completed
- [ ] No breaking changes (or documented)
- [ ] Migration guide prepared (if needed)---
Bugfix (fix/* -> develop)
Title: fix(<scope>): <description>
## What
Fix for [problem description]
## Problem
[Bug description, how it manifests, impact]
## Solution
[Explanation of implemented solution]
## Testing
- [How the fix was tested]
- [Regression tests added]
## Checklist
- [ ] Bug resolved
- [ ] Regression tests added
- [ ] No side effects introduced---
Hotfix (hotfix/* -> main)
Title: hotfix(<scope>): <critical fix>
## HOTFIX
### Issue
[Description of critical production issue]
### Root cause
[Identified cause]
### Fix
[Implemented solution]
### Impact
- Affected users: [estimate]
- Downtime: [if applicable]
### Rollback plan
[Rollback plan if needed]
## Checklist
- [ ] Fix tested in staging
- [ ] Approval for urgent deploy
- [ ] Post-deploy monitoring planned---
Refactoring (refactor/* -> develop)
Title: refactor(<scope>): <description>
## What
Refactoring of [component/module]
## Why
- [Motivation: performance, maintainability, technical debt]
## Changes
- [Change 1]
- [Change 2]
## Impact
- **Functional**: None (behavior unchanged)
- **Performance**: [expected improvements]
- **Maintainability**: [benefits]
## Checklist
- [ ] Functional behavior unchanged
- [ ] Existing tests passing
- [ ] New tests added (if needed)---
Documentation (docs/*)
Title: docs(<scope>): <description>
## What
Documentation update for [area]
## Changes
- [Document 1]: [change type]
- [Document 2]: [change type]
## Motivation
[Why this documentation is needed]---
CI/CD and infrastructure
Title: ci(<scope>): <description> or chore(<scope>): <description>
## What
[Pipeline/infrastructure change]
## Changes
- [Change 1]
- [Change 2]
## Impact
- Build time: [variation]
- Deploy process: [variation]
## Testing
[How it was verified]