create-pull-request
Skill825 starsChanged 7 months agoMITView on GitHub
Create a GitHub pull request following project conventions. Use when the user asks to create a PR, submit changes for review, or open a pull request. Handles commit analysis, branch management, and PR creation using the gh CLI tool.
- Installs packages
- Commits and pushes
27 other projects use a version of this, 2 of them edited.
Adopted by
Most recently taken up by
- ErikaAX08/erikas-skillstheir own version, first seen Nov 8, 2026
- marcellocurto/skillstheir own version, first seen Nov 8, 2026
- openflocon/Flocontheir own version, first seen Nov 1, 2026
- StephanMeijer/skillstheir own version, first seen Nov 1, 2026
- tada5hi/skillstheir own version, first seen Nov 1, 2026
- vrodokanakis/claude-skillstheir own version, first seen Oct 25, 2026
Used with
Projects with it also use grilling and frontend-design.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
GoogleSkillgrilling
Grill the user relentlessly about a plan, decision, or idea. Use when the user wants to stress-test their thinking, or uses any 'grill' trigger phrases.
Also in 3 projects that use this
BlockSkillfrontend-design
Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
Also in 3 projects that use this
Other versions27 projects use a version of this.
Word for word · 1
- davidanthonyn/claude-skills★ 0100% same
Edited · 2
- cline/cline★ 71k65% same
- CardSorting/codemarie★ 165% same
Wrote their own version · 24
- makeplane/plane★ 62ksame name
- bitwarden/clients★ 14ksame name
- microsoft/vscode-pull-request-github★ 2.6ksame name
- Mapsui/Mapsui★ 1.6ksame name
- platformplatform/PlatformPlatform★ 439same name
- openflocon/Flocon★ 379same name
- haru/redmine_ai_helper★ 107same name
- braintrustdata/braintrust-sdk★ 30same name
- kimrgrey/claudini★ 9same name
- ErikaAX08/erikas-skills★ 6same name
14 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository15 other files it gives its agents.
- AGENTS.mdAGENTS.md
- analysis-artifactsSkill
- ci-fixSkill
- dbt-model-indexSkill
- docs-updateSkill
- github-bug-report-triageSkill
- github-issue-dedupeSkill
- mcp-builderSkill
- schedulerSkill
- seo-aeo-auditSkill
- slack-qa-investigateSkill
- terraform-style-checkSkill
- web-accessibility-auditSkill
- webapp-testingSkill
- web-performance-auditSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
45 rules. 0 are common, 37 are distinctive, and 8 are very specific to this project.
0
Common
Most of the 26 edited versions we read keep these.
37
Distinctive
This author's own choices. Worth a look.
8
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 13
Before proceeding, verify the following:
- Distinctive: line 21
If not installed, inform the user:
- Very specific: line 32
If not authenticated, guide the user to run gh auth login.
- Distinctive: line 36
Before creating a PR, check if any skills are available that relate to code review, CI, or testing.
- Distinctive: line 38
Look for skills with descriptions containing:
- Distinctive: line 43
If such skills exist, invoke them before proceeding with PR creation.
- Very specific: line 44
If a ci-fix skill exists and CI is failing, use it to diagnose and fix issues
- Very specific: line 45
If a web-design-guidelines skill exists for UI changes, use it to review the changes
- Distinctive: line 46
If a testing skill exists, use it to ensure tests pass
- Distinctive: line 56
If there are uncommitted changes, ask the user whether to:
- Distinctive: line 57
Commit them as part of this PR
- Distinctive: line 63
Before gathering context, check if a PR already exists for the current branch:
- Distinctive: line 69
If a PR already exists:
- Distinctive: line 71
Ask the user if they want to:
- Distinctive: line 73
Update the existing PR (push more commits and the PR will update automatically)
- Distinctive: line 86
Ensure you're not on main or master.
- Very specific: line 121
Related Issue Number: Look for patterns like #123, fixes #123, or closes #123 in:
- Distinctive: line 124
If found, include it in the PR title and/or description
- Distinctive: line 125
If not found, proceed without it
- Distinctive: line 146
Instead, create a title that clearly summarizes the changes.
- Distinctive: line 150
Check if the project uses conventional commits by analyzing:
- Very specific: line 151
Commit messages for patterns like feat:, fix:, docs:, refactor:, test:, chore:
- Distinctive: line 154
If conventional commits are detected, use the appropriate prefix for the PR title:
- Distinctive: line 168
If not using conventional commits, create a clear, action-oriented title:
- Distinctive: line 180
Look at the most significant commit message (often the first or last)
- Distinctive: line 183
If none of these provide a good title, synthesize one from the changed files and their purpose
- Distinctive: line 188
Before creating the PR, consider these best practices:
- Distinctive: line 193
Clear commit messages: Follow conventional commit format when possible
- Distinctive: line 194
No merge commits: Prefer rebasing over merging to keep history clean
- Distinctive: line 204
Squash if appropriate: If there are many small "WIP" commits, consider interactive rebase:
- Distinctive: line 208
Only suggest this if commits appear messy and the user is comfortable with rebasing.
- Distinctive: line 212
Ensure all commits are pushed:
- Distinctive: line 217
If the branch was rebased, you may need:
- Very specific: line 224
IMPORTANT: Read and use the PR template at .github/pull_request_template.md if it exists.
- Distinctive: line 226
When filling out the template:
- Distinctive: line 228
If no template exists, create a clear description with:
- Distinctive: line 249
All tests pass and code is ready for review
- Distinctive: line 267
After creating the PR:
- Distinctive: line 278
Verify the PR title and description render correctly
- Distinctive: line 279
Check that all links work (issue references, etc.)
- Distinctive: line 280
Ensure the diff looks as expected
- Very specific: line 289
Add reviewers if needed: gh pr edit --add-reviewer USERNAME
- Very specific: line 290
Add labels if needed: gh pr edit --add-label "bug"
- Distinctive: line 297
Ask if the user meant to work on a different branch
- Distinctive: line 304
Ask if they want to update it instead
“Common” is measured: kept by at least 6 in 10 of the 26 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Create Pull Request
This skill guides you through creating a well-structured GitHub pull request that follows project conventions and best practices.
Prerequisites Check
Before proceeding, verify the following:
1. Check if gh CLI is installed
gh --versionIf not installed, inform the user:
The GitHub CLI (
gh) is required but not installed. Please install it:
- macOS:
brew install gh- Other: https://cli.github.com/
2. Check if authenticated with GitHub
gh auth statusIf not authenticated, guide the user to run gh auth login.
3. Check for related skills
Before creating a PR, check if any skills are available that relate to code review, CI, or testing. These should be invoked first as prerequisites.
Look for skills with descriptions containing:
- "review" (e.g., code review, PR review, web-design-guidelines)
- "CI" or "ci-fix" (e.g., fixing CI failures)
- "testing" or "test" (e.g., running tests, webapp-testing)
If such skills exist, invoke them before proceeding with PR creation. For example:
- If a
ci-fixskill exists and CI is failing, use it to diagnose and fix issues - If a
web-design-guidelinesskill exists for UI changes, use it to review the changes - If a testing skill exists, use it to ensure tests pass
Only proceed with PR creation after these prerequisite skills have been satisfied.
4. Verify clean working directory
git statusIf there are uncommitted changes, ask the user whether to:
- Commit them as part of this PR
- Stash them temporarily
- Discard them (with caution)
Check for Existing PR
Before gathering context, check if a PR already exists for the current branch:
gh pr list --head $(git branch --show-current) --json number,title,urlIf a PR already exists:
- Display the existing PR details (number, title, URL)
- Ask the user if they want to:
- View the existing PR:
gh pr view - Update the existing PR (push more commits and the PR will update automatically)
- Close the existing PR and create a new one
- View the existing PR:
Only proceed with creating a new PR if no PR exists for this branch.
Gather Context
1. Identify the current branch
git branch --show-currentEnsure you're not on main or master. If so, ask the user to create or switch to a feature branch.
2. Find the base branch
git remote show origin | grep "HEAD branch"This is typically main or master.
3. Analyze recent commits relevant to this PR
git log origin/main..HEAD --oneline --no-decorateReview these commits to understand:
- What changes are being introduced
- The scope of the PR (single feature/fix or multiple changes)
- Whether commits should be squashed or reorganized
4. Review the diff
git diff origin/main..HEAD --statThis shows which files changed and helps identify the type of change.
Information Gathering
Gather the following information from available context (commit messages, branch names, changed files):
Information to Extract
- Related Issue Number: Look for patterns like
#123,fixes #123, orcloses #123in:- Commit messages
- Branch name (e.g.,
fix/issue-123,feature/123-new-login) - If found, include it in the PR title and/or description
- If not found, proceed without it
- Description: What problem does this solve? Why were these changes made?
- Infer from commit messages and diff
- Describe the changes made
- Type of Change: Bug fix, new feature, breaking change, refactor, cosmetic, documentation, or workflow
- Determine from commit messages and changed files
- Test Procedure: How was this tested? What could break?
- Mention test files if they were modified
- Describe testing approach if evident from changes
Intelligent PR Title Generation
The PR title should be descriptive and meaningful. Avoid generic titles like:
- "initial commit"
- "fix"
- "update"
- "changes"
Instead, create a title that clearly summarizes the changes. Consider these approaches:
1. Conventional Commits Format
Check if the project uses conventional commits by analyzing:
- Commit messages for patterns like
feat:,fix:,docs:,refactor:,test:,chore: - Branch name prefixes like
feat/,fix/,docs/
If conventional commits are detected, use the appropriate prefix for the PR title:
feat: Add user authentication with OAuthfix: Resolve memory leak in data processingdocs: Update API documentation for v2 endpointsrefactor: Simplify error handling logictest: Add integration tests for payment flowchore: Update dependencies to latest versions
Include issue number if found:
feat: Add user authentication with OAuth (#123)fix(auth): Resolve memory leak in data processing (fixes #456)
2. Descriptive Summary
If not using conventional commits, create a clear, action-oriented title:
- Good: "Add pagination to search results"
- Bad: "initial commit"
- Good: "Fix race condition in authentication flow"
- Bad: "fix bug"
Include issue number if found:
- "Add pagination to search results (#123)"
- "Fix race condition in authentication flow (fixes #456)"
3. Title Generation Strategy
- Look at the most significant commit message (often the first or last)
- Identify the main change from the diff (new feature, bug fix, etc.)
- Extract the issue title if linked
- If none of these provide a good title, synthesize one from the changed files and their purpose
- Append issue number to title if found in commits or branch name
Git Best Practices
Before creating the PR, consider these best practices:
Commit Hygiene
- Atomic commits: Each commit should represent a single logical change
- Clear commit messages: Follow conventional commit format when possible
- No merge commits: Prefer rebasing over merging to keep history clean
Branch Management
- Rebase on latest main (if needed):
git fetch origin git rebase origin/main - Squash if appropriate: If there are many small "WIP" commits, consider interactive rebase:
Only suggest this if commits appear messy and the user is comfortable with rebasing.git rebase -i origin/main
Push Changes
Ensure all commits are pushed:
git push origin HEADIf the branch was rebased, you may need:
git push origin HEAD --force-with-leaseCreate the Pull Request
IMPORTANT: Read and use the PR template at .github/pull_request_template.md if it exists. The PR body format should match the template structure.
When filling out the template:
- Include issue number (e.g.,
Fixes #123,Closes #456) if found in context - If no template exists, create a clear description with:
- Summary of changes
- Related issue (if found)
- Testing performed
- Any breaking changes or notable impacts
- Fill in all sections with relevant information gathered from commits and context
- Mark the appropriate "Type of Change" checkbox(es) if template has them
- Complete any checklist items that apply
Draft PR Decision
Decide whether to create a draft PR or a regular PR based on the following:
Use --draft flag when:
- Changes are incomplete or work-in-progress, but you want early feedback
- Tests are currently failing and you need help debugging
- You're blocked on an architectural decision and need guidance
- Creating the PR as a bookmark for work you'll continue later
- You want to trigger CI checks but aren't ready for full review
Use regular PR (no --draft) when:
- All tests pass and code is ready for review
- Changes are complete and you're confident in the approach
- You want the PR to be reviewed and merged soon
Create PR with gh CLI
For a regular PR:
gh pr create --title "PR_TITLE" --body "PR_BODY" --base mainFor a draft PR:
gh pr create --title "PR_TITLE" --body "PR_BODY" --base main --draftPost-Creation
After creating the PR:
1. Open PR in browser for verification
Immediately open the PR in the browser to verify it was created correctly:
gh pr view --webThis allows you to:
- Verify the PR title and description render correctly
- Check that all links work (issue references, etc.)
- Ensure the diff looks as expected
- See any immediate CI status
2. Remind about CI checks
Tests and linting will run automatically. Monitor the checks to ensure they pass.
3. Suggest next steps (if needed)
- Add reviewers if needed:
gh pr edit --add-reviewer USERNAME - Add labels if needed:
gh pr edit --add-label "bug"
Error Handling
Common Issues
- No commits ahead of main: The branch has no changes to submit
- Ask if the user meant to work on a different branch
- Branch not pushed: Remote doesn't have the branch
- Push the branch first:
git push -u origin HEAD
- Push the branch first:
- PR already exists: A PR for this branch already exists
- Show the existing PR:
gh pr view - Ask if they want to update it instead
- Show the existing PR:
- Merge conflicts: Branch conflicts with base
- Guide user through resolving conflicts or rebasing
Summary Checklist
Before finalizing, ensure:
ghCLI is installed and authenticated- Related review/CI/testing skills have been invoked
- No existing PR exists for this branch
- Working directory is clean
- All commits are pushed
- Branch is up-to-date with base branch
- PR title is descriptive and meaningful (not generic)
- PR title uses conventional commit format if project uses it
- Issue number included in title/description if found in context
- PR description follows template (if template exists)
- Appropriate type of change is selected
- Correct draft/regular status chosen
- PR opened in browser for verification
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

