Open or update the pull request for the work in this checkout, in the shared PR shape: branch, commit, run the repo's checks, push, open, size label. Stops at the open PR; the review loop is /ready-pr. Use when the user says 'make a PR', 'open a PR', or 'put this up for review', types /make-pr in Claude Code or $make-pr in Codex, or another skill hands over its files for a PR.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Is that skill safe to install?
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
Are you the author of Make Pr?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/linhvu0711-make-pr)
---
name: make-pr
description: "Open or update the pull request for the work in this checkout, in the shared PR shape: branch, commit, run the repo's checks, push, open, size label. Stops at the open PR; the review loop is /ready-pr. Use when the user says 'make a PR', 'open a PR', or 'put this up for review', types /make-pr in Claude Code or $make-pr in Codex, or another skill hands over its files for a PR."
---
Paths in this skill are relative to its real folder: the one that holds this `SKILL.md`, after links are followed, as `realpath` prints it. Before you run or read one of them, put that real folder's absolute path in front of it.
Turn the work in this checkout into one pull request. Read `../../core/github/pr-shape.md` first: it owns the branch name, the title, the body, and the label. The repo rules come before it, per `../../core/coding-standards/repo-rules.md`: a branch name, title, body part, or label they set wins over the shape. This skill owns the steps around it. It stops when the PR is open, and it never merges.
## When a skill calls you
A caller can set five things: the branch name, the files that go in, the issue line, what goes under `Summary` and `Follow-ups`, and a proof folder. The rest is this skill's.
A **proof folder** is what `/build-and-prove` leaves: `demo.md`, the finished `## Demo` part, when the build had walks, with the screenshots and videos it names as `./<file>` beside it; `proof.md`, the finished `## Proof` part; and `checks.txt`, the repo's checks it did on HEAD, each line ending with where it ran. With one set, `gh` must be 2.99 or newer (`gh --version`), so that `gh pr edit --attach` exists; older: say so and stop before step 7.
## Steps
1. **Facts.**
```bash
gh api user -q .login
gh repo view --json nameWithOwner,defaultBranchRef -q '.nameWithOwner + " " + .defaultBranchRef.name'
git branch --show-current
git status --short
```
`gh` missing or not signed in: stop, and give the user `gh auth login`. Then the open PR of this branch, if any: `gh pr list --head <branch> --state open --json number,url,baseRefName`. The base is that PR's `baseRefName`; with no PR, the branch the user named, else the default branch. `git fetch origin <base>`. Done when you hold the repo, the base, the current branch, the open PR or none, and the changed files.
2. **Scope.** The PR holds the work of this chat, or the files a caller named. Read `git status --short`, which lists staged and unstaged files, and `git log --oneline origin/<base>..HEAD`.
- No changed file and no commit ahead of the base: say `Nothing to put in a PR.` and stop.
- A changed file that this chat did not touch and no caller named: list those files and ask which go in. Wait.
- A token, a key, a password, or a `.env` value in the diff: stop, and name the file and the line.
Done when every file that goes in belongs to this work.
3. **Issue.** Look in this order: the caller's issue line; the branch name (`fix/57-export-date-iso` is #57); a `#<n>` in the commits; an issue named in the chat. Found: `gh issue view <n> --json number,title,body,state`, and hold its Done-when lines. Done when you hold the issue and its Done-when lines, or know there is no issue.
4. **Branch.** On the base: `git switch -c <branch>`, named by the PR shape § Branch, or the caller's name. On another branch: stay on it. Done when HEAD is on the PR's branch.
5. **Commit.** One commit per logical change, each message a Conventional Commits subject, `type(scope): summary`, in the imperative and in the style `git log` shows, with a body only for a why the diff does not show. Stage the change's files, then commit by path: `git add -- <files> && git commit -F <message-file> -- <files>`. The add lets a new file in; the path on the commit keeps any other staged file staged and out of the PR. Done when `git status --short` lists none of the PR's files and `git diff --name-only origin/<base>...HEAD` lists only this work's files.
6. **Checks.** The repo's checks are every command `AGENTS.md` or `CLAUDE.md` names as a check, and every `test`, `lint`, and `typecheck` script in `package.json`, each command once. Neither source has one: the checks `CONTRIBUTING.md` names. Run each one. A check that passed in this session after the last file change already counts: use that result and say so. So does a check a proof folder's `checks.txt` lists with HEAD's short SHA and a result: it ran in the Sandbox or on the local machine, as the line's end says, and it does not run again here. A `not run: <why>` line is not a result: do not run that check either, and `Proof` says `CI must prove it`. Ask `bash ../../core/github/ci-covers.sh <repo root> -- '<check>'` whether the PR's CI runs it. A `here` line means nothing will prove it: stop before the push, name the check, and ask the user how to prove it. A red check: show its failing lines and stop, with the PR not opened. Done when every check is green and you hold each command, the short SHA of HEAD, and the result, for `Proof`.
7. **Push.** `git push -u origin HEAD`. Rejected: show the message and stop. A force push is the user's call. Done when `origin/<branch>` is at HEAD.
8. **Body.** Read the repo's PR template when it has one (`.github/pull_request_template.md`, or `.github/PULL_REQUEST_TEMPLATE/`). Write the title and the body by the PR shape, for the whole branch against the base (`git diff origin/<base>...HEAD`), to a file outside the tree: `f=$(mktemp)`. An open PR: read its body first, `gh pr view <n> --json body -q .body`, and carry every line under `Follow-ups` into the new body; those issues are not in the diff. A proof folder: `## Demo` is its `demo.md`, pasted whole where the PR shape puts it, when it has one; `## Proof` is its `proof.md`, pasted whole, with each test case linked at the head commit it just pushed, as the shape says, so each run links at the new head; and the body file is `pr-body.md` inside the proof folder, next to the media, not a temp file. Then run `../unslop/SKILL.md` on the prose: the title, and the text of `Summary`, `Where to look`, and `Breaking changes`. Leave as they are: the `Risk` line's form, code, commands, paths, links, the `Closes` line, the `Follow-ups` lines, `## Demo`, and `## Proof`.
Then read what the PR will show for a leak: the title, the body, and each file the body attaches. A leak is a token, a key, a password, a `.env` value, or a private detail: a home path, an email address, a private host or URL, or a person's data the repo does not already show. Look at each screenshot. For a video, write one frame each 5 seconds to a folder you keep, look at every frame in it, then remove the folder:
```bash
frames=$(mktemp -d)
ffmpeg -i <video> -vf fps=1/5 "$frames/frame-%03d.png"
```
- A leak in the title or the body: take it out, or put a placeholder in its place.
- A leak in an image or a video: stop before step 9, and name the file and what it shows. The shot is taken again by `/build-and-prove`, not here.
Done when every part of the shape is written or left out for the reason the shape gives, no placeholder of the shape is left, and no leak is in the title, the body, or a file it attaches.
9. **Open.** The open PR from step 1 decides. Every `gh pr` command here names `-R <repo>`, the repo step 1 holds, so it works from any folder, the proof folder too, which is not a git checkout.
- No PR: `gh pr create -R <repo> --base <base> --head <branch> --title "<title>" --body-file "$f"`, ready for review.
- An open PR: `gh pr edit -R <repo> <n> --title "<title>" --body-file "$f"`. The new body covers the whole branch and replaces the old one, its `Follow-ups` kept; GitHub keeps the old body in the edit history.
A proof folder: then, from inside it, attach every file the body names, `gh pr edit -R <repo> <n> --body-file pr-body.md --attach <file> …`, and unwrap the video lines, both per `../../core/github/pr-shape.md` § Demo. Open the PR and check that each image shows and each video plays.
Done when `gh pr view -R <repo> <n> --json title,body` shows what you wrote.
10. **Label.** Find the repo's size labels per `../../core/github/issue-rules.md` § Repo convention, PR size label. Run `python3 ../../core/sizing/size.py origin/<base>` in the checkout, and label the PR per `../../core/github/pr-shape.md` § Label. Done when the PR has the one size label the script gives, the repo has no size labels, or the report says the label was not set.
11. **Report.** Chat gets this and nothing more:
```
PR: feat(export): write ISO dates (#61) · size S · checks: 2 green
https://github.com/acme/shop/pull/61
Next: /ready-pr
```
An open PR that you updated: `PR (updated): …`. A size label that was not set: `size S, label not set: <why>` in place of `size S`.
## Examples
**User:** "make a PR" on `main`, after a chat that renamed one skill; no issue anywhere.
Scope: the six files the chat touched. No issue, so no issue line. Branch `refactor/rename-load-skills`. Two commits. `AGENTS.md` names `scripts/check.sh`; it passed after the last edit, so that result counts. Push, body with `Summary`, `Where to look`, and `Proof` as a list, no template in the repo. `gh pr create`. Size XS. Report.
**User:** `/make-pr` on `fix/57-export-date-iso` with two commits and `src/export.ts` still changed.
Issue #57 from the branch name, three Done-when lines. One more commit. `bun test` runs on the new HEAD, green. `Closes #57`, and `Proof` is a three-row table with each test linked.
**User:** "open a PR", and the tree also holds `notes.txt`, which the chat never touched.
Ask: `notes.txt` is changed too; put it in the PR, A no, B yes. Wait.
**Grill** hands over at its close-out: branch `docs/grill-12-export-queue`, files `CONTEXT.md` and `docs/adr/0004-no-job-queue.md`, `Closes #12`, the settled decisions for `Summary`.
The steps run with those four set. The report goes back to grill.
**A screenshot** in the proof folder shows a terminal whose title bar holds a home path.
Stop before the PR opens: `after-2.png` shows a home path in the terminal title. No PR.
**`npm run lint`** fails on the new HEAD.
Show the failing lines. Stop; no push, no PR.