agentleFS
frostneyfrostney/pascal-mcp-sdk/.agents/skills/create-pr/SKILL.md

create-pr

Skill2 starsChanged 4 months agoMITView on GitHub

Commits relevant changes, opens a templated draft pull request, fills gaps against the repository's Definition of Ready, fixes CI, and marks it ready. Use when the user runs /create-pr.

91 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use merge-pr, fix-ci and 7 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.
  • 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

  • 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

  • MicrosoftSkill

    update-skills

    Check for and apply updates to installed skill branches from upstream.

    Also in 3 projects that use this

  • MicrosoftSkill

    merge

    Merge changes from the topic branch to the merge base branch. Use when the user wants to merge their session's work back to the base branch.

    Also in 4 projects that use this

  • xfstudioSkill

    dependency-upgrade

    Manage major dependency version upgrades with compatibility analysis, staged rollout, and comprehensive testing. Use when upgrading framework versions, updating major dependencies, or managing breaking changes in libraries.

    Also in 3 projects that use this

  • +1 more from microsoft

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 82 edited versions we read keep these.

  • 5

    Distinctive

    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. Distinctive:

    Stop if there are no relevant changes or commits ahead of the remote base.

    line 21
  2. Distinctive:

    If currently on the base branch, create a focused branch named from the issue or change.

    line 23
  3. Distinctive:

    Run the repository's declared pre-PR gate unless it already passed on the unchanged current diff.

    line 25
  4. Distinctive:

    Commit uncommitted work with a concise Conventional Commit subject.

    line 28
  5. Very specific:

    Put each closing keyword on its own line: Closes #N.

    line 33
  6. Distinctive:

    Keep the PR in draft while any readiness criterion or CI check is pending or failing.

    line 48

“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

Create PR

The request authorizes the repository's declared gates, relevant fixes and commits, plain pushes, PR metadata updates, one draft pull request, and its transition to ready for review. It does not authorize unrelated changes.

  1. Inspect the working tree, staged diff, recent commits, and remote default branch.
  2. Stop if there are no relevant changes or commits ahead of the remote base. Continue without an empty commit when the work is already committed.
  3. If currently on the base branch, create a focused branch named from the issue or change.
  4. Run the repository's declared pre-PR gate unless it already passed on the unchanged current diff. Never claim an unobserved result.
  5. Stage only relevant files, excluding secrets and unrelated local work.
  6. Commit uncommitted work with a concise Conventional Commit subject. Never amend and never skip hooks.
  7. Push normally, setting upstream when needed. Never force-push.
  8. Fill the matching PR template, preserving its structure. If none exists, use Summary, Testing, and Linked issues. Keep the body proportional to the change. Put each closing keyword on its own line: Closes #N.
  9. Open one draft PR against the remote default branch.
  10. Find the nearest applicable DEFINITION_OF_READY.md. If it exists, compare every criterion with the actual PR diff, tests, documentation, linked work, metadata, and validation evidence to identify anything the PR is missing. If absent after a real search, use this workflow's built-in gates.
  11. Fill every in-scope readiness gap. Add missing implementation, tests, documentation, or artifacts, or correct the PR body and links. For repository changes, validate, create a new commit, and push normally; metadata-only fixes require no commit. Never mark a criterion satisfied without observed evidence.
  12. Monitor every applicable CI check to a terminal result. While a check is not green, inspect its logs, fix the in-scope root cause without weakening the gate, run the relevant local checks, create a new commit, push normally, and monitor the new run.
  13. Keep the PR in draft while any readiness criterion or CI check is pending or failing. Continue monitoring pending checks; if they cannot reach a terminal result during the run, report their current state. Stop and report the exact blocker when satisfying it requires a material product decision, unrelated work, unavailable external service, or a change that cannot be validated safely.
  14. Once the PR is missing nothing required by the Definition of Ready and all applicable CI is observed green, mark it ready for review. Return its URL, final state, fixes made, and observed readiness and CI evidence.

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.