agentleFS
MicrosoftKnown publishermicrosoft/vscode-pull-request-github/src/lm/skills/create-pull-request/SKILL.md

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

Dec 2025: 1 mentionJan 2026: 0 mentionsFeb 2026: 0 mentionsMar 2026: 0 mentionsApr 2026: 0 mentionsMay 2026: 0 mentionsJun 2026: 1 mentionJul 2026: 0 mentionsAug 2026: 0 mentionsSep 2026: 0 mentionsOct 2026: 0 mentionsNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the microsoft/vscode-pull-request-github repository that our weekly crawl found. There is no adoption data for this file yet.

Most recently taken up by

Who's talking about microsoft/vscode-pull-request-github

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

5 more on GitHub

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.
  • SentrySkill

    commit

    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

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
  1. Very specific:

    Head branch: If the user has not specified a branch, use workspace or git context to find the current branch name.

    line 24
  2. Distinctive:

    Base branch: If the user has not specified a base branch, omit it and let the tool use the repository's default branch.

    line 25
  3. Distinctive:

    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 …

    line 26
  4. Distinctive:

    Body: If the user has not provided a description, prepare a concise summary of what changed and why (see Best Practices below).

    line 27
  5. Distinctive:

    Draft: Ask or infer whether the PR should be a draft.

    line 28
  6. Distinctive:

    Before creating the PR, inspect the working tree state.

    line 32
  7. Distinctive:

    Check for uncommitted changes: Use the git tool or VS Code SCM context to determine whether there are staged or unstaged file changes.

    line 34
  8. Distinctive:

    Ask the user if they want to commit these changes before opening the PR.

    line 35
  9. Very specific:

    If they do, help them write a commit message and commit the changes (git add -A && git commit -m "<message>").

    line 36
  10. Distinctive:

    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 …

    line 37
  11. Distinctive:

    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.

    line 40
  12. Very specific:

    If pushing manually is preferred, run git push (or git push --set-upstream origin <branch> if no upstream is set yet) before calling the …

    line 41
  13. Distinctive:

    If all changes are already committed and pushed, proceed directly to the next step.

    line 45
  14. Distinctive:

    Write a good title and description if the user has not provided them:

    line 49
  15. Very specific:

    Title: Use imperative mood, keep it under 72 characters, and describe *what* the PR does (e.g.

    line 51
  16. Very specific:

    Use the github-pull-request_create_pull_request tool with the gathered parameters:

    line 60
  17. Distinctive:

    After the tool returns successfully:

    line 76
  18. Distinctive:

    If the PR was created as a draft, remind the user to mark it ready for review when appropriate.

    line 80
  19. Very specific:

    Use the imperative mood: Fix, Add, Update, Remove, Refactor - not Fixed, Adding, etc.

    line 85
  20. Distinctive:

    Keep it under 72 characters so it displays cleanly in GitHub and email notifications.

    line 87
  21. Distinctive:

    Start with a one-sentence summary.

    line 90
  22. Distinctive:

    If the change is large, add a brief list of the main files or components touched.

    line 93
  23. Very specific:

    Use draft: true when the code is not yet ready for formal review (e.g.

    line 96

“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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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:branch format - 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.

  1. 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.
  2. 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 (or git push --set-upstream origin <branch> if no upstream is set yet) before calling the tool.
  3. Confirm the branch is on the remote: The create_pull_request tool 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/460 or vscode://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 - not Fixed, Adding, etc.
  • Be specific: Fix null pointer in user login flow beats Fix 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> or Closes #<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: true when 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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.