create-pull-request
Skill2.6k starsChanged 5 months agoMITView on GitHub
Create a GitHub Pull Request from the current or specified branch. Use when: opening a PR, submitting code for review, creating a draft PR, publishing a branch as a pull request, proposing changes to a repository.
- Commits and pushes
13 other projects use a version of this.
Trending
Quiet since June.about the whole repository
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
- theoklitosBam7/skillstheir own version, first seen Jul 12, 2026
- platformplatform/PlatformPlatformtheir own version, first seen May 15, 2026
Who's talking about microsoft/vscode-pull-request-github
- microsoft/vscode“Iteration Plan for August 2019”GitHub · Aug 10, 2019 · 122 reactions
- microsoft/vscode“Iteration Plan for January 2021”GitHub · Dec 14, 2020 · 57 reactions
- microsoft/vscode“Implement GitHub Enterprise authn provider”GitHub · Feb 5, 2021 · 54 reactions
- microsoft/vscode“Iteration Plan for February 2021”GitHub · Feb 6, 2021 · 44 reactions
- microsoft/vscode“Iteration Plan for March 2019”GitHub · Mar 9, 2019 · 44 reactions
The biggest 5 of 16 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 16
Talked about on GitHub, Hacker News and Bluesky (16 times).
On GitHub · 10
- Aug 10, 2019Iteration Plan for August 2019 — microsoft/vscode122 reactions · 11 comments
- Dec 14, 2020Iteration Plan for January 2021 — microsoft/vscode57 reactions · 16 comments
- Feb 5, 2021Implement GitHub Enterprise authn provider — microsoft/vscode54 reactions · 31 comments
- Feb 6, 2021Iteration Plan for February 2021 — microsoft/vscode44 reactions · 2 comments
- Mar 9, 2019Iteration Plan for March 2019 — microsoft/vscode44 reactions · 6 comments
5 more on GitHub
- Apr 5, 2021Iteration Plan for April 2021 — microsoft/vscode41 reactions
- Dec 21, 2018Iteration Plan for January 2019 — microsoft/vscode35 reactions · 2 comments
- May 10, 2020Iteration Plan for May 2020 — microsoft/vscode34 reactions · 2 comments
- Nov 16, 2020Iteration Plan for November 2020 — microsoft/vscode32 reactions · 7 comments
- Nov 10, 2018Iteration Plan for November 2018 — microsoft/vscode29 reactions · 7 comments
On Hacker News · 3
- Jun 30, 2026VSCode-pull-request-GitHub repeatedly asked to sign in again using GitHub1 point
- Oct 8, 2018GitHub Pull Requests for Visual Studio Code1 point
- Jun 15, 2018VS Code Extension for Managing GitHub Pull Requests1 point
On Bluesky · 3
- Sep 20, 2025これのcredetialってどこに保存されてるんだろ? "microsoft/vscode-pull-request-github: GitHub Pull Requests for Visual Studio Code"… — @azu.bsky.social1 likes and repost · 1 reply
- Dec 1, 2024Did you know that there is a @vscode.dev extension for reviewing @github.com pull requests? My friend was complaining about switching to… — @davidtyemnyak.bsky.social1 likes and repost
- Dec 1, 2025github.com/microsoft/vs... 早速なんですけどこれと同じようにエディターみながら同時に gihub pr でのコメントや返信もできる plugin 知りません?これだけは便利なんですよねー — @senkenn.dev0 likes and reposts · 1 reply
Used with
Projects with it also use commit.
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.
SentrySkillcommit
Create commit messages following Sentry conventions. Use when committing code changes, writing commit messages, or formatting git history. Follows conventional commits with Sentry-specific issue references.
Also in 3 projects that use this
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
- warpdotdev/oz-skills★ 825same name
- platformplatform/PlatformPlatform★ 440same name
- haru/redmine_ai_helper★ 106same 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 repository7 other files it gives its agents.
- .github/copilot-instructions.mdCopilot instructions
- write-changelogSkill
- address-pr-commentsSkill
- form-github-search-querySkill
- show-github-search-resultSkill
- suggest-fix-issueSkill
- summarize-github-issue-pr-notificationSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
23 rules. 0 are common, 16 are distinctive, and 7 are very specific to this project.
0
Common
Most of the 13 edited versions we read keep these.
16
Distinctive
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 24
Head branch: If the user has not specified a branch, use workspace or git context to find the current branch name.
- Distinctive: line 25
Base branch: If the user has not specified a base branch, omit it and let the tool use the repository's default branch.
- Distinctive: line 26
Title: If the user has not provided a title, derive one from the branch name, recent commits, or the user's description of their work (see …
- Distinctive: line 27
Body: If the user has not provided a description, prepare a concise summary of what changed and why (see Best Practices below).
- Distinctive: line 28
Draft: Ask or infer whether the PR should be a draft.
- Distinctive: line 32
Before creating the PR, inspect the working tree state.
- Distinctive: line 34
Check for uncommitted changes: Use the git tool or VS Code SCM context to determine whether there are staged or unstaged file changes.
- Distinctive: line 35
Ask the user if they want to commit these changes before opening the PR.
- Very specific: line 36
If they do, help them write a commit message and commit the changes (git add -A && git commit -m "<message>").
- Distinctive: line 37
If they decline, proceed only if there are already commits on the branch that are ahead of the base - otherwise there is nothing to put in …
- Distinctive: line 40
Ask the user if they want to push before opening the PR, or let them know the tool will attempt to push automatically if needed.
- Very specific: line 41
If pushing manually is preferred, run git push (or git push --set-upstream origin <branch> if no upstream is set yet) before calling the …
- Distinctive: line 45
If all changes are already committed and pushed, proceed directly to the next step.
- Distinctive: line 49
Write a good title and description if the user has not provided them:
- Very specific: line 51
Title: Use imperative mood, keep it under 72 characters, and describe *what* the PR does (e.g.
- Very specific: line 60
Use the github-pull-request_create_pull_request tool with the gathered parameters:
- Distinctive: line 76
After the tool returns successfully:
- Distinctive: line 80
If the PR was created as a draft, remind the user to mark it ready for review when appropriate.
- Very specific: line 85
Use the imperative mood: Fix, Add, Update, Remove, Refactor - not Fixed, Adding, etc.
- Distinctive: line 87
Keep it under 72 characters so it displays cleanly in GitHub and email notifications.
- Distinctive: line 90
Start with a one-sentence summary.
- Distinctive: line 93
If the change is large, add a brief list of the main files or components touched.
- Very specific: line 96
Use draft: true when the code is not yet ready for formal review (e.g.
“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 a GitHub Pull Request
Gather the necessary information, prepare a clear title and description, then call the tool to open the pull request.
When to Use
- The user wants to open a PR for their current or a specified branch
- The user has finished a feature or fix and wants to submit it for review
- The user wants to create a draft PR to share work in progress
- The user asks to "open a PR", "create a pull request", or "submit for review"
Procedure
1. Gather Information
Determine the required parameters before calling the tool:
- Head branch: If the user has not specified a branch, use workspace or git context to find the current branch name. Do not use
owner:branchformat - pass just the branch name (e.g.my-feature). - Base branch: If the user has not specified a base branch, omit it and let the tool use the repository's default branch.
- Title: If the user has not provided a title, derive one from the branch name, recent commits, or the user's description of their work (see Best Practices below).
- Body: If the user has not provided a description, prepare a concise summary of what changed and why (see Best Practices below).
- Draft: Ask or infer whether the PR should be a draft. Default to non-draft unless the user indicates the work is not ready for review.
2. Check for Uncommitted or Unpushed Changes
Before creating the PR, inspect the working tree state. If you need to run git commands, give an explanation for why the command needs to be run.
- Check for uncommitted changes: Use the git tool or VS Code SCM context to determine whether there are staged or unstaged file changes. If yes:
- Ask the user if they want to commit these changes before opening the PR.
- If they do, help them write a commit message and commit the changes (
git add -A && git commit -m "<message>"). - If they decline, proceed only if there are already commits on the branch that are ahead of the base - otherwise there is nothing to put in the PR.
- Check for unpushed commits: Determine whether the local branch has commits that have not been pushed to the remote (i.e. the branch is ahead of its upstream). If yes:
- Ask the user if they want to push before opening the PR, or let them know the tool will attempt to push automatically if needed.
- If pushing manually is preferred, run
git push(orgit push --set-upstream origin <branch>if no upstream is set yet) before calling the tool.
- Confirm the branch is on the remote: The
create_pull_requesttool requires the head branch to be present on the remote. If it is not, push it first.
If all changes are already committed and pushed, proceed directly to the next step.
3. Prepare PR Details
Write a good title and description if the user has not provided them:
Title: Use imperative mood, keep it under 72 characters, and describe what the PR does (e.g. Add retry logic for failed API requests).
Body: Include:
- A short summary of what changed and why
- Any relevant issue references (e.g.
Fixes #123) - Notable implementation decisions, if useful for the reviewer
4. Call the Tool
Use the github-pull-request_create_pull_request tool with the gathered parameters:
github-pull-request_create_pull_request({
title: '<descriptive title>',
head: '<branch-name>', // branch name only, not owner:branch
body: '<description>', // optional but recommended
base: '<base-branch>', // optional; omit to use repo default
draft: false, // set true for work-in-progress
headOwner: '<owner>', // optional; omit if same as repo owner
repo: { owner: '<owner>', name: '<repo>' } // optional
})5. Confirm Result
After the tool returns successfully:
- Report the PR number and URL to the user as a markdown link. The link should be a VS Code URI like
vscode-insiders://github.vscode-pull-request-github/open-pull-request-webview?uri=https://github.com/microsoft/vscode-css-languageservice/pull/460orvscode://github.vscode-pull-request-github/open-pull-request-webview?uri=https://github.com/microsoft/vscode-css-languageservice/pull/460. - Mention the base branch the PR targets.
- If the PR was created as a draft, remind the user to mark it ready for review when appropriate.
Best Practices
Titles
- Use the imperative mood:
Fix,Add,Update,Remove,Refactor- notFixed,Adding, etc. - Be specific:
Fix null pointer in user login flowbeatsFix bug. - Keep it under 72 characters so it displays cleanly in GitHub and email notifications.
Descriptions
- Start with a one-sentence summary.
- Explain why the change is needed, not just what it does - reviewers benefit from context.
- Reference related issues with
Fixes #<number>orCloses #<number>to auto-close them on merge. - If the change is large, add a brief list of the main files or components touched.
Draft PRs
- Use
draft: truewhen the code is not yet ready for formal review (e.g. work in progress, awaiting feedback on approach, CI not yet passing). - Draft PRs are visible to collaborators but will not show as review-requested until marked ready.
- Suggest using a draft when the user mentions they are still working on it or just want early feedback.
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.

