create-pr
Skill130 starsChanged 12 months agoMITView on GitHub
Use when the user asks to prepare, publish, or open a GitHub pull request from a local checkout. Verifies branch and diff scope, runs relevant checks, creates needed commits, pushes only when authorized, and opens a truthful draft or ready PR.
- Commits and pushes
91 other projects use a version of this.
Adopted by
Most recently taken up by
- microsoft/vscodetheir own version, first seen Nov 12, 2026
- lohi-ai/babysittheir own version, first seen Oct 5, 2026
- HLND2T/CS2_VibeSignaturestheir own version, first seen Oct 5, 2026
- andeeplus/aplustheir own version, first seen Oct 4, 2026
- moeru-ai/auvtheir own version, first seen Oct 4, 2026
- kdy1/kdy1-scriptstheir own version, first seen Oct 4, 2026
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.
MicrosoftSkillupdate-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
sahinSkillcreate-issue
Also in 9 projects that use this
anderson-c-santosSkillmerge-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
SentrySkillfix-ci
Diagnose and fix failing CI on a PR. Load repo-setup first.
Also in 6 projects that use this
Microsoft AzureSkillreview-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
32103210Skillcreate-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
Other versions91 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 91
- microsoft/vscode★ 196ksame name
- vercel/next.js★ 144ksame name
- ToolJet/ToolJet★ 41ksame name
- microsoft/aspire★ 6.3ksame name
- docker/docs★ 4.7ksame name
- NeoLabHQ/context-engineering-kit★ 1.7ksame name
- block/berd★ 962same name
- getsentry/toolkit★ 912same name
- ReflexioAI/claude-smart★ 782same name
- warpdotdev/common-skills★ 604same name
81 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository20 other files it gives its agents.
- AGENTS.mdAGENTS.md
- branch-cleanerSkill
- bug-triageSkill
- ci-fixSkill
- commit-workSkill
- dependency-upgraderSkill
- docs-syncSkill
- focused-tddSkill
- manage-product-ideasSkill
- pr-visual-explainerSkill
- rebase-assistantSkill
- regex-builderSkill
- release-notesSkill
- review-architecture-scopeSkill
- review-backend-changeSkill
- review-frontend-changeSkill
- review-security-privacySkill
- review-test-coverageSkill
- vps-checkupSkill
- write-ui-copySkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
19 rules. 0 are common, 13 are distinctive, and 6 are very specific to this project.
0
Common
Most of the 82 edited versions we read keep these.
13
Distinctive
This author's own choices. Worth a look.
6
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
- Distinctive: line 10
Use local Git for repository identity, branch, diff, staging, commits, and push.
- Distinctive: line 11
Prefer the GitHub connector for repository and PR context and for PR creation after the branch is pushed.
- Very specific: line 12
Use gh for authentication checks, Actions logs, current-branch PR discovery, forked-head syntax, or PR creation when connector coverage is …
- Distinctive: line 16
Read repository instructions and resolve the repository root, current branch, remotes, upstream, and remote default branch.
- Distinctive: line 24
Run the relevant focused checks and any required repository gates.
- Distinctive: line 25
Create the fewest reviewable commits.
- Very specific: line 31
Start from references/pr-description-template.md or the repository's own pull request template.
- Distinctive: line 33
Delete empty optional sections.
- Very specific: line 35
When visual evidence would materially help review and is easy to capture, create it.
- Very specific: line 40
Never force-push without separate explicit approval.
- Very specific: line 71
Use -F draft=true only when a draft was explicitly requested.
- Very specific: line 73
Prefer explicit title and body over unreviewed --fill.
- Distinctive: line 78
If useful evidence does not exist, capture it only when doing so is easy and proportionate to the review value.
- Distinctive: line 79
Create the PR with the textual evidence section first.
- Distinctive: line 93
Do not manually rerun checks unless the user authorizes it.
- Distinctive: line 97
Do not silently stage unrelated work or create a PR from the wrong repository or branch.
- Distinctive: line 98
Do not run interactive authentication on the user's behalf.
- Distinctive: line 99
Do not expose secrets, personal data, private URLs, customer data, or unrelated browser content in PR evidence.
- Distinctive: line 100
Do not commit screenshots or recordings solely to attach them unless the repository explicitly requires versioned evidence.
“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.
Files
Create a pull request
Tool routing
- Use local Git for repository identity, branch, diff, staging, commits, and push.
- Prefer the GitHub connector for repository and PR context and for PR creation after the branch is pushed.
- Use
ghfor authentication checks, Actions logs, current-branch PR discovery, forked-head syntax, or PR creation when connector coverage is insufficient.
Prepare the branch
- Read repository instructions and resolve the repository root, current branch, remotes, upstream, and remote default branch.
- Inspect
git status --short --branch, the merge base,git log --oneline <base>..HEAD,git diff --stat <base>...HEAD, and the full diff. - Confirm scope only when the worktree mixes unrelated changes. Preserve user changes outside the requested scope.
- Stay on an existing feature branch. If currently on the default branch, create a descriptive branch using the repository or host convention.
- Fetch the target remote when current remote state matters. Rebase or merge only when requested or required by repository policy.
Validate and commit
- Run the relevant focused checks and any required repository gates. Separate regressions from baseline or environment failures.
- Create the fewest reviewable commits. Follow repository message conventions and inspect the staged diff before every commit.
- Recheck the final range and worktree. Do not include unrelated commits, local-only files, credentials, or generated artifacts by accident.
Write the PR
- Build the title from the actual outcome. Follow the repository's title convention; do not copy a vague branch name.
- Start from
references/pr-description-template.mdor the repository's own pull request template. - State what changed, why, validation with real results, user or operational impact, risk, migrations, rollout, and related issues.
- Delete empty optional sections. Never claim unrun checks, nonexistent screenshots, or future work as completed.
- Reuse relevant, current, and safe screenshots or recordings already produced during implementation or validation. Do not omit useful existing evidence merely because it was not created specifically for the PR.
- When visual evidence would materially help review and is easy to capture, create it. Do not block the PR or manufacture low-value media when evidence is irrelevant, impractical, redundant, or unsafe. Follow
references/evidence-attachments.md.
Publish and open
- Push only when the user requested or confirmed publication. For a new remote branch, use
git push -u <remote> <branch>. - Never force-push without separate explicit approval. If approved, use
--force-with-leaseagainst the intended remote branch. - Resolve repository, base, and head explicitly, especially for forks.
- Open a ready-for-review PR by default. Use draft only when the user explicitly asks for a draft. Carry that decision into the exact API field or CLI flags.
Preferred connector fields:
repository_full_name: <owner/repo>
base: <target-branch>
head: <source-branch or owner:branch>
title: <reviewed title>
body: <reviewed Markdown>
draft: <false by default; true only when a draft was explicitly requested>gh fallback for the same repository or a user-owned fork:
# Ready for review (default)
gh pr create --repo <owner/repo> --base <base> --head <branch-or-user:branch> --title "<title>" --body-file <prepared-body.md>
# Draft (only when explicitly requested)
gh pr create --repo <owner/repo> --base <base> --head <branch-or-user:branch> --title "<title>" --body-file <prepared-body.md> --draftgh pr create --head does not support an organization as the head owner. For a cross-repository PR whose base and fork belong to the same organization, use a connector that accepts the head repository or GitHub's REST endpoint:
gh api --method POST repos/<base-owner>/<base-repo>/pulls -f title="<title>" -F body=@<prepared-body.md> -f base="<base>" -f head="<organization>:<branch>" -f head_repo="<fork-repo>" -F draft=falseUse -F draft=true only when a draft was explicitly requested. Verify the base and head repositories before sending the request.
Prefer explicit title and body over unreviewed --fill. --body-file publishes Markdown text; it does not upload files referenced by local paths.
Attach and verify evidence
- Inventory relevant screenshots, recordings, previews, logs, or other evidence already created during the work. Use them when they still represent the final change and pass the safety checks.
- If useful evidence does not exist, capture it only when doing so is easy and proportionate to the review value.
- Create the PR with the textual evidence section first.
- Upload local screenshots or recordings through GitHub's attachment UI, or through a connected tool only if it supports user-attachment uploads.
- Replace placeholders with GitHub-generated URLs, add accessible labels and context, then save the description or evidence comment.
- Reopen the PR and verify every image or recording renders for the intended audience. Do not claim an attachment exists until the remote PR shows it.
Verify the PR
Confirm URL, repository, base/head, draft state, title/body, included commits, changed-file scope, evidence links, and current checks. Connector metadata is preferred; gh fallbacks include:
gh pr view --json url,number,title,baseRefName,headRefName,isDraft,commits,mergeable,statusCheckRollup
gh pr checks <number>Do not manually rerun checks unless the user authorizes it.
Safety
- Do not silently stage unrelated work or create a PR from the wrong repository or branch.
- Do not run interactive authentication on the user's behalf; report the exact prerequisite when authentication is missing.
- Do not expose secrets, personal data, private URLs, customer data, or unrelated browser content in PR evidence.
- Do not commit screenshots or recordings solely to attach them unless the repository explicitly requires versioned evidence.
Deliverable
Report branch, commits, push target, PR URL and state, validation, attached evidence, pending manual evidence steps, check status, and unresolved risks. When visual evidence would normally help but is omitted, state the concise reason.
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
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.

