/clins:create-pr — Create a reviewable pull request
A reviewer opens the pull request and sees, in this order:
- The lead (one per language), from
clins:post. - The images. Before and after, side by side, with a one-line caption. Only when the change is visible.
---, the collapsed details block(s) and the footer, fromclins:post. The footer namesclins:create-pr. Under it, when it is worth telling, the collapsed Behind the prompt block.- 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 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
- Inspect the repo:
git status, current branch, remote, default branch, the PR template, and the rules inAGENTS.md,CLAUDE.mdorCONTRIBUTING.md. - Find the range. Compute the merge base with the target branch and note the exact
base...headrange. If the branch sits on another unmerged branch, target that branch and describe only this one's changes. - Read the full diff. Separate runtime code from generated files, lockfiles and snapshots. Back every claim about behavior with a file path or symbol.
- Run the checks that match the changed parts (focused tests, typecheck, lint). Write down the exact commands and results.
- Images: if the change is visible, follow
references/images.md. - Title: imperative, under about 70 characters, no period. Match the style the repo already uses (
git log --oneline, recent merged titles), for examplefix(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. - Body: write it with
clins:post, withcreate-pras 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 fromclins: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. - Behind the prompt: add the block from
clins:postwhen 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. - Route: skip this step unless the
clins:fork-reviewskill 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 saysfork, or saysaskand the user picks the fork, hand off toclins:fork-reviewwith 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. - 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.
- 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
- Fetch the current body with the host skill.
- Change the text with
clins:post("Updating a post"). Keep image URLs that are already there unless you replace those images. - Keep everything below the footer exactly as it is.
- New image: add its local path to the body and let the host skill upload it.
- Do not change draft or ready state unless the user asked.
Editing the body starts no review. A push does.