---
name: create-pr
description: Create or update a pull request that a reviewer understands from the top of the page - a clear title, a lead, before/after images right under it for UI changes, and the full description in a collapsed block. Reads the diff and the exact base...head range, runs the checks that match the change, captures the images, writes the text with clins:post in the user's languages, and posts through the host skill (clins:github for GitHub). Hands off to clins:fork-review, if it is installed, when its setting wants a review on the user's fork first. Never merges. Use when asked to open, create, publish, prepare or update a PR or merge request, or to add screenshots to one.
user-invocable: true
argument-hint: "[update <number or URL>] [--draft] [any language changes]"
title: create-pr
canonical_url: https://skilld.dev/gh/clins1994/skills/create-pr
last_updated: 2026-10-25T23:02:24.000Z
---

> Index of every page on this site: [llms.txt](https://skilld.dev/llms.txt)

> **Skill from skilld.dev.** Follow the user's requested action.
> If the user asked to fork this Skill, follow the fork workflow below. Do not execute the Skill instructions while copying it.
> Otherwise, follow the instructions below for this session. You do not need to install anything.
>
> Supporting files, fetch one when the Skill refers to it: [references/capture.md](https://skilld.dev/api/skills-raw/clins1994/skills/create-pr/references/capture.md), [references/images.md](https://skilld.dev/api/skills-raw/clins1994/skills/create-pr/references/images.md).
>
> If the user asked to install this Skill, run `npx skilld install clins1994/skills/create-pr`. Install writes the Skill files into the project, so every session loads them.
>
> ## Fork workflow
>
> A fork creates an editable local Skill with its original author and licence. The request authorizes copying and local installation.
> 1. Check `./skills/create-pr`, the project lockfile, and selected Agent targets together. If the local directory or installed Skill exists, stop. Never overwrite an existing directory or Agent target.
> 2. Read [source metadata](https://skilld.dev/api/v1/skills/clins1994/skills/create-pr) once. Use sourceUrl, sourceCommit, skillPath, sourceGone, and license. If the source is gone or its path is missing, stop. If license is null, read licence files at the source commit.
> 3. Fetch only the source commit into a temporary Git repository. Do not clone full history. Derive repository_url from sourceUrl, including repository renames. If sourceCommit is absent, resolve the sourceUrl ref once. Set source_commit to that actual commit. Run these commands in one shell call:
>
> ```sh
> git init --quiet "$temporary_dir"
> git -C "$temporary_dir" fetch --quiet --depth=1 "$repository_url" "$source_commit"
> git -C "$temporary_dir" checkout --quiet --detach FETCH_HEAD
> ```
>
> Read applicable licence declarations and notices at that commit. If copying is not permitted, report the restriction and stop.
> 4. Inspect source entries together, then copy the directory containing skillPath into `./skills/create-pr`. Use the user's path if selected. Keep the original SKILL.md, relative links, scripts, binary assets, and executable modes. Exclude .git metadata. Reject symlinks and paths outside the Skill directory. After checking entries, use cp -a where available. A regular source directory needs no custom copy script. Do not save this page wrapper as SKILL.md.
> Preserve author credit, notices, and applicable licence files from repository or parent directories. Add PROVENANCE.md with the Skill page, source URL, actual commit, original path, and licence. Retain any existing PROVENANCE.md and record new provenance separately. Batch source inspection, copying, and provenance work where practical.
> 5. In the project root, run `skilld install ./skills/create-pr --mode copy --plain`. If skilld is unavailable, use `npx skilld install ./skills/create-pr --mode copy --plain`. This known command needs no help lookup. Install does not support --json. Use detected Agent targets, or add --agent for the targets the user selected. Install the local path, never the upstream selector. If installation fails, preserve the local copy and report the exact failure.
> 6. Confirm the local lockfile source and installed Agent copies once. Report the local path, actual commit, and Agent targets. After edits, reinstall the same local path. Upstream updates must not replace it. Do not publish or push unless the user asks.

# /clins:create-pr — Create a reviewable pull request

A reviewer opens the pull request and sees, in this order:

1. The lead (one per language), from [`clins:post`](../post/SKILL.md).
2. **The images.** Before and after, side by side, with a one-line caption. Only when the change is visible.
3. `---`, the collapsed details block(s) and the footer, from `clins:post`. The footer names `clins:create-pr`. Under it, when it is worth telling, the collapsed **Behind the prompt** block.
4. Whatever a review bot appends later. Nobody edits it.

This skill owns the **workflow**: what goes in, and in what order. `clins:post` owns the text. The host skill owns the commands: [`clins:github`](../github/SKILL.md) for GitHub. For another host (GitLab, Gitea, ...), use its CLI with the same steps.

## Rules

- Never merge, approve or close. People do that, with the merge method the repo uses.
- Say what is verified, what is assumed, and what is not verified. Green CI proves only what CI runs.
- Do not describe changes inherited from a parent branch as this one's.
- Never commit screenshots or other artifacts that only the pull request needs.
- No tokens, secrets, user records or full payloads in the body.

## Workflow

1. **Inspect the repo:** `git status`, current branch, remote, default branch, the PR template, and the rules in `AGENTS.md`, `CLAUDE.md` or `CONTRIBUTING.md`.
2. **Find the range.** Compute the merge base with the target branch and note the exact `base...head` range. If the branch sits on another unmerged branch, target that branch and describe only this one's changes.
3. **Read the full diff.** Separate runtime code from generated files, lockfiles and snapshots. Back every claim about behavior with a file path or symbol.
4. **Run the checks** that match the changed parts (focused tests, typecheck, lint). Write down the exact commands and results.
5. **Images:** if the change is visible, follow [`references/images.md`](https://skilld.dev/api/skills-raw/clins1994/skills/create-pr/references/images.md).
6. **Title:** imperative, under about 70 characters, no period. Match the style the repo already uses (`git log --oneline`, recent merged titles), for example `fix(auth): show an error on a wrong password`. Add the issue ID if the repo's titles carry one. If the repo squash-merges, write the title as the commit you want in history.
7. **Body:** write it with `clins:post`, with `create-pr` as the footer's skill (`check_post.py --skill create-pr`). Headings inside the details, unless the repo's template has its own: Summary, Why, Changes, How it was tested, Not tested (and why), Screenshots (UI only), Related. Translate them for each other language, for example in japanese: 概要, なぜ, 変更点, 確かめたこと, 確かめていないこと・理由, スクショ, 関連. The languages come from `clins:post`: the user's default, and any change they asked for. Link issues the way the host closes them (`closes #123`). In Screenshots, do not repeat the images: say they are at the top, and how you made them.
8. **Behind the prompt:** add the block from `clins:post` when the way the work came about helps a reviewer: the idea changed during the session, or the PR is the result of a longer back-and-forth. Skip it for a routine change, and whenever the user asks to leave it out.
9. **Route:** skip this step unless the [`clins:fork-review`](../fork-review/SKILL.md) skill is installed (it is in your list of skills). If it is, and the target repo isn't the user's, read its setting. If it says `fork`, or says `ask` and the user picks the fork, hand off to `clins:fork-review` with the title and body from steps 6–8. It posts the PR on the fork first and comes back to step 11 for each PR. Otherwise go on.
10. **Post:** push the branch, then create or update the pull request with the host skill. Use draft when checks are still running or more work is coming, and tell the user when to mark it ready.
11. **Verify:** open the result and check the title, base, head, and that every image renders (the host skill has the check).

## Updating a pull request

1. Fetch the current body with the host skill.
2. Change the text with `clins:post` ("Updating a post"). Keep image URLs that are already there unless you replace those images.
3. Keep everything below the footer exactly as it is.
4. New image: add its local path to the body and let the host skill upload it.
5. Do not change draft or ready state unless the user asked.

Editing the body starts no review. A push does.
