create-pr
Skill2 starsChanged 2 months agoMITView on GitHub
Create a Draft GitHub PR or GitLab MR from git diff, commits, CODEOWNERS, and the ShipFrame PR template.
- Installs packages
- 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, merge-pr and 8 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
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
MicrosoftSkillupdate-skills
Check for and apply updates to installed skill branches from upstream.
Also in 3 projects that use this
- +2 more from microsoft
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 repository45 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- a11y-auditorSkill
- api-contract-reviewSkill
- backend-releaseSkill
- bug-diagnosisSkill
- client-copy-reviewSkill
- codebase-designSkill
- code-reviewSkill
- create-issueSkill
- create-taskSkill
- dependency-upgradeSkill
- deploy-evidenceSkill
- design-expertSkill
- design-system-docsSkill
- design-system-setupSkill
- domain-modelingSkill
- e2e-verifySkill
- evidence-auditSkill
- feature-discoverySkill
- frontend-releaseSkill
- generate-readmeSkill
- handoffSkill
- implement-taskSkill
- incident-responseSkill
- init-projectSkill
- live-docsSkill
- mcp-debuggingSkill
- memory-curatorSkill
- plan-expertSkill
- planning-featuresSkill
- project-memory-initSkill
- project-memory-refreshSkill
- project-profileSkill
- project-releaseSkill
- proof-runnerSkill
- release-checklistSkill
- researchSkill
- security-hardeningSkill
- security-reviewSkill
- tddSkill
- wiki-forgeSkill
- wiki-initSkill
- wiki-querySkill
- wiki-syncSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
47 rules. 0 are common, 17 are distinctive, and 30 are very specific to this project.
0
Common
Most of the 82 edited versions we read keep these.
17
Distinctive
This author's own choices. Worth a look.
30
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 30
Run all commands via Bash.
- Very specific: line 62
If --provider github was passed, use github.
- Very specific: line 64
If --provider auto is active and origin contains github.com, use github.
- Very specific: line 66
If --provider auto is active and the host is not GitHub, treat remotes whose host or path contains gitlab as self-hosted GitLab and use …
- Very specific: line 67
If auto-detection cannot identify the provider, stop and ask the caller to rerun with --provider github or --provider gitlab.
- Distinctive: line 71
If the working tree has uncommitted changes, warn:
- Very specific: line 79
If --base was provided, use it as BASE_BRANCH without any confirmation or inference and skip to Step 4.
- Distinctive: line 88
If none of the above exist, use the most recently committed remote branch
- Very specific: line 90
If AUTO_MODE is false and the inferred branch is not main or master, confirm with the user:
- Very specific: line 94
If the current branch equals BASE_BRANCH, stop:
- Very specific: line 107
If a ticket ID is available (from --ticket-id or extracted from the branch name), append it: (CU-abc123)
- Distinctive: line 123
Write 2–4 bullet points summarising the "Why" (motivation / problem solved) and "What" (what was changed at a high level)
- Very specific: line 124
Every bullet must start with exactly one of these semantic keywords: add, update, fix, refactor, delete
- Distinctive: line 125
Do not paste raw commit messages — rewrite them as coherent intent statements
- Distinctive: line 143
Leave all others unchecked.
- Very specific: line 149
If --ticket-id was provided, format it as a ClickUp URL: https://app.clickup.com/t/<id>
- Very specific: line 150
If a ticket ID was extracted from the branch name (e.g.
- Very specific: line 151
If no ticket is available, write: N/A
- Distinctive: line 162
Never invent values. Placeholders are correct when data is absent.
- Distinctive: line 172
If any matches are found:
- Very specific: line 175
Add: Team notified: No (the author must verify before merge)
- Very specific: line 177
If no matches: Do not include the ### Shared Code Impact section in the rendered PR body.
- Very specific: line 187
Commit messages containing BREAKING CHANGE: or !
- Distinctive: line 189
If breaking changes are detected:
- Very specific: line 193
If no breaking changes: Do not include the ### Breaking Changes section in the rendered PR body.
- Very specific: line 199
Check if a CODEOWNERS file exists at the project root or .github/CODEOWNERS.
- Very specific: line 200
If it exists, read it and extract GitHub handles (@username) mapped to the changed files.
- Distinctive: line 210
Mandatory: remove the current PR author's handle from the list (identified by git config user.email from Step 2).
- Very specific: line 212
If the list is empty after deduplication, write: No additional stakeholders identified.
- Very specific: line 235
If no UI changes: write: No UI changes in this PR.
- Distinctive: line 244
Every step must come from the actual diff — no generic steps like "verify the app works"
- Distinctive: line 245
Start from the entry point a real user or caller would use (navigate to a route, call an endpoint, trigger an action)
- Distinctive: line 249
If the change is backend-only: describe the API call (method, endpoint, payload, expected response)
- Distinctive: line 250
If the change is UI-only: describe the user interaction and the expected visual or functional outcome
- Very specific: line 251
If new tests were added: include a step to run them with the specific command (e.g.
- Very specific: line 306
If AUTO_MODE is false, present the rendered body and the inferred title to the user and ask:
- Very specific: line 310
If AUTO_MODE is true, skip confirmation and proceed immediately.
- Very specific: line 318
Before invoking provider CLIs, write the rendered body to a temporary file and keep its path in BODY_FILE so the user can reuse it if …
- Very specific: line 327
Use this path when PROVIDER=github.
- Very specific: line 336
If gh is missing or unauthenticated, stop and report:
- Distinctive: line 346
Create the Draft PR:
- Distinctive: line 357
If the command exits with a non-zero status, capture the error and proceed to the GitHub MCP fallback below.
- Very specific: line 361
If gh pr create failed, create the PR using the MCP tool:
- Very specific: line 375
If both GitHub methods fail, report the errors from both attempts, include BODY_FILE, and stop.
- Very specific: line 379
Use this path when PROVIDER=gitlab.
- Distinctive: line 398
Create the Draft MR:
- Very specific: line 410
If glab mr create fails, report the captured error, include BODY_FILE, and stop.
“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-pr
Role: Senior engineer opening a pull request or merge request.
Goal: Auto-generate a complete, reviewer-ready PR/MR from git context alone. Every section is derived from the diff, commits, branch name, and project files — no manual writing required. When --auto is passed (or when called by another skill/agent), skip all confirmation steps and create the PR/MR immediately.
Step 1 — Parse arguments
Parse $ARGUMENTS for:
--base <branch>— target branch for the PR/MR (skip inference if provided)--ticket-id <id>— ClickUp or issue ID to reference (optional)--provider <auto|github|gitlab>— host provider to use; default isauto--auto— skip all confirmation steps and create the PR/MR without asking
Capture any provided values. Set AUTO_MODE = true if --auto is present. Set PROVIDER_INPUT = auto when --provider is omitted. Reject any provider value outside auto, github, or gitlab with a clear error before doing network operations.
Step 2 — Gather git context
Run all commands via Bash. Capture every output — it feeds every section of the template.
# Current branch
git branch --show-current
# Remote URL (to detect provider and extract host/owner/repo)
git remote get-url origin
# Current git user email (to exclude from FYI tagging)
git config user.email
# All remote branches (for base branch inference)
git branch -r --format='%(refname:short)' | sed 's/origin\///'
# Last 20 commits on this branch (used for description and module inference)
git log HEAD --oneline -20
# All changed files vs each candidate base branch (resolved once base is confirmed)
# Run after base is resolved:
git diff <BASE_BRANCH>...HEAD --name-only
git diff <BASE_BRANCH>...HEAD --stat
git diff <BASE_BRANCH>...HEADExtract HOST, OWNER, and REPO from the remote URL:
- GitHub SSH:
git@github.com:owner/repo.git - GitHub HTTPS:
https://github.com/owner/repo.git - GitLab SSH:
git@gitlab.com:owner/repo.gitorgit@gitlab.example.com:group/subgroup/repo.git - GitLab HTTPS:
https://gitlab.com/owner/repo.gitorhttps://gitlab.example.com/group/subgroup/repo.git
Determine PROVIDER:
- If
--provider githubwas passed, usegithub. - If
--provider gitlabwas passed, usegitlab. - If
--provider autois active andorigincontainsgithub.com, usegithub. - If
--provider autois active andorigincontainsgitlab.com, usegitlab. - If
--provider autois active and the host is not GitHub, treat remotes whose host or path containsgitlabas self-hosted GitLab and usegitlab. - If auto-detection cannot identify the provider, stop and ask the caller to rerun with
--provider githubor--provider gitlab.
For GitLab repositories with nested groups, keep the full namespace as OWNER (for example, group/subgroup) and the final path segment as REPO.
If the working tree has uncommitted changes, warn:
"Uncommitted changes detected. These will not be included in the PR/MR. Commit them first or proceed anyway." In
AUTO_MODE, proceed without asking.
Step 3 — Infer the base branch
If --base was provided, use it as BASE_BRANCH without any confirmation or inference and skip to Step 4. This is always correct when called by implement-task — do not second-guess it.
Otherwise, infer from the remote branches list using this priority order:
mainmasterdevelopstaging- First
release/*branch found - If none of the above exist, use the most recently committed remote branch
If AUTO_MODE is false and the inferred branch is not main or master, confirm with the user:
"Inferred base branch:
<branch>. Is this correct?" InAUTO_MODE, proceed with the inferred branch silently.
If the current branch equals BASE_BRANCH, stop:
"The current branch is the same as the base branch. Switch to a feature branch first."
Step 4 — Infer PR/MR title
Derive the PR/MR title from the branch name:
- Strip the type prefix:
feat/,fix/,chore/,refactor/,docs/,hotfix/ - Strip any ticket/sprint/module prefix (e.g.
CU-abc123-,M3-S12-) - Replace hyphens and underscores with spaces
- Title-case the result
- Prepend the type label in brackets:
[Feature],[Fix],[Refactor],[Docs],[Chore],[Hotfix] - If a ticket ID is available (from
--ticket-idor extracted from the branch name), append it:(CU-abc123)
Example: feat/CU-abc123-user-auth-flow → [Feature] User auth flow (CU-abc123)
Step 5 — Populate the PR/MR template
The canonical PR/MR body structure is defined in templates/pull_request_template.md at the project root of the ShipFrame repo (the repo where this skill lives). Read that file and use it as the exact skeleton — do not invent or remove sections. Populate every placeholder by analyzing the git context from Step 2. Instructions inside each section below describe how to derive the content — follow them precisely. The rendered output must not contain the instruction text or placeholder markers.
Section: Description
Using the commit messages and git diff output:
- Write 2–4 bullet points summarising the "Why" (motivation / problem solved) and "What" (what was changed at a high level)
- Every bullet must start with exactly one of these semantic keywords:
add,update,fix,refactor,delete - Do not paste raw commit messages — rewrite them as coherent intent statements
- Be specific: reference function names, component names, or API routes where relevant
Section: Type of Change
From the PR/MR title type label (inferred in Step 4) or the branch prefix, tick exactly one checkbox:
| Branch prefix / label | Checkbox to tick |
feat/ / [Feature] | - [x] Feature |
fix/ / [Fix] | - [x] Bug Fix |
refactor/ / [Refactor] | - [x] Refactor |
docs/ / [Docs] | - [x] Docs |
chore/ / [Chore] | - [x] Chore |
hotfix/ / [Hotfix] | - [x] Hotfix |
Leave all others unchecked.
Section: Related Ticket
- If
--ticket-idwas provided, format it as a ClickUp URL:https://app.clickup.com/t/<id> - If a ticket ID was extracted from the branch name (e.g.
CU-abc123), use the same format - If no ticket is available, write:
N/A
Section: Module
Parse the branch name and the last 20 commit messages for:
- Migration Number / Section Name — look for patterns like
M1,M2,M3,migration-1,section-2in the branch name or commits. Extract asM{N}. If not found, write<!-- TBD -->. - Sprint — look for patterns like
S12,sprint-12,sprint/12in the branch name or commits. Extract asS{N}. If not found, write<!-- TBD -->.
Never invent values. Placeholders are correct when data is absent.
Section: Shared Code Impact
Inspect the list of changed files (git diff --name-only) for any files inside directories that suggest shared or cross-cutting code:
- Common directory names:
shared/,core/,common/,lib/,utils/,helpers/,hooks/,composables/,services/,types/,constants/
If any matches are found:
- Answer: Yes
- List each affected file path
- Add:
Team notified: No(the author must verify before merge)
If no matches: Do not include the ### Shared Code Impact section in the rendered PR body.
Section: Breaking Changes
Analyze the git diff and commit messages for indications of breaking changes, such as:
- Modified or removed API route parameters/responses
- Changes to shared library function signatures/interfaces
- Database schema changes that remove or alter columns
- Commit messages containing
BREAKING CHANGE:or!in the type prefix (e.g.feat!:)
If breaking changes are detected:
- Answer: Yes
- Describe what breaks and the required migration path for other developers
If no breaking changes: Do not include the ### Breaking Changes section in the rendered PR body.
Section: FYI
- Check if a
CODEOWNERSfile exists at the project root or.github/CODEOWNERS.
If it exists, read it and extract GitHub handles (@username) mapped to the changed files. - Also run:
Map contributor emails to GitHub handles where possible (use the handle from CODEOWNERS if the same person appears there).git log <BASE_BRANCH>...HEAD --invert-grep -E --format="%ae" -- <changed files> | sort | uniq - Combine both sources into a de-duplicated list of
@handles. - Mandatory: remove the current PR author's handle from the list (identified by
git config user.emailfrom Step 2). - If the list is empty after deduplication, write:
No additional stakeholders identified.
Section: Screenshots
Inspect the changed file paths for UI indicators:
- Directories:
pages/,views/,routes/,screens/,app/,src/app/ - File extensions or names containing:
.vue,.svelte,Page.,View.,Screen.,Layout. - Any component file touched inside a route-level directory
If UI changes are detected:
- List each modified route or page
- For each, provide a provider-specific raw/blob URL format for evidence screenshots:
# GitHub https://github.com/<OWNER>/<REPO>/blob/<CURRENT_BRANCH>/.github/evidence/<filename>.png?raw=true # GitLab https://<HOST>/<OWNER>/<REPO>/-/blob/<CURRENT_BRANCH>/.github/evidence/<filename>.png - Note: "Add screenshots at the paths above before requesting review."
If no UI changes: write: No UI changes in this PR.
Section: Test Plan
Derive a concrete, ordered checkbox list a reviewer can follow to verify the changes end-to-end.
Rules:
- Every step must come from the actual diff — no generic steps like "verify the app works"
- Start from the entry point a real user or caller would use (navigate to a route, call an endpoint, trigger an action)
- Cover the happy path first, then at least one edge or error case if changes touch validation, error handling, or conditional logic
- Include any required setup (env vars, feature flags, seed data, running migrations)
- One action per checkbox — short and imperative
- If the change is backend-only: describe the API call (method, endpoint, payload, expected response)
- If the change is UI-only: describe the user interaction and the expected visual or functional outcome
- If new tests were added: include a step to run them with the specific command (e.g.
npm test -- --testPathPattern=<file>)
Format:
- [ ] <imperative step>
- [ ] <imperative step>Section: Release Readiness
Ready for release:Yes — if all test plan steps are expected to pass based on the implementationNeeds additional work:No — unless there are known gaps, open questions, or incomplete items identified during implementation
Step 6 — Render and confirm
Assemble the full PR body using this exact structure:
## Description 📝
<populated description bullets>
### Type of Change
<checkbox list with exactly one item checked based on branch type>
### Related Ticket
<ticket URL or "N/A">
### Module
- Migration: <M{N} or TBD>
- Sprint: <S{N} or TBD>
### Shared Code Impact
<Include only if Yes: file list and Team notified>
### Breaking Changes
<Include only if Yes: describe what breaks and the migration path>
### FYI 🙋
<@handles or "No additional stakeholders identified.">
### Screenshots 📸
<screenshot entries or "No UI changes in this PR.">
### Test Plan 🧪
<checkbox list>
### Release Readiness
- Ready for release: <Yes/No>
- Needs additional work: <Yes/No>If AUTO_MODE is false, present the rendered body and the inferred title to the user and ask:
"Does this PR/MR look correct? Reply Yes to create it, or paste corrections." Apply any corrections before proceeding.
If AUTO_MODE is true, skip confirmation and proceed immediately.
Step 7 — Create the PR/MR
All PRs and MRs must be created as Draft. This is non-negotiable — never omit --draft.
Before invoking provider CLIs, write the rendered body to a temporary file and keep its path in BODY_FILE so the user can reuse it if creation fails:
BODY_FILE="$(mktemp -t shipframe-pr-mr-body.XXXXXX.md)"
printf '%s\n' "<rendered PR/MR body>" > "$BODY_FILE"GitHub provider: gh CLI
Use this path when PROVIDER=github.
First verify the local CLI and authentication:
command -v gh
gh auth statusIf gh is missing or unauthenticated, stop and report:
GitHub PR not created. ShipFrame generated the body at <BODY_FILE>.
Install/authenticate GitHub CLI, then rerun:
brew install gh
gh auth login
gh auth statusCreate the Draft PR:
gh pr create \
--title "<PR/MR title>" \
--body-file "$BODY_FILE" \
--base "<BASE_BRANCH>" \
--head "<current branch>" \
--draftIf the command exits with a non-zero status, capture the error and proceed to the GitHub MCP fallback below.
GitHub fallback: GitHub MCP (only if gh CLI fails)
If gh pr create failed, create the PR using the MCP tool:
mcp__github__create_pull_request {
owner: "<OWNER>",
repo: "<REPO>",
title: "<PR/MR title>",
body: "<rendered PR/MR body>",
head: "<current branch>",
base: "<BASE_BRANCH>",
draft: true
}If both GitHub methods fail, report the errors from both attempts, include BODY_FILE, and stop.
GitLab provider: glab CLI
Use this path when PROVIDER=gitlab. There is no GitLab MCP fallback in ShipFrame v1.
First verify the local CLI and authentication:
command -v glab
glab auth statusIf glab is missing or unauthenticated, stop and report:
GitLab MR not created. ShipFrame generated the body at <BODY_FILE>.
Install/authenticate GitLab CLI, then rerun:
brew install glab
glab auth login
glab auth statusCreate the Draft MR:
glab mr create \
--title "<PR/MR title>" \
--description "$(cat "$BODY_FILE")" \
--target-branch "<BASE_BRANCH>" \
--source-branch "<current branch>" \
--draft \
--yesIf glab mr create fails, report the captured error, include BODY_FILE, and stop. Do not fall back to GitHub MCP for GitLab remotes.
Step 8 — Report
## Pull Request / Merge Request Created (Draft)
Title: <title>
URL: <pr_or_mr_url>
Provider: <github|gitlab>
Base: <BASE_BRANCH> <- <current branch>
Files: <count> changed
Method: <gh CLI | GitHub MCP (fallback) | glab CLI>
Body: <BODY_FILE>Store PR_URL or MR_URL and the request number/IID in context — downstream skills or agents may need them.
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.

