Skip to content
Back to skills

Open Pr

ASecurity

Open a pull request whose body a human reviewer can judge in one minute, with seen evidence and a rollback note. Use when the user asks to open, create, or make a pull request or merge request.

  • 52 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 2, 2026
ai-agentssqlnodegitapiperformance

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 4 files and shows the line behind each finding

Scanned December 2, 2026

npx -y skills add LeeJuOh/claude-code-zero --skill open-pr --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Open Pr?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Open Pr
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/leejuoh-open-pr/badge)](https://www.skillsdirectory.com/skills/leejuoh-open-pr)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: open-pr
description: "Open a pull request whose body a human reviewer can judge in one minute, with seen evidence and a rollback note. Use when the user asks to open, create, or make a pull request or merge request."
compatibility: "Needs git and Node.js 18 or later. Posts with the forge CLI (such as gh or glab) when signed in, else prints the body."
---

# Open PR

Write for a reviewer who has the diff. When rules conflict, favor readability.

## Steps

1. **Check the branch.** With uncommitted changes, stop and ask the user to commit. Push with an upstream even when posting is unavailable. Force-push only after a history rewrite, with `--force-with-lease`.
2. **Collect the evidence you have seen.** Use existing results and captures. Do not run tests or record new evidence. Never invent a result.
3. **Write the title and body** with the rules below. Save the body to a temporary file outside the repo.
4. **Check the body.** From this skill's folder, run `node scripts/check-body.mjs <body-file>`. Fix each problem until it exits 0. A line-count warning does not block.
5. **Post.** Find the forge from the remote URL. If its CLI is installed and signed in, create the PR, not a draft. If the branch has an open PR, replace its title and whole body. With no usable CLI, print the title and body. Do not ask for a preview.
6. **Reply.** Give the PR link. Name each kind of needed evidence you did not find. When the user sends evidence or a change, edit the body and check it again.

On a second run, rewrite the body from the whole branch. Keep old evidence that still matches the code. Include decisions from review. Then read `references/overflow.md` for an earlier overflow comment.

## Title

Follow the format of the repo's recent PR titles and commits. Otherwise use `type(scope): subject`, imperative, no trailing period. Name a real symbol when one carries the change.

## Body

Use these `##` sections in this order, even when the repo has a PR template. Drop a section with nothing to say, but always keep Scope and Rollback.

- `## Why`. The problem and the approach, in one to three short sentences. Link the ticket, issue, or spec behind the change once, if you saw one. Otherwise say nothing.
- `## What changed`. Show changed contracts, data structures, or settings. Use `diff` for edits to an existing structure. Show mostly new structures in full and tag code blocks with their language, such as `sql` or `json`. For new APIs, show caller code. For changes to calls, data flow, or ownership, follow `references/diagrams.md`. Omit file trees.
- `## Scope`. One to three items on what the change covers and leaves out. With nothing to add, write "Covers the whole change."
- `## Tradeoffs`. Only rejected alternatives a reviewer would ask about.
- `## Blast Radius`. One or two sentences on what the change touches and one fact that makes it safe or risky, with how far you checked it, such as "checked at `app/routes.ts:12`" or "a test covers it". Claim a run-based check only when you saw its result. If unchecked, write "unproven".
- `## Rollback`. How to undo the change, such as "Revert this commit." Name any other step, such as turning off a flag.
- `## Verification`. One to three bullets, each a real run and its result.

Choose the simplest visual that explains the change. Prose is enough for a simple point. Place a visual below the sentence it illustrates. Omit author lines and SHAs.

## Evidence

Select evidence with this table. Omit the table itself.

| Change | Evidence |
|---|---|
| UI | Match viewport and crop in before and after screenshots. Use a short recording for motion. Link an existing HTML demo if interaction matters. |
| CLI or build | The real output of the same command before and after, with the exit code. |
| Bug fix | The input and result before and after, and the regression test that failed first. |
| Performance | One primary number with its unit, `before → after`. The rest is overflow. |
| AI or agent behavior | The same real prompts on both sides, and how you graded the answers. |
| New API or feature | The code a caller writes to use it. |
| Other changes needing comparison | A small before-and-after table or diagram. |

Copy output exactly. Use backticks or a fenced block (`text` for plain output). Mark cuts with `…`. If a row's evidence or one side of it is missing, write "not found" in Verification, not "not done".

Upload images to the PR, never to the branch. If you cannot, say so in the reply.

## Length

Keep the body to about 40 lines. When it does not fit, read `references/overflow.md`.

## Writing rules

These rules cover your own sentences, in any language. Copy quotes and code exactly.

- Write short sentences with one idea each. End them with periods, not semicolons.
- Use one name for each thing, everywhere.
- Make every "it", "this", and "they" point at one obvious thing. Repeat the noun when in doubt.
- Use the active voice and name the actor.
- Say what the code does with a mechanism or a number, not how it feels.
- Name a path or symbol only when it carries the change, and write it in code font.
- Use the everyday word. In English, avoid "crucial", "delve", "enhance", "leverage", "robust", "seamless", and "utilize".
- Break up a long string of nouns.
- Write whole sentences with their verbs and small words. Spell out arrows and abbreviations.
- State the point directly. Leave out metaphors, "not just X, but Y", and a forced group of three.
- Cut filler, hedging, a trailing phrase that adds no fact, and a closing summary.
- Leave out long dashes, curly quotes, colons that join a sentence, and bold-label lists. The check script fails the first three.

Files in this skill

  • SKILL.md5.6 KB
  • references/diagrams.md808 B
  • references/overflow.md1.1 KB
  • scripts/check-body.mjs3.3 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.