agentleFS
indrazmindrazm/personal-skills/skills/create-pr/SKILL.md

create-pr

Skill15 starsChanged 5 days agoMITView on GitHub

Creates pull requests after enforcing a mandatory changes-verification gate, verifying branch hygiene and diff size, and writing evidence-backed PR descriptions. Use when asked to create a PR, open a pull request, push a branch for review, or prepare changes for merge.

  • Commits and pushes

197 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use update-pr, create-release-note 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 10 projects that use this

  • ModelEngine-GroupSkill

    create-release-note

    从 PR/commit 中自动生成结构化的 Release Notes,并可选创建 GitHub Draft Release。支持 x.y.0 版本合并前一 minor 系列的 release notes。当用户要求生成发布说明、创建 release notes 时触发。参数为版本号和可选的上一版本号。

    Also in 3 projects that use this

  • frostneySkill

    delivery-wait

    Provides deterministic, resumable GitHub transition waits used internally by delivery workflows. Use when another workflow must await CI, merge, tag, or release state without model heartbeats.

    Also in 3 projects that use this

  • frostneySkill

    native-nostalgia-stack

    Applies the user's FreePascal toolchain and its build, formatting, hook, and test contracts while leaving project-specific mechanics local. Use when scaffolding or working in a FreePascal project that follows this toolchain.

    Also in 3 projects that use this

  • parkchuSkill

    start-mission

    넥스트스텝(NextStep) 미션을 처음 시작할 때, 미션 저장소를 fork·clone하고 최초 작업 브랜치(step1 등)까지 만들어 준다. gh CLI로 fork하고 clone까지 이어서 처리하며, gh가 없거나 인증이 안 돼 있으면 브라우저 Fork 안내로 폴백한다. 이미 fork/clone돼 있으면 재사용하고 이어서 진행한다(재실행 안전). 사용자가 "미션 시작하려는데 저장소 세팅해줘", "새 미션 시작할래", "fork부터 해줘", "/nextstep:start-mission" 등으로 요청할 때 사용한다.

    Also in 3 projects that use this

  • MicrosoftSkill

    act-on-feedback

    Act on user feedback attached to the current session. Use when the user submits feedback on the session's changes via the Submit Feedback button.

    Also in 3 projects that use this

  • +1 more from frostney
  • +1 more from microsoft

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 182 edited versions we read keep these.

  • 4

    Distinctive

    This author's own choices. Worth a look.

  • 4

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  • could be automatic: a setting could enforce it
  1. Distinctive:

    When asked to create, open, or draft a pull request

    line 12
  2. Distinctive:

    When preparing a feature, bug fix, or refactor branch for review and merge

    line 13
  3. Very specific:

    Do NOT push or create a pull request until changes-verification passes on the final commit:

    line 17
  4. Very specific:

    Run the changes-verification skill on the current branch.

    line 19
  5. Very specific:

    If any check fails, stop, fix the root cause, commit the fix, and re-run changes-verification so the receipt matches the new HEAD SHA.

    line 21
  6. Very specific:

    If the branch has not been reviewed yet, run code-review before opening the PR when appropriate.

    line 29
  7. Distinctive:

    When CI defines path-filtered workflows or matrix jobs, explicitly note in the PR Verification section which jobs were mirrored locally and …

    line 55
  8. Distinctive:

    Never force-push over shared branches without explicit user confirmation.

    line 56

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

Execute a structured pull request workflow gated by changes-verification. Never open a PR without observed test execution and locally mirrored CI checks recorded for the final commit.

When to Use

  • When asked to create, open, or draft a pull request
  • When preparing a feature, bug fix, or refactor branch for review and merge

Mandatory Pre-PR Gate

Do NOT push or create a pull request until changes-verification passes on the final commit:

  1. Run the changes-verification skill on the current branch.
  2. Confirm all change-related tests and all locally runnable CI checks (tests, lint, type-check, build) exit 0.
  3. If any check fails, stop, fix the root cause, commit the fix, and re-run changes-verification so the receipt matches the new HEAD SHA.

Workflow

Step 1: Verify Branch Hygiene and Diff Size

  • Confirm the working tree is clean (git status --short produces no output) and the branch is cleanly up to date with the target base branch.
  • Inspect diff size with git diff --stat <base>...HEAD. Target focused diffs (~100 to 300 lines). If the diff mixes unrelated refactors with feature work or exceeds ~1000 lines, propose splitting it before opening the PR.
  • If the branch has not been reviewed yet, run code-review before opening the PR when appropriate.

Step 2: Draft Title and Body

Compose a standalone PR title and body:

  • Title: Short, imperative, and specific (for example, fix(api): deduplicate user query join).
  • What & Why: Summarize what changed, why the change is needed, key trade-offs, and linked issues.
  • Verification: Include the concrete evidence from changes-verification: verified HEAD commit SHA, commands executed, observed pass/fail status, and any CI-only jobs that will run remotely.

Step 3: Push and Open the PR

  • Confirm the target base branch if ambiguous; never push directly to main or master without explicit user instruction.
  • Push the branch (git push -u origin <branch>).
  • Open the pull request (for example via gh pr create --base <base> --title "..." --body "...").
  • Return the PR URL and a concise summary of the verified checks.

Red Flags

  • Opening a PR before changes-verification passes on the final HEAD commit
  • Claiming "tests pass" in the PR body without observed command output
  • Leaving debug logs, temporary files, or unrelated edits in the diff
  • Using vague PR titles such as "Fix bug" or "Update code"

Gotchas

  • When CI defines path-filtered workflows or matrix jobs, explicitly note in the PR Verification section which jobs were mirrored locally and which run only in CI.
  • Never force-push over shared branches without explicit user confirmation.

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.