create-pull-request
Skill106 starsChanged 10 months agoMITView on GitHub
Create a pull request from the current branch. Use when you want to open a PR, submit changes, or create a pull request. Handles release branches (release/**) and feature/fix branches differently, setting the correct base branch, title, description, and labels automatically.
- Commits and pushes
13 other projects use a version of this.
Adopted by
Most recently taken up by
- JeffreyFerreiras/ai-skillstheir own version, first seen Oct 5, 2026
- Jay-1409/skillstheir own version, first seen Oct 3, 2026
- marcellocurto/skillstheir own version, first seen Oct 2, 2026
- Weixi779/skillstheir own version, first seen Aug 6, 2026
- microsoft/vscode-pull-request-githubtheir own version, first seen Jul 16, 2026
- theoklitosBam7/skillstheir own version, first seen Jul 12, 2026
Other versions13 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 13
- cline/cline★ 70ksame name
- microsoft/vscode-pull-request-github★ 2.6ksame name
- warpdotdev/oz-skills★ 825same name
- platformplatform/PlatformPlatform★ 440same name
- helderberto/agent-skills★ 16same name
- kimrgrey/claudini★ 9same name
- liatrio-labs/ai-prompts★ 4same name
- marcellocurto/skills★ 3same name
- dennishenle/agent-skills★ 2same name
- Jay-1409/skills★ 2same name
3 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 repository46 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- commitSkill
- create-release-branchSkill
- create-release-notesSkill
- qlty-checkSkill
- recreate-test-dbSkill
- redmine-playwright-loginSkill
- regression-checkSkill
- rubocopSkill
- speckit-agent-context-updateSkill
- speckit-analyzeSkill
- speckit-branch-convention-configureSkill
- speckit-branch-convention-renameSkill
- speckit-branch-convention-validateSkill
- speckit-checklistSkill
- speckit-clarifySkill
- speckit-constitutionSkill
- speckit-convergeSkill
- speckit-git-commitSkill
- speckit-git-featureSkill
- speckit-git-initializeSkill
- speckit-git-remoteSkill
- speckit-git-validateSkill
- speckit-implementSkill
- speckit-planSkill
- speckit-review-codeSkill
- speckit-review-commentsSkill
- speckit-review-errorsSkill
- speckit-review-runSkill
- speckit-review-simplifySkill
- speckit-review-testsSkill
- speckit-review-typesSkill
- speckit-specifySkill
- speckit-tasksSkill
- speckit-taskstoissuesSkill
- speckit-token-budget-compactSkill
- speckit-token-budget-conciseSkill
- speckit-token-budget-scopeSkill
- speckit-token-budget-usageSkill
- speckit-wiki-ingestSkill
- speckit-wiki-initSkill
- speckit-wiki-lintSkill
- speckit-wiki-querySkill
- speckit-wiki-statusSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
26 rules. 0 are common, 17 are distinctive, and 9 are very specific to this project.
0
Common
Most of the 13 edited versions we read keep these.
17
Distinctive
This author's own choices. Worth a look.
9
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 11
Create a pull request from the current branch with appropriate title, description, base branch, and labels.
- Distinctive: line 19
Consider any additional context from the user input before proceeding.
- Distinctive: line 25
Run git branch --show-current to get the current branch name.
- Very specific: line 29
Check if the branch name starts with release/:
- Distinctive: line 31
All other branches: follow the Feature/Fix Branch workflow below
- Distinctive: line 46
Use the same text as the title.
- Very specific: line 55
Use the GitHub MCP tool (mcp_github_mcp_se_create_pull_request) as the primary method.
- Very specific: line 56
If unavailable, fall back to gh pr create:
- Distinctive: line 72
Read the spec.md and derive a concise English title from the feature description
- Distinctive: line 76
Run git log develop..HEAD --oneline to list commits on this branch
- Distinctive: line 77
Run git diff develop...HEAD --stat to see changed files
- Very specific: line 86
Commit messages: run git log develop..HEAD --format=%B and look for #123, Fixes #123, Closes #123, or GitHub issue URLs.
- Very specific: line 88
Branch name: only a pattern explicitly naming an issue, such as issue-123, issue/123, or fix/#123.
- Distinctive: line 94
If no related issue is identified, skip the issue line in the description.
- Distinctive: line 98
Run git diff develop...HEAD --stat and git log develop..HEAD --oneline to understand the changes.
- Distinctive: line 100
Write a short English description using a bullet list:
- Distinctive: line 109
Keep each bullet to one line.
- Distinctive: line 111
If a related issue was identified, put it at the top of the description using a GitHub closing keyword so the PR is linked to the issue:
- Very specific: line 120
Use Fixes #N for bug fixes and Closes #N for features/enhancements.
- Very specific: line 122
If the PR only partially addresses the issue, use Related to #N instead so the issue is not auto-closed.
- Very specific: line 138
Use the GitHub MCP tool (mcp_github_mcp_se_create_pull_request) as the primary method to create the PR.
- Very specific: line 139
If the MCP tool is unavailable, fall back to gh pr create:
- Distinctive: line 153
If git log or git diff returns empty (branch has no commits ahead of base), inform the user there is nothing to PR.
- Distinctive: line 154
If the spec.md file cannot be found for a Spec Kit branch, fall back to deriving the title from git commits.
- Distinctive: line 155
If label creation fails (label does not exist), omit that label and proceed.
- Distinctive: line 156
If the PR already exists for this branch, report the existing PR URL instead of creating a duplicate.
“Common” is measured: kept by at least 6 in 10 of the 13 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
Create a pull request from the current branch with appropriate title, description, base branch, and labels.
User Input
$ARGUMENTSConsider any additional context from the user input before proceeding.
Procedure
Step 1: Identify Current Branch
Run git branch --show-current to get the current branch name.
Step 2: Determine Branch Type
Check if the branch name starts with release/:
- Release branch (
release/**): follow the Release Branch workflow below - All other branches: follow the Feature/Fix Branch workflow below
Release Branch Workflow (release/**)
Base Branch
main
Title
Extract the version from the branch name.
- Branch
release/1.2.3→ title:Release 1.2.3 - Format:
Release <version>
Description
Use the same text as the title. No additional details needed.
Release <version>Labels
None — do not add any labels.
Create PR
Use the GitHub MCP tool (mcp_github_mcp_se_create_pull_request) as the primary method.
If unavailable, fall back to gh pr create:
gh pr create --base main --title "Release <version>" --body "Release <version>"Feature/Fix Branch Workflow (non-release branches)
Base Branch
develop
Title
If the branch is a Spec Kit branch (branch name matches pattern used by speckit, e.g., feature/NNN-* or follows the speckit branch convention):
- Locate the corresponding
spec.mdfile under.specify/(e.g.,.specify/<branch-folder>/spec.md) - Read the spec.md and derive a concise English title from the feature description
- Title should be imperative and descriptive, e.g.,
Add vector model profile support
If the branch is NOT a Spec Kit branch:
- Run
git log develop..HEAD --onelineto list commits on this branch - Run
git diff develop...HEAD --statto see changed files - Derive a concise, imperative English title summarizing the changes
- Example:
Fix issue summary cache invalidation
Related GitHub Issue
Determine whether this PR fixes or implements an existing GitHub issue. Look for issue references in these sources, in order:
- User input (
$ARGUMENTS): e.g.,#123,issue 123, or a GitHub issue URL. - Commit messages: run
git log develop..HEAD --format=%Band look for#123,Fixes #123,Closes #123, or GitHub issue URLs. - Spec Kit artifacts (Spec Kit branches only): look for GitHub issue URLs or
#123references in the feature'sspec.md(e.g., in the input/description section). - Branch name: only a pattern explicitly naming an issue, such as
issue-123,issue/123, orfix/#123. Do not treat the Spec Kit sequential prefix (e.g.,062-in062-optional-temperature) as an issue number — it is a feature counter, not an issue ID.
For each candidate number, verify it is an existing issue (not a pull request) in this repository using the GitHub MCP tool (issue_read) or gh issue view <number> --json number,title,state. Discard candidates that do not exist or are pull requests.
If no reference is found but the changes clearly address a known problem, you may search open issues (GitHub MCP search_issues or gh issue list --search "<keywords>" --state open). Only link a search result if it clearly matches the changes; if uncertain, ask the user to confirm rather than guessing, since a wrong link can auto-close an unrelated issue.
If no related issue is identified, skip the issue line in the description.
Description
Run git diff develop...HEAD --stat and git log develop..HEAD --oneline to understand the changes.
Write a short English description using a bullet list:
## Changes
- <concise description of change 1>
- <concise description of change 2>
- ...Keep each bullet to one line. Focus on what changed and why, not implementation details.
If a related issue was identified, put it at the top of the description using a GitHub closing keyword so the PR is linked to the issue:
Fixes #<issue-number>
## Changes
- ...- Use
Fixes #Nfor bug fixes andCloses #Nfor features/enhancements. - For multiple issues, put each on its own line (e.g.,
Fixes #12andFixes #34). - If the PR only partially addresses the issue, use
Related to #Ninstead so the issue is not auto-closed.
Labels
Analyze the changes and select one or more labels from:
| Label | When to use |
enhancement | New feature or improvement |
bug | Bug fix |
documentation | Docs-only change (README, YARD, locales) |
Select all that apply. If a label does not exist in the repository, skip it rather than failing.
Create PR
Use the GitHub MCP tool (mcp_github_mcp_se_create_pull_request) as the primary method to create the PR.
If the MCP tool is unavailable, fall back to gh pr create:
gh pr create \
--base develop \
--title "<title>" \
--body "<description>" \
--label "<label1>" \
--label "<label2>"Error Handling
- If
git logorgit diffreturns empty (branch has no commits ahead of base), inform the user there is nothing to PR. - If the spec.md file cannot be found for a Spec Kit branch, fall back to deriving the title from git commits.
- If label creation fails (label does not exist), omit that label and proceed.
- If the PR already exists for this branch, report the existing PR URL instead of creating a duplicate.
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.

