
github-pr-creation
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.
- Installs
- 237
- Last 24h
- —
- Trending rank
- —
- Security
- Not audited
Install
Works with every agent the skills CLI supports.
npx skills add https://github.com/fvadicamo/dev-agent-skills --skill github-pr-creation- 01
Install
Run the command in your project. The CLI asks which agents to install for.
- 02
Describe the task
Ask your agent for something this skill covers. It loads github-pr-creation automatically when relevant.
- 03
Review the result
The agent follows the SKILL.md steps, scripts and references bundled with the skill.
SKILL.md
The instructions your agent reads when the skill is triggered.
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:
- Identify main task from branch name (e.g.,
feature/task-2-*-> Task 2) - Find all sub-tasks (e.g., Task 2.1, 2.2, 2.3)
- Check which sub-tasks are referenced in commits
- 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: MISSING
Ask 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 list
Match 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 known
Use --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)
FAQ
What does the github-pr-creation skill do?
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.
How do I install github-pr-creation?
Run npx skills add https://github.com/fvadicamo/dev-agent-skills --skill github-pr-creation in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/github-pr-creation/ (personal) or .claude/skills/github-pr-creation/ (project).
Which AI agents can use github-pr-creation?
Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.
Is github-pr-creation safe to install?
No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.
Who maintains github-pr-creation?
It is published by fvadicamo in fvadicamo/dev-agent-skills. It has 237 recorded installs.
More from fvadicamo/dev-agent-skills
github-pr-review
fvadicamo/dev-agent-skills
Handles PR review comments and feedback resolution. Use when user wants to resolve PR comments, handle review feedback, fix review comments, address PR review, check review status, respond to reviewer, verify PR readiness, review PR comments, analyze review feedback, evaluate PR comments, assess review suggestions, or triage PR comments. Fetches comments via GitHub CLI, classifies by severity, applies fixes with user confirmation, commits with proper format, replies to threads.
git-commit
fvadicamo/dev-agent-skills
Creates git commits following Conventional Commits format with type/scope/subject. Use when user wants to commit changes, create commit, save work, or stage and commit. Enforces project-specific conventions from CLAUDE.md.
github-pr-merge
fvadicamo/dev-agent-skills
Open the skill to read its SKILL.md instructions.
creating-skills
fvadicamo/dev-agent-skills
Open the skill to read its SKILL.md instructions.
Popular code quality & workflow skills
grill-me
mattpocock/skills
A relentless interview to sharpen a plan or design.
improve-codebase-architecture
mattpocock/skills
Scan a codebase for deepening opportunities, present them as a visual HTML report, then grill through whichever one you pick.
handoff
mattpocock/skills
Compact the current conversation into a handoff document for another agent to pick up.
domain-modeling
mattpocock/skills
Build and sharpen a project's domain model. Use when discussing codebase terminology, writing or editing a GLOSSARY.md, or recording or editing an ADR.
codebase-design
mattpocock/skills
Shared vocabulary for designing deep modules. Use when the user wants to design or improve a module's interface, find deepening opportunities, decide where a seam goes, make code more testable or AI-navigable, or when another skill needs the deep-module vocabulary.
diagnosing-bugs
mattpocock/skills
Diagnosis loop for hard bugs and performance regressions. Use when the user says "diagnose"/"debug this", or reports something broken/throwing/failing/slow.