create-pr
Skill9 starsChanged 4 months agoMITView on GitHub
Create a pull request from the current branch following project conventions. Uses the branch name to find the Jira ticket, generates a PR with the standard template, audits publication artifacts, pushes to origin, and closes the associated bead.
- 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 9 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
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 repository74 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- architectSkill
- artifact-hygieneSkill
- backlog-groomSkill
- beads-check-dolt-migrationSkill
- beads-migrate-to-doltSkill
- beads-setupSkill
- beadsSkill
- breakdownSkill
- browser-screenshotSkill
- circleci-statusSkill
- clean-codeSkill
- complete-taskSkill
- confluenceSkill
- contract-checkSkill
- contract-testSkill
- delegate-workSkill
- developSkill
- diagnose-bugSkill
- do-i-need-thisSkill
- eas-build-errorSkill
- handoffsSkill
- handoffs-tidySkill
- image-studioSkill
- implement-solutionSkill
- jira-commentSkill
- jira-ticketSkill
- landscapeSkill
- model-update-checkSkill
- name-sessionSkill
- nextSkill
- outstanding-workSkill
- pedantic-reviewSkill
- peer-sessionSkill
- pickupSkill
- pi-spendSkill
- plan-daySkill
- plan-to-backlogSkill
- project-briefSkill
- pr-statusSkill
- ready-to-mergeSkill
- ready-to-releaseSkill
- rebaseSkill
- release-maintenanceSkill
- release-managerSkill
- release-statusSkill
- reply-commentsSkill
- review-commentsSkill
- review-prSkill
- sanity-checkSkill
- second-opinionSkill
- setup-multirepo-gitSkill
- skills-reviewSkill
- stack-branchSkill
- start-ticketSkill
- thoughtboxSkill
- tidy-settingsSkill
- todaySkill
- token-dashboardSkill
- The first 60 shown.
The file
Show its rules and text
We split this skill into the rules it gives an agent
17 rules. 0 are common, 14 are distinctive, and 3 are very specific to this project.
0
Common
Most of the 82 edited versions we read keep these.
14
Distinctive
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 14
Create a pull request from the current branch using project conventions.
- Distinctive: line 38
If the branch is empty, stop: HEAD is detached.
- Distinctive: line 43
Use the first available source:
- Distinctive: line 49
If the result is empty, equals the head branch, or does not resolve to a commit, ask rather than guessing.
- Distinctive: line 66
If no ticket found, ask the user.
- Distinctive: line 70
Use jira-ticket for the key, summary and description.
- Distinctive: line 77
Use conventional commit format based on branch prefix:
- Distinctive: line 107
Do not hand-glob a single spelling — that silently finds nothing and falls through to a freehand body.
- Distinctive: line 110
If not found, ask the user for confirmation on generating the body ourselves.
- Very specific: line 125
Use a Confluence link from the Jira ticket where one exists.
- Distinctive: line 153
Never recover raw evidence from reported files, commits, scanner output, or configuration.
- Distinctive: line 171
Use fresh evidence from this invocation.
- Distinctive: line 177
Run the shared preflight immediately before deciding whether publication is needed:
- Very specific: line 184
Never infer publication from a parent upstream or stale remote-tracking ref.
- Distinctive: line 200
If approved, invoke the wrapper as the next tool call, standalone and unchained:
- Distinctive: line 209
If the script is unavailable, show and separately confirm the fallback before running it:
- Very specific: line 232
If multiple beads plausibly match, ask the user which (if any) to close with AskUserQuestion.
“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 Pull Request
Create a pull request from the current branch using project conventions.
Usage
/create-pr # Resolve recorded/default base
/create-pr {base-branch} # Explicit base, including a stacked parent
/create-pr --draft {base-branch} # Create a draft PR against that baseInstructions
Parse optional --draft plus at most one {base-branch}. Reject unknown or duplicate arguments.
Expand {draft-flag} to --draft when requested and to nothing otherwise.
1. Gather context
Get the current branch and working-copy state:
git branch --show-current
git status -sbIf the branch is empty, stop: HEAD is detached. Preserve the commit on a branch before attempting to push or create a PR.
2. Resolve the PR base
Use the first available source:
- explicit
{base-branch}argument; git config --get branch.{branch-name}.gh-merge-base(recorded by/stack-branch);- the default branch from
origin/HEAD, falling back to localmain, thenmaster.
If the result is empty, equals the head branch, or does not resolve to a commit, ask rather than guessing. Fetch the selected base, then use it consistently for context and PR creation:
git fetch origin {base-branch}
git log origin/{base-branch}..HEAD --oneline
git diff origin/{base-branch}...HEAD --stat3. Extract Jira Ticket from Branch Name
Parse the branch name to find the ticket number:
- Pattern:
{type}/{TICKET-NUMBER}-{description} - Example:
feat/AB-123-sanitize-input→AB-123 - Ticket format: 2-4 uppercase letters, dash, numbers (e.g.,
AB-123,SSP-456)
If no ticket found, ask the user.
4. Look Up Jira Ticket
Use jira-ticket for the key, summary and description. It owns tool availability, deferred discovery and unavailable-context handoffs. If skill invocation is absent, read that installed skill and follow it; do not reconstruct the lookup. Missing context remains unavailable in the draft unless supplied by the user; never fabricate fetched requirements.
5. Generate PR Title
Use conventional commit format based on branch prefix:
| Branch Prefix | PR Title Format |
feat/ | feat(<scope>): <description> |
fix/ | fix(<scope>): <description> |
refactor/ | refactor(<scope>): <description> |
chore/ | chore(<scope>): <description> |
docs/ | docs(<scope>): <description> |
perf/ | perf(<scope>): <description> |
Infer the scope from changed files (e.g., offers-cms, web, api).
6. Generate PR Body
Analyze the actual code changes (use git diff origin/{base-branch}...HEAD) to write a meaningful description.
House style: say what changed in general terms, easy to digest. Keep the why brief or absent (Jira/Trello owns it) and details minimal (the commits and diff own them). No test narrative, no future-task lists, no names, no bead IDs.
Discover a repo-specific PR template with this exact command. Both the separator (- vs _)
and the case vary across repos; -iname fixes case but NOT the separator, so glob both:
find . .github docs -maxdepth 1 \
\( -iname 'pull[-_]request[-_]template*' -o -iname 'PULL_REQUEST_TEMPLATE*' \) \
2>/dev/null || trueDo not hand-glob a single spelling — that silently finds nothing and falls through to a freehand body. If found, follow the template's headings verbatim; the template overrides house style wherever the two conflict, because it is the reviewing team's contract rather than ours. If not found, ask the user for confirmation on generating the body ourselves.
Organisation PR standards can require document fields that repo templates omit. For
bluelightcard repositories, the org pr-conventions check requires a **PRD:**,
**Tech RFC:** and **ADR:** line, each holding a Confluence link or the literal N/A; empty
values and <…> placeholders fail. When the body lacks them, append:
## Related documents
- **PRD:** N/A
- **Tech RFC:** N/A
- **ADR:** N/AUse a Confluence link from the Jira ticket where one exists; otherwise N/A.
The description is frozen the moment the PR leaves draft. Editing a description after review has begun invalidates existing approvals and restarts the flow, so the body must already be final then: no test plan of intended future steps, no "to be verified" lines, no deploy or sign-off trackers.
A template checklist is not a future-task list: it is a static attestation of what is already true when the PR is opened. Keep each checkbox line verbatim — never delete, reword, or convert one to prose — unless the template itself says to remove non-applicable items. Tick them all: completed items are true, and conditional items ("If this changes a backend service…") are satisfied when the condition does not apply. If an applicable item is genuinely untrue, stop and tell the user rather than ticking or removing it.
6a. Publication audit
From the same repository/worktree whose branch will be published, run the authoritative, local-only, read-only helper (Python 3.10+, Git and Gitleaks required):
~/.agents/skills/artifact-hygiene/scripts/artifact_hygiene.py --prettyCapture stdout and exit status, including nonzero exits. Render coverage before findings
using artifact-hygiene's Report contract: exact status/verdict,
each source's status and safe error codes, normalized redacted findings, and suppressed counts
with clone-local allowances disclosed. Use only the helper's normalized evidence; partial is never clean.
Never recover raw evidence from reported files, commits, scanner output, or configuration.
Remediation is a separate explicitly approved task; do not edit artifacts, rewrite history, change
allowances, install tooling, or copy detectors as part of this audit step.
Exit 0 alone is not clearance: it includes complete reports with blocking findings. Continue only
with valid artifact-hygiene/v2 JSON, exit 0, status: complete, verdict: clean and no findings,
or verdict: advisory with every finding carrying policy.grade: advisory. Every required coverage
source must be present and complete, with no limits or errors. Show all advisories; do not call them
clean or verified harmless. On block, inconsistent grades/verdict, exit 2 (partial), exit 3
(failed), missing helper/scanner, malformed output, or any other incomplete coverage,
stop before push or PR creation. Render the available redacted report or an unavailable diagnostic,
never a fabricated clean result.
This audits the full publishable working tree and the helper's locally resolved unpublished history, not the PR diff or drafted title/body. Do not pass a PR base or narrow its findings to the selected change; the helper has no diff/base option. §6's draft review still applies. An already-published branch still needs this audit before PR creation; a result cannot undo prior publication.
Use fresh evidence from this invocation. Any intervening edit, staging change, commit, ref or audit policy change invalidates it; rerun before asking for publication approval. A clean audit is not consent: §7 and §8 retain their separate immediately-before-action confirmations and standalone commands.
7. Confirm push
Run the shared preflight immediately before deciding whether publication is needed:
~/.agents/skills/start-ticket/scripts/git-branch-preflight.sh {branch-name}Skip this phase only when target_published=true: HEAD matches the exact origin/{branch-name} destination.
Never infer publication from a parent upstream or stale remote-tracking ref. On unknown or a
preflight error, stop. Otherwise show the exact branch and remote. Use AskUserQuestion
immediately before the push. If approved, the push must be the next tool call, standalone and unchained:
git push -u origin {branch-name}Approval applies only to this push. A retry requires fresh confirmation. If declined, stop before PR creation.
8. Confirm PR creation
Even if the push phase was skipped, rerun §6a before the PR-creation confirmation. Stop on any
non-clean or unavailable audit result. Then show the user the target, title, and complete body draft. Use AskUserQuestion
immediately before creating the PR. Push approval does not authorize this second remote action.
If approved, invoke the wrapper as the next tool call, standalone and unchained:
~/.agents/skills/create-pr/scripts/gh-pr-create.sh {draft-flag} --base {base-branch} --title "{title}" --body "$(cat <<'EOF'
{body}
EOF
)"If the script is unavailable, show and separately confirm the fallback before running it:
gh pr create {draft-flag} --base {base-branch} --title "{title}" --body "$(cat <<'EOF'
{body}
EOF
)"9. Close the Associated Bead
Once the PR is created, close the bead for this work — this is the preferred close point in a PR workflow (the commit was done in /complete-task, which deliberately left the bead open for this step). Reopen later if review demands major changes.
Skip this whole step silently if bd is unavailable or the repo has no beads database.
Find the in-progress bead for this work:
bd list --status=in_progressMatch by the Jira key from §3 appearing in the bead title/description, or an obvious 1:1 correspondence to the branch.
- If multiple beads plausibly match, ask the user which (if any) to close with
AskUserQuestion. If none match, skip silently — don't invent one. Resolve the chosen bead to its owning store before closing. Never infer the store from the ID or the cwd; at a workspace root the cwd store is the workspace store, not the repository the PR belongs to.
~/.agents/skills/next/scripts/next-select resolve <bead-id>status action resolvedtake directory; close and reopen withbd -C <directory>ambiguousshow matches[].selector, ask which<repo>:<id>is meant; close nothingunavailablereport failures; the PR stands, the bead staysin_progress, say whynot-foundskip the close and say so; never guess another store Close it in that store, referencing the PR:
bd -C <directory> close <bead-id> --reason="PR #<number> created: <pr-title>"Tell the user the bead was closed and how to reopen it if review requires major changes:
bd -C <directory> update <bead-id> --status=in_progress
Note: /ready-to-merge closes a bead only if it is in_progress. It therefore no-ops when this
close remains current, but closes it post-merge if /review-comments reopened it for substantial
review work.
10. Return Result
Output the PR URL so the user can view it, and note the bead that was closed (or left open, if none matched).
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.

