agentleFS
nb-99nb-99/skillektion/skills/creating-a-pr-mr/SKILL.md

creating-a-pr-mr

Skill1 starsChanged 3 months agoMITView on GitHub

Create a pull request or merge request. Use when asked to open a PR/MR.

The file

We split this skill into the rules it gives an agent

1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Use the host-specific gh-cli, glab-cli, or forgejo-cli skill for repository operations and creation commands.

    line 8

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “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 PR or MR

Use the host-specific gh-cli, glab-cli, or forgejo-cli skill for repository operations and creation commands. Follow its authorization rules and the git-working-agreement skill for Git changes. This skill owns the content and reviewability checks, not the host commands.

  1. Identify the repository, target branch, and proposed head branch. Before creating anything, inspect the worktree status, commits and diff from the target branch, and any existing PR/MR for the same head and target. Confirm the target branch if it cannot be inferred reliably. Account for uncommitted work: it will not appear in the PR/MR.
  2. Assess the commit history shown to reviewers. Check for unrelated commits, accidental merge commits, fixup/squash commits, duplicate or misleading messages, and changes already present on the target branch. Several focused commits are fine. Report whether the history is clean, with specific reasons if it is not. If cleanup would rewrite published history or require a force-push, explain the issue and ask before doing so; do not block creation solely because history is imperfect unless the user wants to fix it first.
  3. Check for repository PR/MR templates and contribution conventions. Use an applicable template's required sections. If none applies, use the description outline as a guide. Base the title and description on the actual diff and intent, not just commit messages. Explain why the change is needed and how it works at a high level. Include verification actually performed and relevant reviewer guidance; state gaps plainly. Adapt or omit optional headings to fit the change. Keep the description concise and focused on the key points, only be as detailed as necessary.
  4. Before creating, inspect the proposed description against the diff and check that it has intent, approach, verification, and useful reviewer guidance. Use the host's creation command with an explicit description. If a PR/MR already exists for the same head and target, update it only when requested or clearly part of the user's task; avoid a duplicate.
  5. Report the PR/MR URL, verification evidence, and a separate commit-history verdict. If the history needs cleanup, name the affected commits or pattern and the recommended action. Do not claim the history is clean without inspecting the range against the target.

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.