agentleFS
MicrosoftKnown publishermicrosoft/nvx/.github/skills/create-pr/SKILL.md

create-pr

Skill296 starsChanged 57 days agoMITView on GitHub

Create PR with the current branch

91 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use update-pr, create-issue and 10 more.

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

    update-pr

    Update the pull request for the current session. Use when the user wants to push new changes to an existing PR.

    Also in 5 projects that use this

  • sahinSkill

    create-issue

    Also in 9 projects that use this

  • anderson-c-santosSkill

    merge-pr

    Merge a GitHub PR after all checks pass. Trigger for: /merge-pr, merge PR, approve and merge, squash merge, ship PR. Verifies CI, draft state, and approvals, then merges with the correct strategy based on branch type.

    Also in 3 projects that use this

  • SentrySkill

    fix-ci

    Diagnose and fix failing CI on a PR. Load repo-setup first.

    Also in 6 projects that use this

  • Microsoft AzureSkill

    review-pr

    Review a pull request for functional issues, coding guideline adherence, and best practices. Use this when asked to review, inspect, or provide feedback on a pull request (Azure DevOps or GitHub). Proposes comments for user approval before posting.

    Also in 21 projects that use this

  • 32103210Skill

    create-rule

    Create Cursor rules for persistent AI guidance. Use when you want to create a rule, add coding standards, set up project conventions, configure file-specific patterns, create RULE.md files, or asks about .cursor/rules/ or AGENTS.md.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

6 rules. 0 are common, 6 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 82 edited versions we read keep these.

  • 6

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Before pushing or creating the pull request, ask whether it should be Ready or Draft.

    line 9
  2. Distinctive:

    Use the available question tool when possible.

    line 10
  3. Distinctive:

    Ready: Do not ask again if the input already makes the choice explicit.

    line 13
  4. Distinctive:

    Do not stage, commit, amend, or modify files.

    line 24
  5. Distinctive:

    Write a concise body explaining what changed and why, based on the commits and the diff against the discovered default branch.

    line 32
  6. Distinctive:

    Create the pull request against the discovered default branch with the repository host's available structured tools, API, or command-line …

    line 39

“Common” is measured: kept by at least 6 in 10 of the 82 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

Open a pull request for the current branch.

  • Before pushing or creating the pull request, ask whether it should be Ready or Draft. Use the available question tool when possible. Ready pull requests start CI, while Draft pull requests skip its jobs. Recommend Draft when the branch changes non-documentation files and there is no evidence that the local deterministic gates passed for its head; otherwise recommend Ready. Do not ask again if the input already makes the choice explicit; never infer either state from silence.
  • Discover the repository state, current branch, configured remotes, default remote, and default branch using the available source-control and hosting-provider tooling. Do not assume any repository layout, hosting provider, remote name, default-branch name, or globally installed command-line tool. Confirm that the target resolves to microsoft/nvx, never the archived nanvix/nvx.
  • Confirm that the current branch is suitable and inspect the commits that differ from the default branch. If the checkout is detached, the current branch is the default branch, no commits would be included, the branch is behind or has diverged from its upstream, an open pull request already exists for the branch, or the target remote and branch cannot be determined reliably, stop and report the issue, including any existing pull-request URL.
  • Do not stage, commit, amend, or modify files. If the working tree contains staged, unstaged, or untracked changes, report them and stop so the user can handle them first.
  • Push the current branch to the selected remote and configure upstream tracking when needed. Preserve an existing upstream when it is valid; do not assume the remote is named origin. Never force-push.
  • Derive the title from the commits that will be included, using a single commit's subject when appropriate. Follow commit, contribution, and pull-request conventions discovered in the repository. Ignore automation-generated pull requests and commits, such as gh-aw [workflow-id] title prefixes, [bot] authors, and merge commits, when inferring those conventions.
  • Write a concise body explaining what changed and why, based on the commits and the diff against the discovered default branch. Honor any repository pull-request template without dumping the full diff. Reference an issue supplied in the input only when the relationship and closing semantics are justified: put Closes #N or Fixes #N first when the pull request completes the issue, and use Part of #N or Refs #N otherwise. Include a Validation section that lists the checks actually run and the gates left to CI. When the branch moves the openvmm gitlink, include the body content that the nvx-openvmm-promote skill requires.
  • Create the pull request against the discovered default branch with the repository host's available structured tools, API, or command-line tooling. Create a Ready pull request unless the user chose Draft.
  • Report the resulting pull-request URL and whether it was created as Ready or Draft. Do not change its review state afterward.

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.